aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2007-10-15 05:01:53 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-10-16 03:59:54 -0400
commit7344be053ab9a1910e77ba6472883a5c83dda569 (patch)
tree1db6c38ced516ef84913f6460cfcc60f50059e89 /block
parent65a6ec0d72a07f16719e9b7a96e1c4bae044b591 (diff)
bsg: mark struct file_operations const
struct file_operations is generally const (to avoid false sharing and get compile time errors on accidental writing to this shared structure); bsg recently added one of these without the const keyword. Patch below marks it const.... Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r--block/bsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c
index b8ddfc66f210..8e181ab3afb9 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -908,7 +908,7 @@ static long bsg_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
908 } 908 }
909} 909}
910 910
911static struct file_operations bsg_fops = { 911static const struct file_operations bsg_fops = {
912 .read = bsg_read, 912 .read = bsg_read,
913 .write = bsg_write, 913 .write = bsg_write,
914 .poll = bsg_poll, 914 .poll = bsg_poll,