• A
    nfs: do not export discarded symbols · df137bc1
    Arnd Bergmann 提交于
    The function nfs4_pnfs_v3_ds_connect_unload is exported so it can be
    used by other modules, but is also marked '__exit' and will be
    discarded when built into the kernel, as pointed out by this
    linker error:
    
    `nfs4_pnfs_v3_ds_connect_unload' referenced in section `___ksymtab_gpl+nfs4_pnfs_v3_ds_connect_unload' of fs/built-in.o: defined in discarded section `.exit.text' of fs/built-in.o
    
    This removes the __exit annotation to make it safe to call this function.
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    Fixes: 5f01d953 ("nfs41: create NFSv3 DS connection if specified")
    Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
    df137bc1
pnfs_nfs.c 20.9 KB