From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: Re: [PATCH v2 1/2] asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch
Date: Thu, 22 Jun 2023 03:53:26 +0800 [thread overview]
Message-ID: <202306220331.pXSsB98a-lkp@intel.com> (raw)
::::::
:::::: Manual check reason: "um arch report"
::::::
BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <1687336748-4898-2-git-send-email-yangtiezhu@loongson.cn>
References: <1687336748-4898-2-git-send-email-yangtiezhu@loongson.cn>
TO: Tiezhu Yang <yangtiezhu@loongson.cn>
TO: Arnd Bergmann <arnd@arndb.de>
CC: linux-arm-kernel@lists.infradead.org
CC: linux-riscv@lists.infradead.org
CC: loongarch@lists.linux.dev
CC: linux-arch@vger.kernel.org
CC: bpf@vger.kernel.org
CC: linux-perf-users@vger.kernel.org
CC: linux-kselftest@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: loongson-kernel@lists.loongnix.cn
Hi Tiezhu,
kernel test robot noticed the following build warnings:
[auto build test WARNING on arnd-asm-generic/master]
[also build test WARNING on soc/for-next arm64/for-next/core linus/master v6.4-rc7 next-20230621]
[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/Tiezhu-Yang/asm-generic-Unify-uapi-bitsperlong-h-for-arm64-riscv-and-loongarch/20230621-172223
base: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
patch link: https://lore.kernel.org/r/1687336748-4898-2-git-send-email-yangtiezhu%40loongson.cn
patch subject: [PATCH v2 1/2] asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch
:::::: branch date: 10 hours ago
:::::: commit date: 10 hours ago
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20230622/202306220331.pXSsB98a-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230622/202306220331.pXSsB98a-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/r/202306220331.pXSsB98a-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from scripts/mod/devicetable-offsets.c:3:
In file included from include/linux/mod_devicetable.h:12:
In file included from include/uapi/linux/mei.h:10:
In file included from include/uapi/linux/mei_uuid.h:12:
In file included from include/linux/types.h:6:
In file included from include/uapi/linux/types.h:5:
In file included from ./arch/x86/include/generated/uapi/asm/types.h:1:
In file included from include/uapi/asm-generic/types.h:7:
In file included from include/asm-generic/int-ll64.h:11:
In file included from include/uapi/asm-generic/int-ll64.h:12:
In file included from arch/x86/include/uapi/asm/bitsperlong.h:11:
In file included from include/asm-generic/bitsperlong.h:5:
>> include/uapi/asm-generic/bitsperlong.h:13:9: warning: '__BITS_PER_LONG' macro redefined [-Wmacro-redefined]
13 | #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
| ^
arch/x86/include/uapi/asm/bitsperlong.h:6:10: note: previous definition is here
6 | # define __BITS_PER_LONG 64
| ^
1 warning generated.
--
In file included from arch/um/kernel/asm-offsets.c:1:
In file included from arch/x86/um/shared/sysdep/kernel-offsets.h:3:
In file included from include/linux/sched.h:10:
In file included from include/uapi/linux/sched.h:5:
In file included from include/linux/types.h:6:
In file included from include/uapi/linux/types.h:5:
In file included from ./arch/x86/include/generated/uapi/asm/types.h:1:
In file included from include/uapi/asm-generic/types.h:7:
In file included from include/asm-generic/int-ll64.h:11:
In file included from include/uapi/asm-generic/int-ll64.h:12:
In file included from arch/x86/include/uapi/asm/bitsperlong.h:11:
In file included from include/asm-generic/bitsperlong.h:5:
>> include/uapi/asm-generic/bitsperlong.h:13:9: warning: '__BITS_PER_LONG' macro redefined [-Wmacro-redefined]
13 | #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
| ^
arch/x86/include/uapi/asm/bitsperlong.h:6:10: note: previous definition is here
6 | # define __BITS_PER_LONG 64
| ^
In file included from arch/um/kernel/asm-offsets.c:1:
arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for function 'foo' [-Wmissing-prototypes]
9 | void foo(void)
| ^
arch/x86/um/shared/sysdep/kernel-offsets.h:9:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
9 | void foo(void)
| ^
| static
2 warnings generated.
--
In file included from kernel/fork.c:16:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:8:
In file included from include/linux/spinlock.h:56:
In file included from include/linux/preempt.h:10:
In file included from include/linux/linkage.h:8:
In file included from arch/x86/include/asm/linkage.h:6:
In file included from arch/x86/include/asm/ibt.h:5:
In file included from include/linux/types.h:6:
In file included from include/uapi/linux/types.h:5:
In file included from ./arch/x86/include/generated/uapi/asm/types.h:1:
In file included from include/uapi/asm-generic/types.h:7:
In file included from include/asm-generic/int-ll64.h:11:
In file included from include/uapi/asm-generic/int-ll64.h:12:
In file included from arch/x86/include/uapi/asm/bitsperlong.h:11:
In file included from include/asm-generic/bitsperlong.h:5:
>> include/uapi/asm-generic/bitsperlong.h:13:9: warning: '__BITS_PER_LONG' macro redefined [-Wmacro-redefined]
13 | #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
| ^
arch/x86/include/uapi/asm/bitsperlong.h:6:10: note: previous definition is here
6 | # define __BITS_PER_LONG 64
| ^
In file included from kernel/fork.c:34:
In file included from include/linux/mempolicy.h:15:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
547 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from kernel/fork.c:34:
In file included from include/linux/mempolicy.h:15:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from kernel/fork.c:34:
In file included from include/linux/mempolicy.h:15:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
584 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
692 | readsb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
700 | readsw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
708 | readsl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
717 | writesb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
726 | writesw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
735 | writesl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
kernel/fork.c:164:13: warning: no previous prototype for function 'arch_release_task_struct' [-Wmissing-prototypes]
164 | void __weak arch_release_task_struct(struct task_struct *tsk)
| ^
kernel/fork.c:164:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
164 | void __weak arch_release_task_struct(struct task_struct *tsk)
| ^
| static
kernel/fork.c:991:20: warning: no previous prototype for function 'arch_task_cache_init' [-Wmissing-prototypes]
991 | void __init __weak arch_task_cache_init(void) { }
| ^
kernel/fork.c:991:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
991 | void __init __weak arch_task_cache_init(void) { }
| ^
| static
kernel/fork.c:1086:12: warning: no previous prototype for function 'arch_dup_task_struct' [-Wmissing-prototypes]
1086 | int __weak arch_dup_task_struct(struct task_struct *dst,
| ^
kernel/fork.c:1086:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1086 | int __weak arch_dup_task_struct(struct task_struct *dst,
| ^
| static
16 warnings generated.
--
In file included from kernel/exec_domain.c:11:
In file included from include/linux/init.h:5:
In file included from include/linux/build_bug.h:5:
In file included from include/linux/compiler.h:246:
In file included from ./arch/x86/include/generated/asm/rwonce.h:1:
In file included from include/asm-generic/rwonce.h:26:
In file included from include/linux/kasan-checks.h:5:
In file included from include/linux/types.h:6:
In file included from include/uapi/linux/types.h:5:
In file included from ./arch/x86/include/generated/uapi/asm/types.h:1:
In file included from include/uapi/asm-generic/types.h:7:
In file included from include/asm-generic/int-ll64.h:11:
In file included from include/uapi/asm-generic/int-ll64.h:12:
In file included from arch/x86/include/uapi/asm/bitsperlong.h:11:
In file included from include/asm-generic/bitsperlong.h:5:
>> include/uapi/asm-generic/bitsperlong.h:13:9: warning: '__BITS_PER_LONG' macro redefined [-Wmacro-redefined]
13 | #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
| ^
arch/x86/include/uapi/asm/bitsperlong.h:6:10: note: previous definition is here
6 | # define __BITS_PER_LONG 64
| ^
In file included from kernel/exec_domain.c:19:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:9:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
547 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from kernel/exec_domain.c:19:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:9:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from kernel/exec_domain.c:19:
In file included from include/linux/syscalls.h:88:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:9:
In file included from include/linux/hardirq.h:11:
In file included from arch/um/include/asm/hardirq.h:5:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
584 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
692 | readsb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
700 | readsw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
708 | readsl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
717 | writesb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
726 | writesw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
735 | writesl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
13 warnings generated.
--
In file included from kernel/cpu.c:6:
In file included from include/linux/sched/mm.h:5:
In file included from include/linux/kernel.h:16:
In file included from include/linux/limits.h:6:
In file included from include/linux/types.h:6:
In file included from include/uapi/linux/types.h:5:
In file included from ./arch/x86/include/generated/uapi/asm/types.h:1:
In file included from include/uapi/asm-generic/types.h:7:
In file included from include/asm-generic/int-ll64.h:11:
In file included from include/uapi/asm-generic/int-ll64.h:12:
In file included from arch/x86/include/uapi/asm/bitsperlong.h:11:
In file included from include/asm-generic/bitsperlong.h:5:
>> include/uapi/asm-generic/bitsperlong.h:13:9: warning: '__BITS_PER_LONG' macro redefined [-Wmacro-redefined]
13 | #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
| ^
arch/x86/include/uapi/asm/bitsperlong.h:6:10: note: previous definition is here
6 | # define __BITS_PER_LONG 64
| ^
In file included from kernel/cpu.c:13:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:22:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
547 | val = __raw_readb(PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
In file included from kernel/cpu.c:13:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:22:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
| ~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
| ^
In file included from kernel/cpu.c:13:
In file included from include/linux/sched/isolation.h:6:
In file included from include/linux/tick.h:8:
In file included from include/linux/clockchips.h:14:
In file included from include/linux/clocksource.h:22:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
584 | __raw_writeb(value, PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
692 | readsb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
700 | readsw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
708 | readsl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
717 | writesb(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
726 | writesw(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
735 | writesl(PCI_IOBASE + addr, buffer, count);
| ~~~~~~~~~~ ^
kernel/cpu.c:110:20: warning: unused function 'cpuhp_lock_acquire' [-Wunused-function]
110 | static inline void cpuhp_lock_acquire(bool bringup) { }
| ^
kernel/cpu.c:111:20: warning: unused function 'cpuhp_lock_release' [-Wunused-function]
111 | static inline void cpuhp_lock_release(bool bringup) { }
| ^
15 warnings generated.
..
vim +/__BITS_PER_LONG +13 include/uapi/asm-generic/bitsperlong.h
8a1ab3155c2ac7 David Howells 2012-10-04 4
cc0fac0eed820e Tiezhu Yang 2023-06-21 5 /*
cc0fac0eed820e Tiezhu Yang 2023-06-21 6 * In order to keep safe and avoid regression, only unify uapi
cc0fac0eed820e Tiezhu Yang 2023-06-21 7 * bitsperlong.h for some archs which are using newer toolchains
cc0fac0eed820e Tiezhu Yang 2023-06-21 8 * that have the definitions of __CHAR_BIT__ and __SIZEOF_LONG__.
cc0fac0eed820e Tiezhu Yang 2023-06-21 9 * See the following link for more info:
cc0fac0eed820e Tiezhu Yang 2023-06-21 10 * https://lore.kernel.org/linux-arch/b9624545-2c80-49a1-ac3c-39264a591f7b@app.fastmail.com/
cc0fac0eed820e Tiezhu Yang 2023-06-21 11 */
cc0fac0eed820e Tiezhu Yang 2023-06-21 12 #if defined(__CHAR_BIT__) && defined(__SIZEOF_LONG__)
cc0fac0eed820e Tiezhu Yang 2023-06-21 @13 #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
cc0fac0eed820e Tiezhu Yang 2023-06-21 14 #else
8a1ab3155c2ac7 David Howells 2012-10-04 15 /*
8a1ab3155c2ac7 David Howells 2012-10-04 16 * There seems to be no way of detecting this automatically from user
8a1ab3155c2ac7 David Howells 2012-10-04 17 * space, so 64 bit architectures should override this in their
8a1ab3155c2ac7 David Howells 2012-10-04 18 * bitsperlong.h. In particular, an architecture that supports
8a1ab3155c2ac7 David Howells 2012-10-04 19 * both 32 and 64 bit user space must not rely on CONFIG_64BIT
8a1ab3155c2ac7 David Howells 2012-10-04 20 * to decide it, but rather check a compiler provided macro.
8a1ab3155c2ac7 David Howells 2012-10-04 21 */
8a1ab3155c2ac7 David Howells 2012-10-04 22 #ifndef __BITS_PER_LONG
8a1ab3155c2ac7 David Howells 2012-10-04 23 #define __BITS_PER_LONG 32
8a1ab3155c2ac7 David Howells 2012-10-04 24 #endif
cc0fac0eed820e Tiezhu Yang 2023-06-21 25 #endif
8a1ab3155c2ac7 David Howells 2012-10-04 26
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-06-21 19:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-21 19:53 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-21 8:39 [PATCH v2 0/2] Unify uapi bitsperlong.h Tiezhu Yang
2023-06-21 8:39 ` [PATCH v2 1/2] asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch Tiezhu Yang
2023-06-21 8:39 ` Tiezhu Yang
2023-06-21 8:39 ` Tiezhu Yang
2023-06-21 20:04 ` kernel test robot
2023-06-21 20:04 ` kernel test robot
2023-06-21 20:04 ` kernel test robot
2023-06-22 12:50 ` Tiezhu Yang
2023-06-22 12:50 ` Tiezhu Yang
2023-06-22 12:50 ` Tiezhu Yang
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=202306220331.pXSsB98a-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@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.