All of lore.kernel.org
 help / color / mirror / Atom feed
* [dax:headers 5/11] include/linux/highmem.h:83:9: error: implicit declaration of function 'page_address'; did you mean 'printk_address'?
@ 2020-03-20 12:47 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-20 12:47 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/willy/linux-dax.git headers
head:   5a5ea1767a1c4e0b7f42cbfa9c41f5805cecfa77
commit: 7bbb0ccd2172f64cf0cfbd4079853df66286d774 [5/11] arch: Remove pagemap.h from arch include files
config: sh-rsk7269_defconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 7bbb0ccd2172f64cf0cfbd4079853df66286d774
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=sh 

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

All error/warnings (new ones prefixed by >>):

   In file included from arch/sh/include/asm/pgtable.h:12,
                    from include/linux/mm.h:94,
                    from arch/sh/kernel/asm-offsets.c:14:
   include/linux/highmem.h: In function 'kmap':
>> include/linux/highmem.h:83:9: error: implicit declaration of function 'page_address'; did you mean 'printk_address'? [-Werror=implicit-function-declaration]
      83 |  return page_address(page);
         |         ^~~~~~~~~~~~
         |         printk_address
>> include/linux/highmem.h:83:9: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
      83 |  return page_address(page);
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/highmem.h: In function 'kmap_atomic':
   include/linux/highmem.h:94:9: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
      94 |  return page_address(page);
         |         ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:101: arch/sh/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1113: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:180: sub-make] Error 2
   25 real  7 user  14 sys  82.92% cpu 	make prepare

vim +83 include/linux/highmem.h

c1f60a5a419cc6 Christoph Lameter 2006-09-25  78  
a6ca1b99ed434f James Bottomley   2006-09-25  79  #ifndef ARCH_HAS_KMAP
^1da177e4c3f41 Linus Torvalds    2005-04-16  80  static inline void *kmap(struct page *page)
^1da177e4c3f41 Linus Torvalds    2005-04-16  81  {
^1da177e4c3f41 Linus Torvalds    2005-04-16  82  	might_sleep();
^1da177e4c3f41 Linus Torvalds    2005-04-16 @83  	return page_address(page);
^1da177e4c3f41 Linus Torvalds    2005-04-16  84  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  85  

:::::: The code at line 83 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.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: 11735 bytes --]

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

only message in thread, other threads:[~2020-03-20 12:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20 12:47 [dax:headers 5/11] include/linux/highmem.h:83:9: error: implicit declaration of function 'page_address'; did you mean 'printk_address'? 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.