From: Julia Lawall Date: Sun, 28 Aug 2016 21:27:06 +0000 (+0200) Subject: staging/lustre: constify sops structure X-Git-Tag: v5.15~12752^2~875 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=faac7a8dca7634591fd8e694d0746fae32cdf98d;p=platform%2Fkernel%2Flinux-starfive.git staging/lustre: constify sops structure sops, of type struct seq_operations, is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c b/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c index 327cf63..9bad57d 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c +++ b/drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c @@ -937,7 +937,7 @@ static int ptlrpc_lprocfs_svc_req_history_show(struct seq_file *s, void *iter) static int ptlrpc_lprocfs_svc_req_history_open(struct inode *inode, struct file *file) { - static struct seq_operations sops = { + static const struct seq_operations sops = { .start = ptlrpc_lprocfs_svc_req_history_start, .stop = ptlrpc_lprocfs_svc_req_history_stop, .next = ptlrpc_lprocfs_svc_req_history_next,