All of lore.kernel.org
 help / color / mirror / Atom feed
* [arnd-playground:randconfig-7.3-next 426/673] arch/powerpc/include/asm/io.h:831:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)'
@ 2026-09-25 10:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-25 10:59 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: 34a7b291ebc9fbf0074ef62ba0bdc12fd356c2b1 [426/673] mmio: remove extraneous 'volatile' annotations'
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20260925/202609251813.qFwEdkwe-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260925/202609251813.qFwEdkwe-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/202609251813.qFwEdkwe-lkp@intel.com/

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

   In file included from include/linux/io.h:12,
                    from arch/powerpc/mm/ioremap_32.c:3:
>> arch/powerpc/include/asm/io.h:831:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)'
     831 | #define iounmap iounmap
         |                 ^~~~~~~
   arch/powerpc/mm/ioremap_32.c:81:6: note: in expansion of macro 'iounmap'
      81 | void iounmap(volatile void __iomem *addr)
         |      ^~~~~~~
   arch/powerpc/include/asm/io.h:831:17: note: previous declaration of 'iounmap' with type 'void(void *)'
     831 | #define iounmap iounmap
         |                 ^~~~~~~
   include/asm-generic/io.h:1125:6: note: in expansion of macro 'iounmap'
    1125 | void iounmap(void __iomem *addr);
         |      ^~~~~~~
   arch/powerpc/mm/ioremap_32.c: In function 'iounmap':
>> arch/powerpc/mm/ioremap_32.c:90:25: warning: passing argument 1 of 'generic_iounmap' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
      90 |         generic_iounmap(addr);
         |                         ^~~~
   In file included from arch/powerpc/include/asm/io.h:962:
   include/asm-generic/io.h:1126:36: note: expected 'void *' but argument is of type 'volatile void *'
    1126 | void generic_iounmap(void __iomem *addr);
         |                      ~~~~~~~~~~~~~~^~~~
   In file included from include/linux/linkage.h:7,
                    from include/linux/printk.h:8,
                    from include/asm-generic/bug.h:31,
                    from arch/powerpc/include/asm/bug.h:116,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from arch/powerpc/include/asm/processor.h:41,
                    from include/linux/sched.h:13,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from arch/powerpc/include/asm/io.h:22:
   arch/powerpc/mm/ioremap_32.c: At top level:
>> arch/powerpc/include/asm/io.h:831:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)'
     831 | #define iounmap iounmap
         |                 ^~~~~~~
   include/linux/export.h:76:28: note: in definition of macro '__EXPORT_SYMBOL'
      76 |         extern typeof(sym) sym;                                 \
         |                            ^~~
   include/linux/export.h:89:41: note: in expansion of macro '_EXPORT_SYMBOL'
      89 | #define EXPORT_SYMBOL(sym)              _EXPORT_SYMBOL(sym, "")
         |                                         ^~~~~~~~~~~~~~
   arch/powerpc/mm/ioremap_32.c:92:1: note: in expansion of macro 'EXPORT_SYMBOL'
      92 | EXPORT_SYMBOL(iounmap);
         | ^~~~~~~~~~~~~
   arch/powerpc/mm/ioremap_32.c:92:15: note: in expansion of macro 'iounmap'
      92 | EXPORT_SYMBOL(iounmap);
         |               ^~~~~~~
   arch/powerpc/include/asm/io.h:831:17: note: previous declaration of 'iounmap' with type 'void(void *)'
     831 | #define iounmap iounmap
         |                 ^~~~~~~
   include/asm-generic/io.h:1125:6: note: in expansion of macro 'iounmap'
    1125 | void iounmap(void __iomem *addr);
         |      ^~~~~~~


vim +831 arch/powerpc/include/asm/io.h

894fa235eb4ca0b arch/powerpc/include/asm/io.h Christophe Leroy       2020-11-21  826  
86c391bd5f47101 arch/powerpc/include/asm/io.h Christophe Leroy       2018-10-09  827  void __iomem *ioremap_coherent(phys_addr_t address, unsigned long size);
f855b2f544d664c arch/powerpc/include/asm/io.h Oliver O'Halloran      2017-04-12  828  #define ioremap_cache(addr, size) \
86758b504864913 arch/powerpc/include/asm/io.h Ryan Roberts           2025-02-18  829  	ioremap_prot((addr), (size), PAGE_KERNEL)
a1f242ff460e4b5 include/asm-powerpc/io.h      Benjamin Herrenschmidt 2008-07-23  830  
8d05554dca2af6a arch/powerpc/include/asm/io.h Christophe Leroy       2023-07-06 @831  #define iounmap iounmap
4cb3cee03d558fd include/asm-powerpc/io.h      Benjamin Herrenschmidt 2006-11-11  832  

:::::: The code at line 831 was first introduced by commit
:::::: 8d05554dca2af6a77dc38a152f4e84fdf7e35179 powerpc: mm: convert to GENERIC_IOREMAP

:::::: TO: Christophe Leroy <christophe.leroy@csgroup.eu>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>

--
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 10:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-25 10:59 [arnd-playground:randconfig-7.3-next 426/673] arch/powerpc/include/asm/io.h:831:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)' 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.