mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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 <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a1cd3dd535
commit
faac7a8dca
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue