From: kernel test robot <lkp@intel.com>
To: Manikanta Guntupalli <manikanta.guntupalli@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, git@amd.com,
Michal Simek <monstr@monstr.eu>, Frank Li <Frank.Li@nxp.com>
Subject: [xilinx-xlnx:xlnx_rebase_v6.18_LTS 492/870] include/asm-generic/io.h:322:18: error: redefinition of 'readw_be'
Date: Thu, 14 May 2026 23:10:26 +0800 [thread overview]
Message-ID: <202605142201.OI2h1QS7-lkp@intel.com> (raw)
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v6.18_LTS
head: fb979987d554f0c8fd045b114a27a6359c9265cf
commit: 66262fff1de8401d7f4dd6c23d0adab1701e28dc [492/870] asm-generic/io.h: Add big-endian MMIO accessors
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20260514/202605142201.OI2h1QS7-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605142201.OI2h1QS7-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/202605142201.OI2h1QS7-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/io.h:962,
from include/linux/io.h:12,
from include/linux/irq.h:20,
from arch/powerpc/include/asm/hardirq.h:6,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:8,
from include/linux/cgroup.h:27,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/powerpc/kernel/asm-offsets.c:22:
>> include/asm-generic/io.h:322:18: error: redefinition of 'readw_be'
322 | #define readw_be readw_be
| ^~~~~~~~
include/asm-generic/io.h:323:19: note: in expansion of macro 'readw_be'
323 | static inline u16 readw_be(const volatile void __iomem *addr)
| ^~~~~~~~
arch/powerpc/include/asm/io.h:517:19: note: previous definition of 'readw_be' with type 'u16(const volatile void *)' {aka 'short unsigned int(const volatile void *)'}
517 | static inline u16 readw_be(const volatile void __iomem *addr)
| ^~~~~~~~
>> include/asm-generic/io.h:337:18: error: redefinition of 'readl_be'
337 | #define readl_be readl_be
| ^~~~~~~~
include/asm-generic/io.h:338:19: note: in expansion of macro 'readl_be'
338 | static inline u32 readl_be(const volatile void __iomem *addr)
| ^~~~~~~~
arch/powerpc/include/asm/io.h:522:19: note: previous definition of 'readl_be' with type 'u32(const volatile void *)' {aka 'unsigned int(const volatile void *)'}
522 | static inline u32 readl_be(const volatile void __iomem *addr)
| ^~~~~~~~
>> include/asm-generic/io.h:369:19: error: redefinition of 'writew_be'
369 | #define writew_be writew_be
| ^~~~~~~~~
include/asm-generic/io.h:370:20: note: in expansion of macro 'writew_be'
370 | static inline void writew_be(u16 value, volatile void __iomem *addr)
| ^~~~~~~~~
arch/powerpc/include/asm/io.h:545:20: note: previous definition of 'writew_be' with type 'void(u16, volatile void *)' {aka 'void(short unsigned int, volatile void *)'}
545 | static inline void writew_be(u16 val, volatile void __iomem *addr)
| ^~~~~~~~~
>> include/asm-generic/io.h:381:19: error: redefinition of 'writel_be'
381 | #define writel_be writel_be
| ^~~~~~~~~
include/asm-generic/io.h:382:20: note: in expansion of macro 'writel_be'
382 | static inline void writel_be(u32 value, volatile void __iomem *addr)
| ^~~~~~~~~
arch/powerpc/include/asm/io.h:550:20: note: previous definition of 'writel_be' with type 'void(u32, volatile void *)' {aka 'void(unsigned int, volatile void *)'}
550 | static inline void writel_be(u32 val, volatile void __iomem *addr)
| ^~~~~~~~~
make[3]: *** [scripts/Makefile.build:182: arch/powerpc/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1280: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/readw_be +322 include/asm-generic/io.h
315
316 /*
317 * {read,write}{w,l,q}_be() access big endian memory and return result
318 * in native endianness.
319 */
320
321 #ifndef readw_be
> 322 #define readw_be readw_be
323 static inline u16 readw_be(const volatile void __iomem *addr)
324 {
325 u16 val;
326
327 log_read_mmio(16, addr, _THIS_IP_, _RET_IP_);
328 __io_br();
329 val = __be16_to_cpu((__be16 __force)__raw_readw(addr));
330 __io_ar(val);
331 log_post_read_mmio(val, 16, addr, _THIS_IP_, _RET_IP_);
332 return val;
333 }
334 #endif
335
336 #ifndef readl_be
> 337 #define readl_be readl_be
338 static inline u32 readl_be(const volatile void __iomem *addr)
339 {
340 u32 val;
341
342 log_read_mmio(32, addr, _THIS_IP_, _RET_IP_);
343 __io_br();
344 val = __be32_to_cpu((__be32 __force)__raw_readl(addr));
345 __io_ar(val);
346 log_post_read_mmio(val, 32, addr, _THIS_IP_, _RET_IP_);
347 return val;
348 }
349 #endif
350
351 #ifdef CONFIG_64BIT
352 #ifndef readq_be
353 #define readq_be readq_be
354 static inline u64 readq_be(const volatile void __iomem *addr)
355 {
356 u64 val;
357
358 log_read_mmio(64, addr, _THIS_IP_, _RET_IP_);
359 __io_br();
360 val = __be64_to_cpu((__be64 __force)__raw_readq(addr));
361 __io_ar(val);
362 log_post_read_mmio(val, 64, addr, _THIS_IP_, _RET_IP_);
363 return val;
364 }
365 #endif
366 #endif /* CONFIG_64BIT */
367
368 #ifndef writew_be
> 369 #define writew_be writew_be
370 static inline void writew_be(u16 value, volatile void __iomem *addr)
371 {
372 log_write_mmio(value, 16, addr, _THIS_IP_, _RET_IP_);
373 __io_bw();
374 __raw_writew((u16 __force)__cpu_to_be16(value), addr);
375 __io_aw();
376 log_post_write_mmio(value, 16, addr, _THIS_IP_, _RET_IP_);
377 }
378 #endif
379
380 #ifndef writel_be
> 381 #define writel_be writel_be
382 static inline void writel_be(u32 value, volatile void __iomem *addr)
383 {
384 log_write_mmio(value, 32, addr, _THIS_IP_, _RET_IP_);
385 __io_bw();
386 __raw_writel((u32 __force)__cpu_to_be32(value), addr);
387 __io_aw();
388 log_post_write_mmio(value, 32, addr, _THIS_IP_, _RET_IP_);
389 }
390 #endif
391
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-14 15:10 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=202605142201.OI2h1QS7-lkp@intel.com \
--to=lkp@intel.com \
--cc=Frank.Li@nxp.com \
--cc=git@amd.com \
--cc=manikanta.guntupalli@amd.com \
--cc=monstr@monstr.eu \
--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.