[PATCH v7 29/36] x86, drm, fbdev: Do not specify encrypted memory for video mappings
kbuild test robot
lkp at intel.com
Sat Jun 17 07:08:20 PDT 2017
Hi Tom,
[auto build test ERROR on next-20170616]
[cannot apply to tip/x86/core linus/master linux/master v4.9-rc8 v4.9-rc7 v4.9-rc6 v4.12-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Tom-Lendacky/x86-Secure-Memory-Encryption-AMD/20170617-210824
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh
All errors (new ones prefixed by >>):
drivers/gpu/drm/drm_gem.c: In function 'drm_gem_mmap_obj':
>> drivers/gpu/drm/drm_gem.c:932:22: error: implicit declaration of function 'pgprot_decrypted' [-Werror=implicit-function-declaration]
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/drm_gem.c:932:20: error: incompatible types when assigning to type 'pgprot_t {aka struct <anonymous>}' from type 'int'
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
^
cc1: some warnings being treated as errors
--
drivers/video/fbdev/core/fbmem.c: In function 'fb_mmap':
>> drivers/video/fbdev/core/fbmem.c:1414:23: error: implicit declaration of function 'pgprot_decrypted' [-Werror=implicit-function-declaration]
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
^~~~~~~~~~~~~~~~
>> drivers/video/fbdev/core/fbmem.c:1414:21: error: incompatible types when assigning to type 'pgprot_t {aka struct <anonymous>}' from type 'int'
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
^
drivers/video/fbdev/core/fbmem.c:1444:20: error: incompatible types when assigning to type 'pgprot_t {aka struct <anonymous>}' from type 'int'
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
^
cc1: some warnings being treated as errors
--
drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_mmap':
>> drivers/gpu/drm/udl/udl_fb.c:174:22: error: implicit declaration of function 'pgprot_decrypted' [-Werror=implicit-function-declaration]
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/udl/udl_fb.c:174:20: error: incompatible types when assigning to type 'pgprot_t {aka struct <anonymous>}' from type 'int'
vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
^
cc1: some warnings being treated as errors
vim +/pgprot_decrypted +932 drivers/gpu/drm/drm_gem.c
926 return -EINVAL;
927
928 vma->vm_flags |= VM_IO | VM_PFNMAP | VM_DONTEXPAND | VM_DONTDUMP;
929 vma->vm_ops = dev->driver->gem_vm_ops;
930 vma->vm_private_data = obj;
931 vma->vm_page_prot = pgprot_writecombine(vm_get_page_prot(vma->vm_flags));
> 932 vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
933
934 /* Take a ref for this mapping of the object, so that the fault
935 * handler can dereference the mmap offset's pointer to the object.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 45695 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/kexec/attachments/20170617/1c46b65d/attachment-0001.gz>
More information about the kexec
mailing list