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 <return.of.octobot@gmail.com>
Co-authored-by: Panchajanya1999 <panchajanya@azure-dev.live>
Signed-off-by: Forenche <prahul2003@gmail.com>
This commit is contained in:
Adam W. Willis 2021-01-02 22:47:44 -05:00 committed by Forenche
parent da3856f7f5
commit cea045cfcb
No known key found for this signature in database
GPG Key ID: 1337D655BAFE85E2

View File

@ -35,9 +35,11 @@ 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 \
nmi_backtrace.o nodemask.o win_minmax.o
nodemask.o win_minmax.o
CFLAGS_kobject_uevent.o += -Wframe-larger-than=3072
lib-$(!CONFIG_ARM64) += nmi_backtrace.o
lib-$(CONFIG_MMU) += ioremap.o
lib-$(CONFIG_SMP) += cpumask.o
lib-$(CONFIG_DMA_NOOP_OPS) += dma-noop.o