Staging: hv: Cleanup ring_buffer.h
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:55:34 +0000 (07:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:49:10 +0000 (13:49 -0700)
Access to these variables is already serialized via a spin lock. Get
rid of the unnecessary volatile qualifier.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/ring_buffer.h

index 1bc0b8a20951e324b992657980cef6710e9beb1e..089c536133c6c0a98a3bd4fa3355cf8343a36532 100644 (file)
 
 struct hv_ring_buffer {
        /* Offset in bytes from the start of ring data below */
-       volatile u32 write_index;
+       u32 write_index;
 
        /* Offset in bytes from the start of ring data below */
-       volatile u32 read_index;
+       u32 read_index;
 
-       volatile u32 interrupt_mask;
+       u32 interrupt_mask;
 
        /* Pad it to PAGE_SIZE so that data starts on page boundary */
        u8      reserved[4084];
@@ -45,7 +45,6 @@ struct hv_ring_buffer {
         * vmbus connection also uses this data structure and its data starts
         * here, we commented out this field.
         */
-       /* volatile u32 InterruptMask; */
 
        /*
         * Ring data starts here + RingDataStartOffset