From: Trond Myklebust <trond.myklebust@primarydata.com>
To: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: kernel-janitors@vger.kernel.org,
Anna Schumaker <anna.schumaker@netapp.com>,
linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
daniel@iogearbox.net
Subject: Re: [PATCH 1/15] NFSv4.1: don't export static symbol
Date: Thu, 12 Mar 2015 11:59:30 -0400 [thread overview]
Message-ID: <1426175970.15787.4.camel@primarydata.com> (raw)
In-Reply-To: <1426092997-30605-2-git-send-email-Julia.Lawall@lip6.fr>
On Wed, 2015-03-11 at 17:56 +0100, Julia Lawall wrote:
> From: Julia Lawall <Julia.Lawall@lip6.fr>
>
> 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>
>
> ---
> fs/nfs/pnfs.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff -u -p a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
> --- a/fs/nfs/pnfs.c
> +++ b/fs/nfs/pnfs.c
> @@ -1902,7 +1902,6 @@ static void pnfs_writehdr_free(struct nf
> pnfs_put_lseg(hdr->lseg);
> nfs_pgio_header_free(hdr);
> }
> -EXPORT_SYMBOL_GPL(pnfs_writehdr_free);
>
> int
> pnfs_generic_pg_writepages(struct nfs_pageio_descriptor *desc)
> @@ -2032,7 +2031,6 @@ static void pnfs_readhdr_free(struct nfs
> pnfs_put_lseg(hdr->lseg);
> nfs_pgio_header_free(hdr);
> }
> -EXPORT_SYMBOL_GPL(pnfs_readhdr_free);
>
> int
> pnfs_generic_pg_readpages(struct nfs_pageio_descriptor *desc)
>
Thanks Julia! Applied....
--
Trond Myklebust
Linux NFS client maintainer, PrimaryData
trond.myklebust@primarydata.com
prev parent reply other threads:[~2015-03-12 15:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-11 16:56 [PATCH 0/15] don't export static symbol Julia Lawall
2015-03-11 16:56 ` [PATCH 1/15] NFSv4.1: " Julia Lawall
2015-03-12 15:59 ` Trond Myklebust [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426175970.15787.4.camel@primarydata.com \
--to=trond.myklebust@primarydata.com \
--cc=Julia.Lawall@lip6.fr \
--cc=anna.schumaker@netapp.com \
--cc=daniel@iogearbox.net \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).