From: Julia Lawall Date: Sun, 28 Aug 2016 20:36:55 +0000 (+0200) Subject: nfsd: constify reply_cache_stats_operations structure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7ba630f54ca6404351cebea03fbd3c95760b9b02;p=linux-beck.git nfsd: constify reply_cache_stats_operations structure reply_cache_stats_operations, of type struct file_operations, is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Reviewed-by: Jeff Layton Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 36b2af931e06..be13063bcd66 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -217,7 +217,7 @@ static const struct file_operations pool_stats_operations = { .release = nfsd_pool_stats_release, }; -static struct file_operations reply_cache_stats_operations = { +static const struct file_operations reply_cache_stats_operations = { .open = nfsd_reply_cache_stats_open, .read = seq_read, .llseek = seq_lseek,