aboutsummaryrefslogtreecommitdiffstats
path: root/net/llc/llc_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/llc/llc_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/llc/llc_proc.c')
-rw-r--r--net/llc/llc_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/llc/llc_proc.c b/net/llc/llc_proc.c
index dcfe6c739471..3ab9d9f8b17f 100644
--- a/net/llc/llc_proc.c
+++ b/net/llc/llc_proc.c
@@ -208,7 +208,7 @@ static int llc_seq_core_open(struct inode *inode, struct file *file)
208 return seq_open(file, &llc_seq_core_ops); 208 return seq_open(file, &llc_seq_core_ops);
209} 209}
210 210
211static struct file_operations llc_seq_socket_fops = { 211static const struct file_operations llc_seq_socket_fops = {
212 .owner = THIS_MODULE, 212 .owner = THIS_MODULE,
213 .open = llc_seq_socket_open, 213 .open = llc_seq_socket_open,
214 .read = seq_read, 214 .read = seq_read,
@@ -216,7 +216,7 @@ static struct file_operations llc_seq_socket_fops = {
216 .release = seq_release, 216 .release = seq_release,
217}; 217};
218 218
219static struct file_operations llc_seq_core_fops = { 219static const struct file_operations llc_seq_core_fops = {
220 .owner = THIS_MODULE, 220 .owner = THIS_MODULE,
221 .open = llc_seq_core_open, 221 .open = llc_seq_core_open,
222 .read = seq_read, 222 .read = seq_read,