In file included from ././include/linux/compiler_types.h:151, from : ./include/linux/alloc_tag.h: In function ‘__alloc_tag_ref_set’: ./include/asm-generic/percpu.h:31:40: error: implicit declaration of function ‘raw_smp_processor_id’ [-Wimplicit-function-declaration] 31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | ^~~~~~~~~~~~~~~~~~~~ ./include/linux/compiler-gcc.h:35:33: note: in definition of macro ‘RELOC_HIDE’ 35 | (typeof(ptr)) (__ptr + (off)); \ | ^~~ ./include/asm-generic/percpu.h:44:31: note: in expansion of macro ‘SHIFT_PERCPU_PTR’ 44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset) | ^~~~~~~~~~~~~~~~ ./include/asm-generic/percpu.h:31:25: note: in expansion of macro ‘per_cpu_offset’ 31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | ^~~~~~~~~~~~~~ ./include/asm-generic/percpu.h:44:53: note: in expansion of macro ‘__my_cpu_offset’ 44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset) | ^~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:242:9: note: in expansion of macro ‘arch_raw_cpu_ptr’ 242 | arch_raw_cpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~ ./include/asm-generic/percpu.h:72:10: note: in expansion of macro ‘raw_cpu_ptr’ 72 | *raw_cpu_ptr(&(pcp)) op val; \ | ^~~~~~~~~~~ ./include/asm-generic/percpu.h:156:9: note: in expansion of macro ‘raw_cpu_generic_to_op’ 156 | raw_cpu_generic_to_op(pcp, val, op); \ | ^~~~~~~~~~~~~~~~~~~~~ ./include/asm-generic/percpu.h:401:41: note: in expansion of macro ‘this_cpu_generic_to_op’ 401 | #define this_cpu_add_1(pcp, val) this_cpu_generic_to_op(pcp, val, +=) | ^~~~~~~~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro ‘this_cpu_add_1’ 365 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro ‘__pcpu_size_call’ 491 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:501:41: note: in expansion of macro ‘this_cpu_add’ 501 | #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/alloc_tag.h:146:9: note: in expansion of macro ‘this_cpu_inc’ 146 | this_cpu_inc(tag->counters->calls); | ^~~~~~~~~~~~ make[4]: *** [scripts/Makefile.build:244: arch/riscv/kernel/irq.o] Error 1 make[3]: *** [scripts/Makefile.build:485: arch/riscv/kernel] Error 2 make[2]: *** [scripts/Makefile.build:485: arch/riscv] Error 2 make[1]: *** [/home/klara/git/linux/Makefile:1919: .] Error 2 make: *** [Makefile:240: __sub-make] Error 2