diff options
author | Andi Kleen <ak@linux.intel.com> | 2011-06-07 18:26:33 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-22 17:19:29 -0400 |
commit | 9b487ced8a903f1028fcfaef1e6406acc91fe0fa (patch) | |
tree | ffbd545e8e3630a4adcd924d2712fdd8f45a3c77 /drivers/dma | |
parent | 3baef940f289f08e4aada1fd481ab9ee3f070144 (diff) |
Avoid section type conflict in dma/ioat/dma_v3.c
const __read_mostly is not legal and causes section type conflicts.
That's because the read.mostly section is not read only.
Simply drop the __read_mostly designation.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
[drop __read_mostly instead of const]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/ioat/dma_v3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c index d845dc4b7103..fec8664f2f23 100644 --- a/drivers/dma/ioat/dma_v3.c +++ b/drivers/dma/ioat/dma_v3.c | |||
@@ -73,10 +73,10 @@ | |||
73 | /* provide a lookup table for setting the source address in the base or | 73 | /* provide a lookup table for setting the source address in the base or |
74 | * extended descriptor of an xor or pq descriptor | 74 | * extended descriptor of an xor or pq descriptor |
75 | */ | 75 | */ |
76 | static const u8 xor_idx_to_desc __read_mostly = 0xd0; | 76 | static const u8 xor_idx_to_desc = 0xd0; |
77 | static const u8 xor_idx_to_field[] __read_mostly = { 1, 4, 5, 6, 7, 0, 1, 2 }; | 77 | static const u8 xor_idx_to_field[] = { 1, 4, 5, 6, 7, 0, 1, 2 }; |
78 | static const u8 pq_idx_to_desc __read_mostly = 0xf8; | 78 | static const u8 pq_idx_to_desc = 0xf8; |
79 | static const u8 pq_idx_to_field[] __read_mostly = { 1, 4, 5, 0, 1, 2, 4, 5 }; | 79 | static const u8 pq_idx_to_field[] = { 1, 4, 5, 0, 1, 2, 4, 5 }; |
80 | 80 | ||
81 | static dma_addr_t xor_get_src(struct ioat_raw_descriptor *descs[2], int idx) | 81 | static dma_addr_t xor_get_src(struct ioat_raw_descriptor *descs[2], int idx) |
82 | { | 82 | { |