[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202509271308.NHfa8qUq-lkp@intel.com>
Date: Sat, 27 Sep 2025 14:12:21 +0800
From: kernel test robot <lkp@...el.com>
To: Manikanta Guntupalli <manikanta.guntupalli@....com>, git@....com,
michal.simek@....com, alexandre.belloni@...tlin.com,
Frank.Li@....com, robh@...nel.org, krzk+dt@...nel.org,
conor+dt@...nel.org, pgaj@...ence.com,
wsa+renesas@...g-engineering.com, tommaso.merciai.xr@...renesas.com,
arnd@...db.de, quic_msavaliy@...cinc.com, Shyam-sundar.S-k@....com,
sakari.ailus@...ux.intel.com, billy_tsai@...eedtech.com,
kees@...nel.org, gustavoars@...nel.org,
jarkko.nikula@...ux.intel.com, jorge.marques@...log.com,
linux-i3c@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
linux-hardening@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
radhey.shyam.pandey@....com, srinivas.goud@....com,
shubhrajyoti.datta@....com, manion05gk@...il.com,
Manikanta Guntupalli <manikanta.guntupalli@....com>
Subject: Re: [PATCH V8 2/5] asm-generic/io.h: Add big-endian MMIO accessors
Hi Manikanta,
kernel test robot noticed the following build warnings:
[auto build test WARNING on robh/for-next]
[also build test WARNING on arnd-asm-generic/master linus/master v6.17-rc7 next-20250926]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Manikanta-Guntupalli/dt-bindings-i3c-Add-AMD-I3C-master-controller-support/20250926-190033
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link: https://lore.kernel.org/r/20250926105349.2932952-3-manikanta.guntupalli%40amd.com
patch subject: [PATCH V8 2/5] asm-generic/io.h: Add big-endian MMIO accessors
config: sparc64-defconfig (https://download.01.org/0day-ci/archive/20250927/202509271308.NHfa8qUq-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250927/202509271308.NHfa8qUq-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509271308.NHfa8qUq-lkp@intel.com/
All warnings (new ones prefixed by >>):
include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32'
19 | (((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
In file included from arch/sparc/include/asm/io.h:7:
In file included from arch/sparc/include/asm/io_32.h:21:
include/asm-generic/io.h:787:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
787 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
| ^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
119 | ___constant_swab32(x) : \
| ^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
20 | (((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
In file included from arch/sparc/include/asm/io.h:7:
In file included from arch/sparc/include/asm/io_32.h:21:
include/asm-generic/io.h:787:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
787 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
| ^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
119 | ___constant_swab32(x) : \
| ^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
21 | (((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
In file included from arch/sparc/include/asm/io.h:7:
In file included from arch/sparc/include/asm/io_32.h:21:
include/asm-generic/io.h:787:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
787 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
| ^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
119 | ___constant_swab32(x) : \
| ^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
22 | (((__u32)(x) & (__u32)0xff000000UL) >> 24)))
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
In file included from arch/sparc/include/asm/io.h:7:
In file included from arch/sparc/include/asm/io_32.h:21:
include/asm-generic/io.h:787:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
787 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
| ^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
120 | __fswab32(x))
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
In file included from arch/sparc/include/asm/io.h:7:
In file included from arch/sparc/include/asm/io_32.h:21:
include/asm-generic/io.h:803:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
803 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:818:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
818 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:833:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
833 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:926:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
926 | readsb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:939:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
939 | readsw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:952:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
952 | readsl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:966:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
966 | writesb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:980:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
980 | writesw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:994:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
994 | writesl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:1377:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1377 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
>> arch/sparc/include/asm/io.h:16:9: warning: 'readw_be' macro redefined [-Wmacro-redefined]
16 | #define readw_be(__addr) __raw_readw(__addr)
| ^
include/asm-generic/io.h:304:9: note: previous definition is here
304 | #define readw_be readw_be
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
>> arch/sparc/include/asm/io.h:17:9: warning: 'readl_be' macro redefined [-Wmacro-redefined]
17 | #define readl_be(__addr) __raw_readl(__addr)
| ^
include/asm-generic/io.h:319:9: note: previous definition is here
319 | #define readl_be readl_be
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
>> arch/sparc/include/asm/io.h:19:9: warning: 'writel_be' macro redefined [-Wmacro-redefined]
19 | #define writel_be(__w, __addr) __raw_writel(__w, __addr)
| ^
include/asm-generic/io.h:363:9: note: previous definition is here
363 | #define writel_be writel_be
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
In file included from arch/sparc/vdso/vdso32/../vclock_gettime.c:18:
>> arch/sparc/include/asm/io.h:20:9: warning: 'writew_be' macro redefined [-Wmacro-redefined]
20 | #define writew_be(__l, __addr) __raw_writew(__l, __addr)
| ^
include/asm-generic/io.h:351:9: note: previous definition is here
351 | #define writew_be writew_be
| ^
In file included from arch/sparc/vdso/vdso32/vclock_gettime.c:22:
arch/sparc/vdso/vdso32/../vclock_gettime.c:274:1: warning: no previous prototype for function '__vdso_clock_gettime' [-Wmissing-prototypes]
274 | __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts)
| ^
arch/sparc/vdso/vdso32/../vclock_gettime.c:273:9: note: declare 'static' if the function is not intended to be used outside of this translation unit
273 | notrace int
| ^
| static
arch/sparc/vdso/vdso32/../vclock_gettime.c:302:1: warning: no previous prototype for function '__vdso_clock_gettime_stick' [-Wmissing-prototypes]
302 | __vdso_clock_gettime_stick(clockid_t clock, struct __kernel_old_timespec *ts)
| ^
arch/sparc/vdso/vdso32/../vclock_gettime.c:301:9: note: declare 'static' if the function is not intended to be used outside of this translation unit
301 | notrace int
| ^
| static
arch/sparc/vdso/vdso32/../vclock_gettime.c:327:1: warning: no previous prototype for function '__vdso_gettimeofday' [-Wmissing-prototypes]
327 | __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
| ^
arch/sparc/vdso/vdso32/../vclock_gettime.c:326:9: note: declare 'static' if the function is not intended to be used outside of this translation unit
326 | notrace int
| ^
| static
arch/sparc/vdso/vdso32/../vclock_gettime.c:363:1: warning: no previous prototype for function '__vdso_gettimeofday_stick' [-Wmissing-prototypes]
363 | __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz)
| ^
arch/sparc/vdso/vdso32/../vclock_gettime.c:362:9: note: declare 'static' if the function is not intended to be used outside of this translation unit
362 | notrace int
| ^
| static
29 warnings generated.
vim +/readw_be +16 arch/sparc/include/asm/io.h
21dccddf45aae2 Jan Andersson 2011-05-10 9
21dccddf45aae2 Jan Andersson 2011-05-10 10 /*
21dccddf45aae2 Jan Andersson 2011-05-10 11 * Defines used for both SPARC32 and SPARC64
21dccddf45aae2 Jan Andersson 2011-05-10 12 */
21dccddf45aae2 Jan Andersson 2011-05-10 13
21dccddf45aae2 Jan Andersson 2011-05-10 14 /* Big endian versions of memory read/write routines */
21dccddf45aae2 Jan Andersson 2011-05-10 15 #define readb_be(__addr) __raw_readb(__addr)
21dccddf45aae2 Jan Andersson 2011-05-10 @16 #define readw_be(__addr) __raw_readw(__addr)
21dccddf45aae2 Jan Andersson 2011-05-10 @17 #define readl_be(__addr) __raw_readl(__addr)
21dccddf45aae2 Jan Andersson 2011-05-10 18 #define writeb_be(__b, __addr) __raw_writeb(__b, __addr)
21dccddf45aae2 Jan Andersson 2011-05-10 @19 #define writel_be(__w, __addr) __raw_writel(__w, __addr)
21dccddf45aae2 Jan Andersson 2011-05-10 @20 #define writew_be(__l, __addr) __raw_writew(__l, __addr)
21dccddf45aae2 Jan Andersson 2011-05-10 21
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists