aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/proc.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2007-02-12 03:55:36 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:46 -0500
commitda7071d7e32d15149cc513f096a3638097b66387 (patch)
treef56fb200090ad55b2e2a72c379b1eeea29795670 /net/rxrpc/proc.c
parent9a32144e9d7b4e21341174b1a83b82a82353be86 (diff)
[PATCH] mark struct file_operations const 8
Many struct file_operations in the kernel can be "const". Marking them const moves these to the .rodata section, which avoids false sharing with potential dirty data. In addition it'll catch accidental writes at compile time to these shared resources. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/rxrpc/proc.c')
-rw-r--r--net/rxrpc/proc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rxrpc/proc.c b/net/rxrpc/proc.c
index 29975d99d864..8551c879e456 100644
--- a/net/rxrpc/proc.c
+++ b/net/rxrpc/proc.c
@@ -37,7 +37,7 @@ static struct seq_operations rxrpc_proc_transports_ops = {
37 .show = rxrpc_proc_transports_show, 37 .show = rxrpc_proc_transports_show,
38}; 38};
39 39
40static struct file_operations rxrpc_proc_transports_fops = { 40static const struct file_operations rxrpc_proc_transports_fops = {
41 .open = rxrpc_proc_transports_open, 41 .open = rxrpc_proc_transports_open,
42 .read = seq_read, 42 .read = seq_read,
43 .llseek = seq_lseek, 43 .llseek = seq_lseek,
@@ -57,7 +57,7 @@ static struct seq_operations rxrpc_proc_peers_ops = {
57 .show = rxrpc_proc_peers_show, 57 .show = rxrpc_proc_peers_show,
58}; 58};
59 59
60static struct file_operations rxrpc_proc_peers_fops = { 60static const struct file_operations rxrpc_proc_peers_fops = {
61 .open = rxrpc_proc_peers_open, 61 .open = rxrpc_proc_peers_open,
62 .read = seq_read, 62 .read = seq_read,
63 .llseek = seq_lseek, 63 .llseek = seq_lseek,
@@ -77,7 +77,7 @@ static struct seq_operations rxrpc_proc_conns_ops = {
77 .show = rxrpc_proc_conns_show, 77 .show = rxrpc_proc_conns_show,
78}; 78};
79 79
80static struct file_operations rxrpc_proc_conns_fops = { 80static const struct file_operations rxrpc_proc_conns_fops = {
81 .open = rxrpc_proc_conns_open, 81 .open = rxrpc_proc_conns_open,
82 .read = seq_read, 82 .read = seq_read,
83 .llseek = seq_lseek, 83 .llseek = seq_lseek,
@@ -97,7 +97,7 @@ static struct seq_operations rxrpc_proc_calls_ops = {
97 .show = rxrpc_proc_calls_show, 97 .show = rxrpc_proc_calls_show,
98}; 98};
99 99
100static struct file_operations rxrpc_proc_calls_fops = { 100static const struct file_operations rxrpc_proc_calls_fops = {
101 .open = rxrpc_proc_calls_open, 101 .open = rxrpc_proc_calls_open,
102 .read = seq_read, 102 .read = seq_read,
103 .llseek = seq_lseek, 103 .llseek = seq_lseek,