From 89d916cc45328fb3cbdcc945d469ec6c52032856 Mon Sep 17 00:00:00 2001 From: "Adam W. Willis" Date: Sat, 2 Jan 2021 22:47:44 -0500 Subject: [PATCH] HACK: lib: Compile out nmi_backtrace for ARM64 This silences the following compilation warning, presumably emitted by llvm-ar in conjunction with Clang (Thin)LTO: lib/nmi_backtrace.o: no symbols This is a watchdog support library which is no-op on this architecture, hence the empty object file, so let's avoid building it entirely until a more aesthetically pleasing solution presents itself. Signed-off-by: Adam W. Willis Co-authored-by: Panchajanya1999 --- lib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 22f122565d9a..32e2629cb1ba 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -35,8 +35,9 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \ flex_proportions.o ratelimit.o show_mem.o \ is_single_threaded.o plist.o decompress.o kobject_uevent.o \ earlycpio.o seq_buf.o siphash.o dec_and_lock.o \ - nmi_backtrace.o nodemask.o win_minmax.o + nodemask.o win_minmax.o +lib-$(!CONFIG_ARM64) += nmi_backtrace.o lib-$(CONFIG_PRINTK) += dump_stack.o lib-$(CONFIG_MMU) += ioremap.o lib-$(CONFIG_SMP) += cpumask.o