* [PATCH -next] nfsd: make symbol nfsd_reply_cache_shrinker static
@ 2013-04-05 13:22 Wei Yongjun
2013-04-30 22:20 ` J. Bruce Fields
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-04-05 13:22 UTC (permalink / raw)
To: bfields; +Cc: yongjun_wei, linux-nfs
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
symbol 'nfsd_reply_cache_shrinker' only used within this file. It should
be static.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
fs/nfsd/nfscache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c
index f8bb605..890a507 100644
--- a/fs/nfsd/nfscache.c
+++ b/fs/nfsd/nfscache.c
@@ -56,7 +56,7 @@ static void cache_cleaner_func(struct work_struct *unused);
static int nfsd_reply_cache_shrink(struct shrinker *shrink,
struct shrink_control *sc);
-struct shrinker nfsd_reply_cache_shrinker = {
+static struct shrinker nfsd_reply_cache_shrinker = {
.shrink = nfsd_reply_cache_shrink,
.seeks = 1,
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] nfsd: make symbol nfsd_reply_cache_shrinker static
2013-04-05 13:22 [PATCH -next] nfsd: make symbol nfsd_reply_cache_shrinker static Wei Yongjun
@ 2013-04-30 22:20 ` J. Bruce Fields
0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2013-04-30 22:20 UTC (permalink / raw)
To: Wei Yongjun; +Cc: yongjun_wei, linux-nfs
Applying, thanks.--b.
On Fri, Apr 05, 2013 at 09:22:39PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> symbol 'nfsd_reply_cache_shrinker' only used within this file. It should
> be static.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
> fs/nfsd/nfscache.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/nfsd/nfscache.c b/fs/nfsd/nfscache.c
> index f8bb605..890a507 100644
> --- a/fs/nfsd/nfscache.c
> +++ b/fs/nfsd/nfscache.c
> @@ -56,7 +56,7 @@ static void cache_cleaner_func(struct work_struct *unused);
> static int nfsd_reply_cache_shrink(struct shrinker *shrink,
> struct shrink_control *sc);
>
> -struct shrinker nfsd_reply_cache_shrinker = {
> +static struct shrinker nfsd_reply_cache_shrinker = {
> .shrink = nfsd_reply_cache_shrink,
> .seeks = 1,
> };
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-30 22:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-05 13:22 [PATCH -next] nfsd: make symbol nfsd_reply_cache_shrinker static Wei Yongjun
2013-04-30 22:20 ` J. Bruce Fields
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).