mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 03:10:30 -04:00
staging/lustre/obdclass: use static const for seq_operations
lprocfs_stats_seq_sops is only used in static int lprocfs_stats_seq_open with seq_open as const struct seq_operations * Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Peng Tao <bergwolf@gmail.com> Cc: devel@driverdev.osuosl.org Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e5873388e2
commit
fd6f578822
@@ -1196,7 +1196,7 @@ static int lprocfs_stats_seq_show(struct seq_file *p, void *v)
|
||||
return (rc < 0) ? rc : 0;
|
||||
}
|
||||
|
||||
struct seq_operations lprocfs_stats_seq_sops = {
|
||||
static const struct seq_operations lprocfs_stats_seq_sops = {
|
||||
.start = lprocfs_stats_seq_start,
|
||||
.stop = lprocfs_stats_seq_stop,
|
||||
.next = lprocfs_stats_seq_next,
|
||||
|
||||
Reference in New Issue
Block a user