Hi, Miguel, On Sat, Mar 8, 2025 at 5:50 AM Miguel Ojeda <ojeda@xxxxxxxxxx> wrote: > > On Fri, 07 Mar 2025 18:52:44 +0100 Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > > > > I'm announcing the release of the 6.12.18 kernel. > > > > All users of the 6.12 kernel series must upgrade. > > While testing another backport, I found an unrelated build failure for > loongarch in v6.12.18 that I did not see in v6.12.17 -- I cannot find it > reported from a quick look, so I am doing so here: > > CC arch/loongarch/kernel/asm-offsets.s - due to target missing > In file included from arch/loongarch/kernel/asm-offsets.c:8: > In file included from ./include/linux/sched.h:12: > In file included from ./arch/loongarch/include/generated/asm/current.h:1: > In file included from ./include/asm-generic/current.h:6: > ./include/linux/thread_info.h:249:6: error: call to undeclared function 'annotate_reachable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > 249 | if (WARN_ON_ONCE(bytes > INT_MAX)) > | ^ > ./include/asm-generic/bug.h:113:3: note: expanded from macro 'WARN_ON_ONCE' > 113 | __WARN_FLAGS(BUGFLAG_ONCE | \ > | ^ > ./arch/loongarch/include/asm/bug.h:47:2: note: expanded from macro '__WARN_FLAGS' > 47 | annotate_reachable(); \ > | ^ > > As well as warnings: > > In file included from arch/loongarch/kernel/asm-offsets.c:9: > In file included from ./include/linux/mm.h:1120: > In file included from ./include/linux/huge_mm.h:8: > In file included from ./include/linux/fs.h:33: > In file included from ./include/linux/percpu-rwsem.h:7: > In file included from ./include/linux/rcuwait.h:6: > In file included from ./include/linux/sched/signal.h:6: > ./include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] > 114 | return (set1->sig[3] == set2->sig[3]) && > | ^ ~ > ./include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here > 62 | unsigned long sig[_NSIG_WORDS]; > | ^ > > I hope that helps. This is caused by the backport commit 06e24745985c8dd0da183 ("objtool: Remove annotate_{,un}reachable()"), but missing the commit 624bde3465f660e54a7cd4c1 ("loongarch: Use ASM_REACHABLE"), I will fix it later. In addition, it is better to also backport [1], since similar patches for x86 have been backported, otherwise there will be build warnings. [1] https://lore.kernel.org/loongarch/20250211115016.26913-8-yangtiezhu@xxxxxxxxxxx/T/#u Huacai > > Cheers, > Miguel