From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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 *)'
Date: Fri, 25 Sep 2026 18:59:20 +0800 [thread overview]
Message-ID: <202609251813.qFwEdkwe-lkp@intel.com> (raw)
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
reply other threads:[~2026-09-25 10:59 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=202609251813.qFwEdkwe-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.