All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 2462/3999] drivers/video/fbdev/controlfb.c:329:23: error: implicit declaration of function 'pgprot_cached_wthru'
@ 2020-04-23  3:45 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-23  3:45 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   a5840f9618a90ecbe1617f7632482563c0ee307e
commit: a07a63b0e24dd1316d11427601a9f83dc955bb40 [2462/3999] video: fbdev: controlfb: add COMPILE_TEST support
config: powerpc-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 2de52422acf04662b45599f77c14ce1b2cec2b81)
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        git checkout a07a63b0e24dd1316d11427601a9f83dc955bb40
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

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

Note: the linux-next/master HEAD a5840f9618a90ecbe1617f7632482563c0ee307e builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

>> drivers/video/fbdev/controlfb.c:329:23: error: implicit declaration of function 'pgprot_cached_wthru' [-Werror,-Wimplicit-function-declaration]
                   vma->vm_page_prot = pgprot_cached_wthru(vma->vm_page_prot);
                                       ^
   drivers/video/fbdev/controlfb.c:329:23: note: did you mean 'pgprot_cached'?
   arch/powerpc/include/asm/book3s/64/pgtable.h:840:24: note: 'pgprot_cached' declared here
   static inline pgprot_t pgprot_cached(pgprot_t prot)
                          ^
   arch/powerpc/include/asm/book3s/64/pgtable.h:839:23: note: expanded from macro 'pgprot_cached'
   #define pgprot_cached pgprot_cached
                         ^
>> drivers/video/fbdev/controlfb.c:329:21: error: assigning to 'pgprot_t' from incompatible type 'int'
                   vma->vm_page_prot = pgprot_cached_wthru(vma->vm_page_prot);
                                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.

vim +/pgprot_cached_wthru +329 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 329 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(a)lists.01.org

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-23  3:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  3:45 [linux-next:master 2462/3999] drivers/video/fbdev/controlfb.c:329:23: error: implicit declaration of function 'pgprot_cached_wthru' kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.