Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [bcain:hexagon 2/82] drivers/video/fbdev/smscufx.c:802:52: error: use of undeclared identifier 'PAGE_SHARED'
@ 2026-10-19  9:35 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-19  9:35 UTC (permalink / raw)
  To: Brian Cain; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git hexagon
head:   35ab1dadb94646b74469738c1741f68e8c6aac3d
commit: a068d81e03bf28e40eceb94bc49e122f09177d70 [2/82] hexagon: fix the page table model for the Hexagon VM
config: hexagon-randconfig-1000-20261019 (https://download.01.org/0day-ci/archive/20261019/202610191931.5HtFIFIu-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 6719b9e31d6a93099612c474eec76d9f41d0275a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261019/202610191931.5HtFIFIu-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610191931.5HtFIFIu-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/video/fbdev/smscufx.c:802:52: error: use of undeclared identifier 'PAGE_SHARED'
     802 |                 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
         |                                                                  ^~~~~~~~~~~
>> drivers/video/fbdev/smscufx.c:802:52: error: use of undeclared identifier 'PAGE_SHARED'
     802 |                 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
         |                                                                  ^~~~~~~~~~~
>> drivers/video/fbdev/smscufx.c:802:52: error: use of undeclared identifier 'PAGE_SHARED'
     802 |                 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
         |                                                                  ^~~~~~~~~~~
   3 errors generated.


vim +/PAGE_SHARED +802 drivers/video/fbdev/smscufx.c

3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  775  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  776  static int ufx_ops_mmap(struct fb_info *info, struct vm_area_struct *vma)
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  777  {
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  778  	unsigned long start = vma->vm_start;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  779  	unsigned long size = vma->vm_end - vma->vm_start;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  780  	unsigned long offset = vma->vm_pgoff << PAGE_SHIFT;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  781  	unsigned long page, pos;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  782  
5905585103276b7 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2022-04-29  783  	if (info->fbdefio)
5905585103276b7 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2022-04-29  784  		return fb_deferred_io_mmap(info, vma);
5905585103276b7 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2022-04-29  785  
76f92201b821dd2 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2023-11-27  786  	vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
76f92201b821dd2 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2023-11-27  787  
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  788  	if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  789  		return -EINVAL;
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  790  	if (size > info->fix.smem_len)
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  791  		return -EINVAL;
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  792  	if (offset > info->fix.smem_len - size)
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  793  		return -EINVAL;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  794  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  795  	pos = (unsigned long)info->fix.smem_start + offset;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  796  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  797  	pr_debug("mmap() framebuffer addr:%lu size:%lu\n",
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  798  		  pos, size);
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  799  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  800  	while (size > 0) {
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  801  		page = vmalloc_to_pfn((void *)pos);
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18 @802  		if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  803  			return -EAGAIN;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  804  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  805  		start += PAGE_SIZE;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  806  		pos += PAGE_SIZE;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  807  		if (size > PAGE_SIZE)
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  808  			size -= PAGE_SIZE;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  809  		else
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  810  			size = 0;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  811  	}
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  812  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  813  	return 0;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  814  }
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  815  

:::::: The code at line 802 was first introduced by commit
:::::: 3c8a63e22a0802fd56380f6ab305b419f18eb6f5 Add support for SMSC UFX6000/7000 USB display adapters

:::::: TO: Steve Glendinning <steve.glendinning@smsc.com>
:::::: CC: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [bcain:hexagon 2/82] drivers/video/fbdev/smscufx.c:802:52: error: use of undeclared identifier 'PAGE_SHARED'
@ 2026-10-19  7:07 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-10-19  7:07 UTC (permalink / raw)
  To: Brian Cain; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bcain/linux.git hexagon
head:   35ab1dadb94646b74469738c1741f68e8c6aac3d
commit: a068d81e03bf28e40eceb94bc49e122f09177d70 [2/82] hexagon: fix the page table model for the Hexagon VM
config: hexagon-randconfig-2000-20261019 (https://download.01.org/0day-ci/archive/20261019/202610190913.B5w1BMXS-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261019/202610190913.B5w1BMXS-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610190913.B5w1BMXS-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/video/fbdev/smscufx.c:802:52: error: use of undeclared identifier 'PAGE_SHARED'
     802 |                 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
         |                                                                  ^
   1 error generated.
--
>> drivers/video/fbdev/udlfb.c:370:52: error: use of undeclared identifier 'PAGE_SHARED'
     370 |                 if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
         |                                                                  ^
   1 error generated.


vim +/PAGE_SHARED +802 drivers/video/fbdev/smscufx.c

3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  775  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  776  static int ufx_ops_mmap(struct fb_info *info, struct vm_area_struct *vma)
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  777  {
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  778  	unsigned long start = vma->vm_start;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  779  	unsigned long size = vma->vm_end - vma->vm_start;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  780  	unsigned long offset = vma->vm_pgoff << PAGE_SHIFT;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  781  	unsigned long page, pos;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  782  
5905585103276b7 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2022-04-29  783  	if (info->fbdefio)
5905585103276b7 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2022-04-29  784  		return fb_deferred_io_mmap(info, vma);
5905585103276b7 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2022-04-29  785  
76f92201b821dd2 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2023-11-27  786  	vma->vm_page_prot = pgprot_decrypted(vma->vm_page_prot);
76f92201b821dd2 drivers/video/fbdev/smscufx.c Thomas Zimmermann 2023-11-27  787  
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  788  	if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  789  		return -EINVAL;
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  790  	if (size > info->fix.smem_len)
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  791  		return -EINVAL;
04f8afbec37f63f drivers/video/smscufx.c       Tomi Valkeinen    2013-04-18  792  	if (offset > info->fix.smem_len - size)
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  793  		return -EINVAL;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  794  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  795  	pos = (unsigned long)info->fix.smem_start + offset;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  796  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  797  	pr_debug("mmap() framebuffer addr:%lu size:%lu\n",
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  798  		  pos, size);
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  799  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  800  	while (size > 0) {
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  801  		page = vmalloc_to_pfn((void *)pos);
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18 @802  		if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  803  			return -EAGAIN;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  804  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  805  		start += PAGE_SIZE;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  806  		pos += PAGE_SIZE;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  807  		if (size > PAGE_SIZE)
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  808  			size -= PAGE_SIZE;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  809  		else
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  810  			size = 0;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  811  	}
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  812  
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  813  	return 0;
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  814  }
3c8a63e22a0802f drivers/video/smscufx.c       Steve Glendinning 2011-08-18  815  

:::::: The code at line 802 was first introduced by commit
:::::: 3c8a63e22a0802fd56380f6ab305b419f18eb6f5 Add support for SMSC UFX6000/7000 USB display adapters

:::::: TO: Steve Glendinning <steve.glendinning@smsc.com>
:::::: CC: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-19  9:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19  9:35 [bcain:hexagon 2/82] drivers/video/fbdev/smscufx.c:802:52: error: use of undeclared identifier 'PAGE_SHARED' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-10-19  7:07 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox