• M
    modpost: make multiple export error · b8422711
    Masahiro Yamada 提交于
    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: NMasahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
    b8422711
modpost.c 67.2 KB