Star64_linux/scripts/mod
Masahiro Yamada b842271108 modpost: make multiple export error
This is currently a warning, but I think modpost should stop building
in this case.

If the same symbol is exported multiple times and we let it keep going,
the sanity check becomes difficult.

Only the legitimate case is that an external module overrides the
corresponding in-tree module to provide a different implementation
with the same interface.

Also, there exists an upstream example that exploits this feature.

  $ make M=tools/testing/nvdimm

... builds tools/testing/nvdimm/libnvdimm.ko. This is a mocked module
that overrides the symbols from drivers/nvdimm/libnvdimm.ko.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
2022-05-08 03:17:01 +09:00
..
.gitignore
devicetable-offsets.c
empty.c
file2alias.c
list.h modpost: import include/linux/list.h 2022-05-08 03:17:00 +09:00
Makefile
mk_elfconfig.c
modpost.c modpost: make multiple export error 2022-05-08 03:17:01 +09:00
modpost.h modpost: dump Module.symvers in the same order of modules.order 2022-05-08 03:17:01 +09:00
sumversion.c modpost: use bool type where appropriate 2022-05-08 03:17:00 +09:00