]> git.karo-electronics.de Git - linux-beck.git/commit
NFSv4.1: don't export static symbol
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 11 Mar 2015 16:56:23 +0000 (17:56 +0100)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 12 Mar 2015 15:53:11 +0000 (11:53 -0400)
commit5b833825fd0012aec00f8fa5769d5400c18d59d8
treebe0970347656d41075f3a6ba6a6b2d44bfe94583
parent9eccca0843205f87c00404b663188b88eb248051
NFSv4.1: don't export static symbol

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
type T;
identifier f;
@@

static T f (...) { ... }

@@
identifier r.f;
declarer name EXPORT_SYMBOL_GPL;
@@

-EXPORT_SYMBOL_GPL(f);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c