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

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

   In file included from include/linux/io.h:12,
                    from arch/arc/mm/ioremap.c:9:
>> arch/arc/include/asm/io.h:26:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)'
      26 | #define iounmap iounmap
         |                 ^~~~~~~
   arch/arc/mm/ioremap.c:54:6: note: in expansion of macro 'iounmap'
      54 | void iounmap(volatile void __iomem *addr)
         |      ^~~~~~~
   arch/arc/include/asm/io.h:26:17: note: previous declaration of 'iounmap' with type 'void(void *)'
      26 | #define iounmap iounmap
         |                 ^~~~~~~
   include/asm-generic/io.h:1125:6: note: in expansion of macro 'iounmap'
    1125 | void iounmap(void __iomem *addr);
         |      ^~~~~~~
   arch/arc/mm/ioremap.c: In function 'iounmap':
>> arch/arc/mm/ioremap.c:60:25: warning: passing argument 1 of 'generic_iounmap' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
      60 |         generic_iounmap(addr);
         |                         ^~~~
   In file included from arch/arc/include/asm/io.h:229:
   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/arc/include/asm/bug.h:30,
                    from include/linux/bug.h:5,
                    from include/linux/alloc_tag.h:8,
                    from include/linux/vmalloc.h:5,
                    from arch/arc/mm/ioremap.c:6:
   arch/arc/mm/ioremap.c: At top level:
>> arch/arc/include/asm/io.h:26:17: error: conflicting types for 'iounmap'; have 'void(volatile void *)'
      26 | #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/arc/mm/ioremap.c:62:1: note: in expansion of macro 'EXPORT_SYMBOL'
      62 | EXPORT_SYMBOL(iounmap);
         | ^~~~~~~~~~~~~
   arch/arc/mm/ioremap.c:62:15: note: in expansion of macro 'iounmap'
      62 | EXPORT_SYMBOL(iounmap);
         |               ^~~~~~~
   arch/arc/include/asm/io.h:26:17: note: previous declaration of 'iounmap' with type 'void(void *)'
      26 | #define iounmap iounmap
         |                 ^~~~~~~
   include/asm-generic/io.h:1125:6: note: in expansion of macro 'iounmap'
    1125 | void iounmap(void __iomem *addr);
         |      ^~~~~~~


vim +26 arch/arc/include/asm/io.h

e5bc0478ab6cf5 Vineet Gupta 2016-05-05  22  
f5db19e93f6801 Vineet Gupta 2016-03-16  23  extern void __iomem *ioremap(phys_addr_t paddr, unsigned long size);
06dfae39d20091 Baoquan He   2023-07-06  24  #define ioremap ioremap
06dfae39d20091 Baoquan He   2023-07-06  25  #define ioremap_prot ioremap_prot
06dfae39d20091 Baoquan He   2023-07-06 @26  #define iounmap iounmap
c1678ffcdea25a Joao Pinto   2016-03-10  27  static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
c1678ffcdea25a Joao Pinto   2016-03-10  28  {
c1678ffcdea25a Joao Pinto   2016-03-10  29  	return (void __iomem *)port;
c1678ffcdea25a Joao Pinto   2016-03-10  30  }
c1678ffcdea25a Joao Pinto   2016-03-10  31  

:::::: The code at line 26 was first introduced by commit
:::::: 06dfae39d20091f3c8aa995f00505e1e148b0b3f arc: mm: convert to GENERIC_IOREMAP

:::::: TO: Baoquan He <bhe@redhat.com>
:::::: 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 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-25 11:54 [arnd-playground:randconfig-7.3-next 426/673] arch/arc/include/asm/io.h:26: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.