diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2007-10-15 11:01:53 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-16 09:59:54 +0200 |
commit | 7344be053ab9a1910e77ba6472883a5c83dda569 (patch) | |
tree | 1db6c38ced516ef84913f6460cfcc60f50059e89 /block | |
parent | 65a6ec0d72a07f16719e9b7a96e1c4bae044b591 (diff) | |
download | blackbird-op-linux-7344be053ab9a1910e77ba6472883a5c83dda569.tar.gz blackbird-op-linux-7344be053ab9a1910e77ba6472883a5c83dda569.zip |
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.c | 2 |
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) } } -static struct file_operations bsg_fops = { +static const struct file_operations bsg_fops = { .read = bsg_read, .write = bsg_write, .poll = bsg_poll, |