modpost reports section mismatch warnings on ELF local symbols. This caused false positive warnings to be reported for a local symbol name that would otherwise be elided by matching against a name pattern. This was observed using a RISC-V gcc 8.2.0 toolchain that generates section anchors.
To avoid this noise in the common case, this patch series disables section mismatch warnings on ELF local symbols. It also drops some unused command line switches from modpost, per feedback from Sam Ravnborg <[email protected]>. This modpost series can also be found at: https://github.com/sifive/riscv-linux/tree/dev/paulw/modpost-elf-local-symbols-v4.20-rc2 The series was tested on a RISC-V build of the SiFive UART serial driver, at: https://github.com/sifive/riscv-linux/tree/dev/paulw/serial-v4.19-rc7 Paul Walmsley (2): modpost: drop unused command line switches modpost: skip ELF local symbols by default during section mismatch check scripts/mod/modpost.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) Cc: Russell King <[email protected]> Cc: Jim Wilson <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Michal Marek <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: [email protected] Cc: [email protected] -- 2.19.1

