Re: [PATCH 1/15] NFSv4.1: don't export static symbol

2015-03-12 Thread Trond Myklebust
On Wed, 2015-03-11 at 17:56 +0100, Julia Lawall wrote: > From: Julia Lawall > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @r@ > type T; > identifier f; > @@ > > static T f (...) { ... } > > @@ > identifier r.f; > declarer name EXPORT_SYM

[PATCH 1/15] NFSv4.1: don't export static symbol

2015-03-11 Thread Julia Lawall
From: Julia Lawall The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ type T; identifier f; @@ static T f (...) { ... } @@ identifier r.f; declarer name EXPORT_SYMBOL_GPL; @@ -EXPORT_SYMBOL_GPL(f); // Signed-off-by: Julia Lawall --- fs/nfs/pnfs