Commit:     7344be053ab9a1910e77ba6472883a5c83dda569
Parent:     65a6ec0d72a07f16719e9b7a96e1c4bae044b591
Author:     Arjan van de Ven <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 11:01:53 2007 +0200
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 09:59:54 2007 +0200

    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 
    Signed-off-by: Arjan van de Ven <[EMAIL PROTECTED]>
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
 block/bsg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/bsg.c b/block/bsg.c
index b8ddfc6..8e181ab 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,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to