aboutsummaryrefslogtreecommitdiff
path: root/block/bsg.c
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2007-10-15 11:01:53 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-10-16 09:59:54 +0200
commit7344be053ab9a1910e77ba6472883a5c83dda569 (patch)
tree1db6c38ced516ef84913f6460cfcc60f50059e89 /block/bsg.c
parent65a6ec0d72a07f16719e9b7a96e1c4bae044b591 (diff)
downloadlinux-7344be053ab9a1910e77ba6472883a5c83dda569.tar.gz
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/bsg.c')
-rw-r--r--block/bsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c
index b8ddfc66f21..8e181ab3afb 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)
}
}
-static struct file_operations bsg_fops = {
+static const struct file_operations bsg_fops = {
.read = bsg_read,
.write = bsg_write,
.poll = bsg_poll,