Skip to content

Commit

Permalink
Staging: hv: Cleanup ring_buffer.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 11, 2011
1 parent 66a6054 commit 5307079
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/staging/hv/ring_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

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];
Expand All @@ -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
Expand Down

0 comments on commit 5307079

Please sign in to comment.