android_kernel_xiaomi_sm7250/arch/hexagon/kernel
Nathan Chancellor 86c9c442c0 hexagon: use common DISCARDS macro
[ Upstream commit 681ba73c72302214686401e707e2087ed11a6556 ]

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 898490c010b5 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:16:13 +02:00
..
asm-offsets.c mm: memcontrol: per-lruvec stats infrastructure 2017-07-06 16:24:35 -07:00
dma.c arch/hexagon: fix kernel/dma.c build warning 2018-09-10 19:42:01 -05:00
head.S
hexagon_ksyms.c hexagon: clean up ioremap 2020-05-10 10:30:11 +02:00
irq_cpu.c
kgdb.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
module.c
process.c arch: remove unused macro/function thread_saved_pc() 2017-06-28 16:13:57 -07:00
ptrace.c hexagon: get rid of #include <generated/compile.h> 2017-10-09 23:28:45 +09:00
reset.c
screen_info.c
setup.c hexagon: fix printk format warning in setup.c 2018-06-15 07:55:25 +09:00
signal.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/task_stack.h> 2017-03-02 08:42:36 +01:00
smp.c sched/headers: Move task->mm handling methods to <linux/sched/mm.h> 2017-03-03 01:43:28 +01:00
stacktrace.c hexagon: work around compiler crash 2020-01-17 19:47:17 +01:00
syscalltab.c
time.c hexagon/time: Set ->min_delta_ticks and ->max_delta_ticks 2017-04-14 13:11:12 -07:00
trampoline.S
traps.c signal/hexagon: Use force_sig_fault as appropriate 2018-04-25 10:41:00 -05:00
vdso.c
vm_entry.S hexagon: parenthesize registers in asm predicates 2020-01-17 19:47:17 +01:00
vm_events.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/debug.h> 2017-03-02 08:42:34 +01:00
vm_init_segtable.S
vm_ops.S
vm_switch.S
vm_vectors.S
vmlinux.lds.S hexagon: use common DISCARDS macro 2021-07-20 16:16:13 +02:00