[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202512210052.w0bpUAAO-lkp@intel.com>
Date: Sun, 21 Dec 2025 00:31:08 +0800
From: kernel test robot <lkp@...el.com>
To: Yunhui Cui <cuiyunhui@...edance.com>, aou@...s.berkeley.edu,
alex@...ti.fr, andii@...nel.org, andybnac@...il.com,
apatel@...tanamicro.com, ast@...nel.org, ben.dooks@...ethink.co.uk,
bjorn@...nel.org, bpf@...r.kernel.org, charlie@...osinc.com,
cl@...two.org, conor.dooley@...rochip.com, cyrilbur@...storrent.com,
daniel@...earbox.net, debug@...osinc.com, dennis@...nel.org,
eddyz87@...il.com, haoluo@...gle.com, john.fastabend@...il.com,
jolsa@...nel.org, kpsingh@...nel.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, linux-riscv@...ts.infradead.org,
linux@...musvillemoes.dk, martin.lau@...ux.dev, palmer@...belt.com,
pjw@...nel.org, puranjay@...nel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev
Subject: Re: [PATCH v3 2/3] riscv: introduce percpu.h into include/asm
Hi Yunhui,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.19-rc1 next-20251219]
[cannot apply to bpf-next/net bpf-next/master bpf/master]
[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/Yunhui-Cui/riscv-remove-irqflags-h-inclusion-in-asm-bitops-h/20251216-094956
base: linus/master
patch link: https://lore.kernel.org/r/20251216014721.42262-3-cuiyunhui%40bytedance.com
patch subject: [PATCH v3 2/3] riscv: introduce percpu.h into include/asm
config: riscv-randconfig-002-20251217 (https://download.01.org/0day-ci/archive/20251221/202512210052.w0bpUAAO-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251221/202512210052.w0bpUAAO-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/202512210052.w0bpUAAO-lkp@intel.com/
All errors (new ones prefixed by >>):
109 | #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/core/page_pool.c:14:
In file included from include/net/netdev_lock.h:7:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:854:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
854 | insl(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:110:53: note: expanded from macro 'insl'
110 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/core/page_pool.c:14:
In file included from include/net/netdev_lock.h:7:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:863:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
863 | outsb(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:122:55: note: expanded from macro 'outsb'
122 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/core/page_pool.c:14:
In file included from include/net/netdev_lock.h:7:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:872:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
872 | outsw(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:123:55: note: expanded from macro 'outsw'
123 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/core/page_pool.c:14:
In file included from include/net/netdev_lock.h:7:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:881:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
881 | outsl(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:124:55: note: expanded from macro 'outsl'
124 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/core/page_pool.c:14:
In file included from include/net/netdev_lock.h:7:
In file included from include/linux/netdevice.h:38:
In file included from include/net/net_namespace.h:43:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1209 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, s4, 0(a1)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a2, 0(a1)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a2, 0(a1)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, s9, 0(a1)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, s9, 0(a0)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, s7, 0(a1)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a2, 0(a1)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a2, 0(a1)
| ^
In file included from net/core/page_pool.c:11:
In file included from include/linux/slab.h:16:
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:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a2, 0(a1)
| ^
7 warnings and 9 errors generated.
--
include/asm-generic/io.h:854:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
854 | insl(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:110:53: note: expanded from macro 'insl'
110 | #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:863:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
863 | outsb(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:122:55: note: expanded from macro 'outsb'
122 | #define outsb(addr, buffer, count) __outsb(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:872:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
872 | outsw(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:123:55: note: expanded from macro 'outsw'
123 | #define outsw(addr, buffer, count) __outsw(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:881:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
881 | outsl(addr, buffer, count);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:124:55: note: expanded from macro 'outsl'
124 | #define outsl(addr, buffer, count) __outsl(PCI_IOBASE + (addr), buffer, count)
| ~~~~~~~~~~ ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:12:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
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:12:
In file included from arch/riscv/include/asm/io.h:140:
include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1209 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:5:
In file included from include/linux/fs/super.h:5:
In file included from include/linux/fs/super_types.h:7:
In file included from include/linux/list_lru.h:13:
In file included from include/linux/shrinker.h:8:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a2, 0(a1)
| ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:5:
In file included from include/linux/fs/super.h:5:
In file included from include/linux/fs/super_types.h:7:
In file included from include/linux/list_lru.h:13:
In file included from include/linux/shrinker.h:8:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, s6, 0(a1)
| ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:5:
In file included from include/linux/fs/super.h:5:
In file included from include/linux/fs/super_types.h:7:
In file included from include/linux/list_lru.h:13:
In file included from include/linux/shrinker.h:8:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a2, 0(a1)
| ^
In file included from net/batman-adv/routing.c:7:
In file included from net/batman-adv/routing.h:10:
In file included from net/batman-adv/main.h:207:
In file included from include/linux/etherdevice.h:20:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:5:
In file included from include/linux/fs.h:5:
In file included from include/linux/fs/super.h:5:
In file included from include/linux/fs/super_types.h:7:
In file included from include/linux/list_lru.h:13:
In file included from include/linux/shrinker.h:8:
In file included from include/linux/completion.h:12:
In file included from include/linux/swait.h:7:
In file included from include/linux/spinlock.h:59:
In file included from include/linux/irqflags.h:19:
>> arch/riscv/include/asm/percpu.h:43:1: error: instruction requires the following: RV64I Base Instruction Set
43 | PERCPU_OP(add, add)
| ^
arch/riscv/include/asm/percpu.h:41:2: note: expanded from macro 'PERCPU_OP'
41 | __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
| ^
arch/riscv/include/asm/percpu.h:33:3: note: expanded from macro '__PERCPU_AMO_OP_CASE'
33 | "amo" #amo_insn #sfx " zero, %[val], %[ptr]" \
| ^
<inline asm>:1:2: note: instantiated into assembly here
1 | amoadd.d zero, a1, 0(a2)
| ^
7 warnings and 4 errors generated.
..
vim +43 arch/riscv/include/asm/percpu.h
38
39 #define PERCPU_OP(name, amo_insn) \
40 __PERCPU_AMO_OP_CASE(.w, name, 32, amo_insn) \
41 __PERCPU_AMO_OP_CASE(.d, name, 64, amo_insn)
42
> 43 PERCPU_OP(add, add)
44 PERCPU_OP(andnot, and)
45 PERCPU_OP(or, or)
46
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists