linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 6093/8750] drivers/video/fbdev/udlfb.c:343:52: error: 'PAGE_SHARED' undeclared
Date: Fri, 27 Nov 2020 07:20:41 +0800	[thread overview]
Message-ID: <202011270731.3JVFTmkg-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6214 bytes --]

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-r033-20201127 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
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
        # 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=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/video/fbdev/udlfb.c: In function 'dlfb_ops_mmap':
>> drivers/video/fbdev/udlfb.c:343:52: error: 'PAGE_SHARED' undeclared (first use in this function)
     343 |   if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
         |                                                    ^~~~~~~~~~~
   drivers/video/fbdev/udlfb.c:343:52: note: each undeclared identifier is reported only once for each function it appears in
--
   drivers/video/fbdev/smscufx.c: In function 'ufx_ops_mmap':
>> drivers/video/fbdev/smscufx.c:796:52: error: 'PAGE_SHARED' undeclared (first use in this function)
     796 |   if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
         |                                                    ^~~~~~~~~~~
   drivers/video/fbdev/smscufx.c:796:52: note: each undeclared identifier is reported only once for each function it appears in

vim +/PAGE_SHARED +343 drivers/video/fbdev/udlfb.c

59277b679f8b5ce drivers/staging/udlfb/udlfb.c Bernie Thompson    2009-11-24  321  
4574203f45eb26b drivers/staging/udlfb/udlfb.c Bernie Thompson    2010-02-15  322  static int dlfb_ops_mmap(struct fb_info *info, struct vm_area_struct *vma)
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  323  {
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  324  	unsigned long start = vma->vm_start;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  325  	unsigned long size = vma->vm_end - vma->vm_start;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  326  	unsigned long offset = vma->vm_pgoff << PAGE_SHIFT;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  327  	unsigned long page, pos;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  328  
04f8afbec37f63f drivers/video/udlfb.c         Tomi Valkeinen     2013-04-18  329  	if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
04f8afbec37f63f drivers/video/udlfb.c         Tomi Valkeinen     2013-04-18  330  		return -EINVAL;
04f8afbec37f63f drivers/video/udlfb.c         Tomi Valkeinen     2013-04-18  331  	if (size > info->fix.smem_len)
04f8afbec37f63f drivers/video/udlfb.c         Tomi Valkeinen     2013-04-18  332  		return -EINVAL;
04f8afbec37f63f drivers/video/udlfb.c         Tomi Valkeinen     2013-04-18  333  	if (offset > info->fix.smem_len - size)
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  334  		return -EINVAL;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  335  
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  336  	pos = (unsigned long)info->fix.smem_start + offset;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  337  
5865889fe431941 drivers/video/fbdev/udlfb.c   Ladislav Michl     2018-01-16  338  	dev_dbg(info->dev, "mmap() framebuffer addr:%lu size:%lu\n",
2685cffa9e79927 drivers/staging/udlfb/udlfb.c Bernie Thompson    2010-09-05  339  		pos, size);
2685cffa9e79927 drivers/staging/udlfb/udlfb.c Bernie Thompson    2010-09-05  340  
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  341  	while (size > 0) {
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  342  		page = vmalloc_to_pfn((void *)pos);
f05e0575ed334a2 drivers/staging/udlfb/udlfb.c Greg Kroah-Hartman 2009-06-03 @343  		if (remap_pfn_range(vma, start, page, PAGE_SIZE, PAGE_SHARED))
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  344  			return -EAGAIN;
f05e0575ed334a2 drivers/staging/udlfb/udlfb.c Greg Kroah-Hartman 2009-06-03  345  
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  346  		start += PAGE_SIZE;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  347  		pos += PAGE_SIZE;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  348  		if (size > PAGE_SIZE)
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  349  			size -= PAGE_SIZE;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  350  		else
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  351  			size = 0;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  352  	}
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  353  
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  354  	return 0;
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  355  }
88e58b1a42f8c1e drivers/staging/udlfb/udlfb.c Roberto De Ioris   2009-06-03  356  

:::::: The code at line 343 was first introduced by commit
:::::: f05e0575ed334a23dad91b8f6ed0ac42a3996b8d Staging: udlfb: clean up checkpatch warnings in udlfb.c

:::::: TO: Greg Kroah-Hartman <gregkh@suse.de>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33249 bytes --]

                 reply	other threads:[~2020-11-26 23:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202011270731.3JVFTmkg-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=tsbogend@alpha.franken.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).