All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [dax:headers 5/11] include/linux/highmem.h:83:9: error: implicit declaration of function 'page_address'; did you mean 'printk_address'?
Date: Fri, 20 Mar 2020 20:47:56 +0800	[thread overview]
Message-ID: <202003202038.xrdEaNeo%lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2020-03-20 12:47 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=202003202038.xrdEaNeo%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.