]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: do not export discarded symbols
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Mar 2015 13:37:25 +0000 (14:37 +0100)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 12 Mar 2015 15:53:24 +0000 (11:53 -0400)
commit2c2a0a4765d21229c5d6353363218085b66d8390
tree2648acfa3f29aef062400a0d8137ae0893ba9fa4
parent508efa258a4a03f5ea8c5bc73949a66e64d1b706
nfs: do not export discarded symbols

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: Arnd Bergmann <arnd@arndb.de>
Fixes: 8142f71276f5 ("nfs41: create NFSv3 DS connection if specified")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs_nfs.c