[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206032141.WWW6AnsT-lkp@intel.com>
Date: Fri, 3 Jun 2022 21:21:49 +0800
From: kernel test robot <lkp@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.18-rc1 26/34]
arch/mips/include/asm/io.h:114:27: error: conflicting types for
'virt_to_phys'; have 'phys_addr_t(const volatile void *)' {aka 'long long
unsigned int(const volatile void *)'}
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.18-rc1
head: 1aafd4ba7b78b4ac0013a48a35252654852cb7ab
commit: 528ddc725d2f4c648357c9323487fb3f9a639cb6 [26/34] MIPS: Make virt_to_pfn() a static inline
config: mips-buildonly-randconfig-r003-20220531 (https://download.01.org/0day-ci/archive/20220603/202206032141.WWW6AnsT-lkp@intel.com/config)
compiler: mips64-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=528ddc725d2f4c648357c9323487fb3f9a639cb6
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.18-rc1
git checkout 528ddc725d2f4c648357c9323487fb3f9a639cb6
# 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=mips prepare
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from arch/mips/include/asm/page.h:74,
from arch/mips/include/asm/io.h:29,
from arch/mips/include/asm/mmiowb.h:5,
from include/linux/spinlock.h:64,
from include/linux/ipc.h:5,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/compat.h:14,
from arch/mips/kernel/asm-offsets.c:12:
arch/mips/include/asm/page.h: In function 'virt_to_pfn':
arch/mips/include/asm/page.h:263:40: error: implicit declaration of function 'virt_to_phys'; did you mean 'virt_to_pfn'? [-Werror=implicit-function-declaration]
263 | return (unsigned long)PFN_DOWN(virt_to_phys(kaddr));
| ^~~~~~~~~~~~
include/linux/pfn.h:20:27: note: in definition of macro 'PFN_DOWN'
20 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
| ^
In file included from arch/mips/include/asm/mmiowb.h:5,
from include/linux/spinlock.h:64,
from include/linux/ipc.h:5,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/compat.h:14,
from arch/mips/kernel/asm-offsets.c:12:
arch/mips/include/asm/io.h: At top level:
>> arch/mips/include/asm/io.h:114:27: error: conflicting types for 'virt_to_phys'; have 'phys_addr_t(const volatile void *)' {aka 'long long unsigned int(const volatile void *)'}
114 | static inline phys_addr_t virt_to_phys(const volatile void *x)
| ^~~~~~~~~~~~
In file included from arch/mips/include/asm/page.h:74,
from arch/mips/include/asm/io.h:29,
from arch/mips/include/asm/mmiowb.h:5,
from include/linux/spinlock.h:64,
from include/linux/ipc.h:5,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/compat.h:14,
from arch/mips/kernel/asm-offsets.c:12:
arch/mips/include/asm/page.h:263:40: note: previous implicit declaration of 'virt_to_phys' with type 'int()'
263 | return (unsigned long)PFN_DOWN(virt_to_phys(kaddr));
| ^~~~~~~~~~~~
include/linux/pfn.h:20:27: note: in definition of macro 'PFN_DOWN'
20 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
| ^
arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
26 | void output_ptreg_defines(void)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
78 | void output_task_defines(void)
| ^~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:92:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
92 | void output_thread_info_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:108:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
108 | void output_thread_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:179:6: warning: no previous prototype for 'output_mm_defines' [-Wmissing-prototypes]
179 | void output_mm_defines(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:240:6: warning: no previous prototype for 'output_sc_defines' [-Wmissing-prototypes]
240 | void output_sc_defines(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:253:6: warning: no previous prototype for 'output_signal_defined' [-Wmissing-prototypes]
253 | void output_signal_defined(void)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:120: arch/mips/kernel/asm-offsets.s] Error 1
make[2]: Target 'missing-syscalls' not remade because of errors.
make[1]: *** [arch/mips/Makefile:408: archprepare] 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 +114 arch/mips/include/asm/io.h
dfad83cb7193ef Florian Fainelli 2021-03-30 113
dfad83cb7193ef Florian Fainelli 2021-03-30 @114 static inline phys_addr_t virt_to_phys(const volatile void *x)
dfad83cb7193ef Florian Fainelli 2021-03-30 115 {
dfad83cb7193ef Florian Fainelli 2021-03-30 116 return __virt_to_phys(x);
dfad83cb7193ef Florian Fainelli 2021-03-30 117 }
dfad83cb7193ef Florian Fainelli 2021-03-30 118
:::::: The code at line 114 was first introduced by commit
:::::: dfad83cb7193effb6c853a5c7337ac2274a2e2fc MIPS: Add support for CONFIG_DEBUG_VIRTUAL
:::::: TO: Florian Fainelli <f.fainelli@...il.com>
:::::: CC: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists