In file included from ./arch/x86/include/asm/percpu.h:615, from ./arch/x86/include/asm/preempt.h:6, from ./include/linux/preempt.h:79, from ./include/linux/alloc_tag.h:11, from lib/alloc_tag.c:2: ./include/linux/alloc_tag.h: In function ‘__alloc_tag_ref_set’: ./include/asm-generic/percpu.h:155:9: error: implicit declaration of function ‘raw_local_irq_save’ [-Werror=implicit-function-declaration] 155 | raw_local_irq_save(__flags); \ | ^~~~~~~~~~~~~~~~~~ ./include/asm-generic/percpu.h:410:41: note: in expansion of macro ‘this_cpu_generic_to_op’ 410 | #define this_cpu_add_8(pcp, val) this_cpu_generic_to_op(pcp, val, +=) | ^~~~~~~~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro ‘this_cpu_add_8’ 368 | case 8: stem##8(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:106:9: note: in expansion of macro ‘this_cpu_inc’ 106 | this_cpu_inc(tag->counters->calls); | ^~~~~~~~~~~~ ./include/asm-generic/percpu.h:157:9: error: implicit declaration of function ‘raw_local_irq_restore’ [-Werror=implicit-function-declaration] 157 | raw_local_irq_restore(__flags); \ | ^~~~~~~~~~~~~~~~~~~~~ ./include/asm-generic/percpu.h:410:41: note: in expansion of macro ‘this_cpu_generic_to_op’ 410 | #define this_cpu_add_8(pcp, val) this_cpu_generic_to_op(pcp, val, +=) | ^~~~~~~~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro ‘this_cpu_add_8’ 368 | case 8: stem##8(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:106:9: note: in expansion of macro ‘this_cpu_inc’ 106 | this_cpu_inc(tag->counters->calls); | ^~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:244: lib/alloc_tag.o] Error 1 make[2]: *** [scripts/Makefile.build:485: lib] Error 2 make[1]: *** [/home/klara/git/linux/Makefile:1919: .] Error 2 make: *** [Makefile:240: __sub-make] Error 2