linux/arch
Nathan Chancellor 681ba73c72 hexagon: use common DISCARDS macro
ld.lld warns that the '.modinfo' section is not currently handled:

ld.lld: warning: kernel/built-in.a(workqueue.o):(.modinfo) is being placed in '.modinfo'
ld.lld: warning: kernel/built-in.a(printk/printk.o):(.modinfo) is being placed in '.modinfo'
ld.lld: warning: kernel/built-in.a(irq/spurious.o):(.modinfo) is being placed in '.modinfo'
ld.lld: warning: kernel/built-in.a(rcu/update.o):(.modinfo) is being placed in '.modinfo'

The '.modinfo' section was added in commit 898490c010 ("moduleparam:
Save information about built-in modules in separate file") to the DISCARDS
macro but Hexagon has never used that macro.  The unification of DISCARDS
happened in commit 023bf6f1b8 ("linker script: unify usage of discard
definition") in 2009, prior to Hexagon being added in 2011.

Switch Hexagon over to the DISCARDS macro so that anything that is
expected to be discarded gets discarded.

Link: https://lkml.kernel.org/r/20210521011239.1332345-3-nathan@kernel.org
Fixes: e95bf452a9 ("Hexagon: Add configuration and makefiles for the Hexagon architecture.")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Brian Cain <bcain@codeaurora.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Oliver Glitta <glittao@gmail.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-07-08 11:48:20 -07:00
..
alpha TTY / Serial patches for 5.14-rc1 2021-07-05 14:08:24 -07:00
arc Merge branch 'akpm' (patches from Andrew) 2021-07-02 12:08:10 -07:00
arm ARM development updates for 5.14-rc1: 2021-07-06 11:52:58 -07:00
arm64 ARM development updates for 5.14-rc1: 2021-07-06 11:52:58 -07:00
csky arch/csky patches for 5.14-rc1 2021-07-04 12:07:54 -07:00
h8300 Merge branch 'akpm' (patches from Andrew) 2021-06-29 17:29:11 -07:00
hexagon hexagon: use common DISCARDS macro 2021-07-08 11:48:20 -07:00
ia64 asm-generic/unaligned: Unify asm/unaligned.h around struct helper 2021-07-02 12:43:40 -07:00
m68k TTY / Serial patches for 5.14-rc1 2021-07-05 14:08:24 -07:00
microblaze asm-generic/unaligned: Unify asm/unaligned.h around struct helper 2021-07-02 12:43:40 -07:00
mips TTY / Serial patches for 5.14-rc1 2021-07-05 14:08:24 -07:00
nds32 Merge branch 'akpm' (patches from Andrew) 2021-07-02 12:08:10 -07:00
nios2 Merge branch 'akpm' (patches from Andrew) 2021-07-02 12:08:10 -07:00
openrisc asm-generic/unaligned: Unify asm/unaligned.h around struct helper 2021-07-02 12:43:40 -07:00
parisc TTY / Serial patches for 5.14-rc1 2021-07-05 14:08:24 -07:00
powerpc TTY / Serial patches for 5.14-rc1 2021-07-05 14:08:24 -07:00
riscv Merge branch 'akpm' (patches from Andrew) 2021-07-02 12:08:10 -07:00
s390 s390 updates for the 5.14 merge window 2021-07-04 12:17:38 -07:00
sh asm-generic/unaligned: Unify asm/unaligned.h around struct helper 2021-07-02 12:43:40 -07:00
sparc Char / Misc driver updates for 5.14-rc1 2021-07-05 13:42:16 -07:00
um TTY / Serial patches for 5.14-rc1 2021-07-05 14:08:24 -07:00
x86 Fixes and improvements for FPU handling on x86: 2021-07-07 11:12:01 -07:00
xtensa TTY / Serial patches for 5.14-rc1 2021-07-05 14:08:24 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Kconfig: Introduce ARCH_WANTS_NO_INSTR and CC_HAS_NO_PROFILE_FN_ATTR 2021-06-22 11:07:18 -07:00