Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df137bc1 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Trond Myklebust
Browse files

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: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 5f01d953 ("nfs41: create NFSv3 DS connection if specified")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 5b833825
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -561,7 +561,7 @@ static bool load_v3_ds_connect(void)
	return(get_v3_ds_connect != NULL);
}

void __exit nfs4_pnfs_v3_ds_connect_unload(void)
void nfs4_pnfs_v3_ds_connect_unload(void)
{
	if (get_v3_ds_connect) {
		symbol_put(nfs3_set_ds_client);