tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6147c83fd749d19a0d3ccc2f64d12138ab010b47 commit: 0df162e1377a585ced8adb932f7d6e4164e91ccf [6093/8750] MIPS: mm: Clean up setup of protection map config: mips-randconfig-r014-20201127 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 175ebad958a0ebaf6c56c20ab30b9d4347742c29) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0df162e1377a585ced8adb932f7d6e4164e91ccf git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 0df162e1377a585ced8adb932f7d6e4164e91ccf # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> drivers/video/fbdev/smscufx.c:796:52: error: use of undeclared identifier 'PAGE_SHARED' if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) ^ 1 error generated. vim +/PAGE_SHARED +796 drivers/video/fbdev/smscufx.c 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 774 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 775 static int ufx_ops_mmap(struct fb_info *info, struct vm_area_struct *vma) 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 776 { 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 777 unsigned long start = vma->vm_start; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 778 unsigned long size = vma->vm_end - vma->vm_start; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 779 unsigned long offset = vma->vm_pgoff << PAGE_SHIFT; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 780 unsigned long page, pos; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 781 04f8afbec37f63f drivers/video/smscufx.c Tomi Valkeinen 2013-04-18 782 if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT)) 04f8afbec37f63f drivers/video/smscufx.c Tomi Valkeinen 2013-04-18 783 return -EINVAL; 04f8afbec37f63f drivers/video/smscufx.c Tomi Valkeinen 2013-04-18 784 if (size > info->fix.smem_len) 04f8afbec37f63f drivers/video/smscufx.c Tomi Valkeinen 2013-04-18 785 return -EINVAL; 04f8afbec37f63f drivers/video/smscufx.c Tomi Valkeinen 2013-04-18 786 if (offset > info->fix.smem_len - size) 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 787 return -EINVAL; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 788 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 789 pos = (unsigned long)info->fix.smem_start + offset; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 790 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 791 pr_debug("mmap() framebuffer addr:%lu size:%lu\n", 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 792 pos, size); 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 793 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 794 while (size > 0) { 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 795 page = vmalloc_to_pfn((void *)pos); 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 @796 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED)) 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 797 return -EAGAIN; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 798 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 799 start += PAGE_SIZE; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 800 pos += PAGE_SIZE; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 801 if (size > PAGE_SIZE) 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 802 size -= PAGE_SIZE; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 803 else 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 804 size = 0; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 805 } 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 806 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 807 return 0; 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 808 } 3c8a63e22a0802f drivers/video/smscufx.c Steve Glendinning 2011-08-18 809 :::::: The code at line 796 was first introduced by commit :::::: 3c8a63e22a0802fd56380f6ab305b419f18eb6f5 Add support for SMSC UFX6000/7000 USB display adapters :::::: TO: Steve Glendinning <steve.glendinning@xxxxxxxx> :::::: CC: Florian Tobias Schandinat <FlorianSchandinat@xxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip