linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/video/fbdev/controlfb.c:326:23: error: implicit declaration of function 'pgprot_noncached'
Date: Fri, 12 Jun 2020 23:02:55 +0800	[thread overview]
Message-ID: <202006122345.MGR0SPqd%lkp@intel.com> (raw)

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

Hi Bartlomiej,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b791d1bdf9212d944d749a5c7ff6febdba241771
commit: a07a63b0e24dd1316d11427601a9f83dc955bb40 video: fbdev: controlfb: add COMPILE_TEST support
date:   8 weeks ago
config: m68k-randconfig-r025-20200612 (attached as .config)
compiler: m68k-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
        git checkout a07a63b0e24dd1316d11427601a9f83dc955bb40
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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 >>, old ones prefixed by <<):

drivers/video/fbdev/controlfb.c: In function 'controlfb_mmap':
>> drivers/video/fbdev/controlfb.c:326:23: error: implicit declaration of function 'pgprot_noncached' [-Werror=implicit-function-declaration]
326 |   vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|                       ^~~~~~~~~~~~~~~~
drivers/video/fbdev/controlfb.c:326:23: error: incompatible types when assigning to type 'pgprot_t' {aka 'struct <anonymous>'} from type 'int'
drivers/video/fbdev/controlfb.c: In function 'controlfb_setcolreg':
drivers/video/fbdev/controlfb.c:373:13: warning: variable 'b' set but not used [-Wunused-but-set-variable]
373 |  __u8 r, g, b;
|             ^
drivers/video/fbdev/controlfb.c:373:10: warning: variable 'g' set but not used [-Wunused-but-set-variable]
373 |  __u8 r, g, b;
|          ^
drivers/video/fbdev/controlfb.c:373:7: warning: variable 'r' set but not used [-Wunused-but-set-variable]
373 |  __u8 r, g, b;
|       ^
drivers/video/fbdev/controlfb.c: In function 'control_set_hardware':
drivers/video/fbdev/controlfb.c:505:11: warning: variable 'cmode' set but not used [-Wunused-but-set-variable]
505 |  int   i, cmode;
|           ^~~~~
cc1: some warnings being treated as errors

vim +/pgprot_noncached +326 drivers/video/fbdev/controlfb.c

^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  303  
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  304  
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  305  /*
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  306   * Private mmap since we want to have a different caching on the framebuffer
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  307   * for controlfb.
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  308   * Note there's no locking in here; it's done in fb_mmap() in fbmem.c.
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  309   */
216d526c89d144 drivers/video/controlfb.c Christoph Hellwig      2006-01-14  310  static int controlfb_mmap(struct fb_info *info,
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  311                         struct vm_area_struct *vma)
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  312  {
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  313  	unsigned long mmio_pgoff;
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  314  	unsigned long start;
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  315  	u32 len;
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  316  
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  317  	start = info->fix.smem_start;
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  318  	len = info->fix.smem_len;
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  319  	mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT;
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  320  	if (vma->vm_pgoff >= mmio_pgoff) {
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  321  		if (info->var.accel_flags)
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  322  			return -EINVAL;
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  323  		vma->vm_pgoff -= mmio_pgoff;
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  324  		start = info->fix.mmio_start;
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  325  		len = info->fix.mmio_len;
64b3d0e8122b42 drivers/video/controlfb.c Benjamin Herrenschmidt 2008-12-18 @326  		vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  327  	} else {
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  328  		/* framebuffer */
64b3d0e8122b42 drivers/video/controlfb.c Benjamin Herrenschmidt 2008-12-18  329  		vma->vm_page_prot = pgprot_cached_wthru(vma->vm_page_prot);
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  330  	}
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  331  
47f698a9f2fc49 drivers/video/controlfb.c Tomi Valkeinen         2013-04-17  332  	return vm_iomap_memory(vma, start, len);
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  333  }
^1da177e4c3f41 drivers/video/controlfb.c Linus Torvalds         2005-04-16  334  

:::::: The code at line 326 was first introduced by commit
:::::: 64b3d0e8122b422e879b23d42f9e0e8efbbf9744 powerpc/mm: Rework usage of _PAGE_COHERENT/NO_CACHE/GUARDED

:::::: TO: Benjamin Herrenschmidt <benh@kernel.crashing.org>
:::::: CC: Paul Mackerras <paulus@samba.org>

---
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: 29836 bytes --]

                 reply	other threads:[~2020-06-12 15:13 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=202006122345.MGR0SPqd%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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).