* [arnd-playground:randconfig-7.3-next 609/673] include/asm-generic/io.h:1099:16: error: implicit declaration of function '__pa'
@ 2026-09-25 12:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-25 12:22 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-7.3-next
head: 0a1affa74ef2f2c5c5ee74fc604e47a1aefdd286
commit: 5820acdc34867db3abad330764e2069a3fb15216 [609/673] Revert "asm/io.h: move virt_to_phys/phys_to_virt"
config: sparc-allnoconfig (https://download.01.org/0day-ci/archive/20260925/202609252034.msEqqqSo-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260925/202609252034.msEqqqSo-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609252034.msEqqqSo-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/sparc/include/asm/io_32.h:21,
from arch/sparc/include/asm/io.h:7,
from include/linux/io.h:12,
from lib/iomem_copy.c:8:
include/asm-generic/io.h: In function 'virt_to_phys':
>> include/asm-generic/io.h:1099:16: error: implicit declaration of function '__pa' [-Wimplicit-function-declaration]
1099 | return __pa((unsigned long)address);
| ^~~~
include/asm-generic/io.h: In function 'phys_to_virt':
>> include/asm-generic/io.h:1107:16: error: implicit declaration of function '__va' [-Wimplicit-function-declaration]
1107 | return __va(address);
| ^~~~
>> include/asm-generic/io.h:1107:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
1107 | return __va(address);
| ^~~~~~~~~~~~~
include/linux/io.h: At top level:
include/linux/io.h:28:47: error: unknown type name 'pgprot_t'
28 | phys_addr_t phys_addr, pgprot_t prot);
| ^~~~~~~~
include/linux/io.h:30:44: error: unknown type name 'pgprot_t'
30 | phys_addr_t phys_addr, pgprot_t prot);
| ^~~~~~~~
include/linux/io.h:80:1: warning: data definition has no type or storage class
80 | pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr,
| ^~~~~~~~
include/linux/io.h:80:1: error: type defaults to 'int' in declaration of 'pgprot_t' [-Wimplicit-int]
include/linux/io.h:80:1: warning: 'cold' attribute ignored [-Wattributes]
include/linux/io.h:80:17: error: expected ',' or ';' before 'early_memremap_pgprot_adjust'
80 | pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/__pa +1099 include/asm-generic/io.h
1090
1091 /*
1092 * Change virtual addresses to physical addresses and vv.
1093 * These are pretty trivial
1094 */
1095 #ifndef virt_to_phys
1096 #define virt_to_phys virt_to_phys
1097 static inline unsigned long virt_to_phys(volatile void *address)
1098 {
> 1099 return __pa((unsigned long)address);
1100 }
1101 #endif
1102
1103 #ifndef phys_to_virt
1104 #define phys_to_virt phys_to_virt
1105 static inline void *phys_to_virt(unsigned long address)
1106 {
> 1107 return __va(address);
1108 }
1109 #endif
1110
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-25 12:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-25 12:22 [arnd-playground:randconfig-7.3-next 609/673] include/asm-generic/io.h:1099:16: error: implicit declaration of function '__pa' kernel 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.