From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.19-rc1 23/33] arch/microblaze/include/asm/page.h:115:25: error: implicit declaration of function '__virt_to_phys'; did you mean 'virt_to_pfn'?
Date: Wed, 8 Jun 2022 14:01:47 +0800 [thread overview]
Message-ID: <202206081328.suY733VF-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1
head: 512fc95a58c7b2e91e267db91a4ec5a54afedd01
commit: 25049d91eb99805aaf82c2829b63b52ee8591776 [23/33] microblaze: Make virt_to_pfn() a static inline
config: microblaze-buildonly-randconfig-r012-20220607 (https://download.01.org/0day-ci/archive/20220608/202206081328.suY733VF-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 11.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/linusw/linux-integrator.git/commit/?id=25049d91eb99805aaf82c2829b63b52ee8591776
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.19-rc1
git checkout 25049d91eb99805aaf82c2829b63b52ee8591776
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=microblaze prepare
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/microblaze/include/asm/page.h:15,
from include/linux/shm.h:6,
from include/linux/sched.h:16,
from arch/microblaze/kernel/asm-offsets.c:13:
arch/microblaze/include/asm/page.h: In function 'virt_to_pfn':
>> arch/microblaze/include/asm/page.h:115:25: error: implicit declaration of function '__virt_to_phys'; did you mean 'virt_to_pfn'? [-Werror=implicit-function-declaration]
115 | # define __pa(x) __virt_to_phys((unsigned long)(x))
| ^~~~~~~~~~~~~~
include/linux/pfn.h:20:27: note: in definition of macro 'PFN_DOWN'
20 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
| ^
arch/microblaze/include/asm/page.h:120:16: note: in expansion of macro 'phys_to_pfn'
120 | return phys_to_pfn(__pa(vaddr));
| ^~~~~~~~~~~
arch/microblaze/include/asm/page.h:120:28: note: in expansion of macro '__pa'
120 | return phys_to_pfn(__pa(vaddr));
| ^~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/microblaze/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1196: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +115 arch/microblaze/include/asm/page.h
4b87d7a4f91d31 Michal Simek 2009-03-27 114
1f84e1ea0e87ad Michal Simek 2009-05-26 @115 # define __pa(x) __virt_to_phys((unsigned long)(x))
1f84e1ea0e87ad Michal Simek 2009-05-26 116 # define __va(x) ((void *)__phys_to_virt((unsigned long)(x)))
1f84e1ea0e87ad Michal Simek 2009-05-26 117
:::::: The code at line 115 was first introduced by commit
:::::: 1f84e1ea0e87ad659cd6f6a6285d50c73a8d1a24 microblaze_mmu_v2: pgalloc.h and page.h
:::::: TO: Michal Simek <monstr@monstr.eu>
:::::: CC: Michal Simek <monstr@monstr.eu>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-06-08 7:15 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=202206081328.suY733VF-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linus.walleij@linaro.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