]> Git Repo - linux.git/commitdiff
Avoid section type conflict in dma/ioat/dma_v3.c
authorAndi Kleen <[email protected]>
Tue, 7 Jun 2011 22:26:33 +0000 (15:26 -0700)
committerDan Williams <[email protected]>
Fri, 22 Jul 2011 21:19:29 +0000 (14:19 -0700)
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 <[email protected]>
[drop __read_mostly instead of const]
Signed-off-by: Dan Williams <[email protected]>
drivers/dma/ioat/dma_v3.c

index d845dc4b71039a88787cf6cd1836c189772d3e23..fec8664f2f23e4d83edb2507b5f63b4f98a94ce8 100644 (file)
 /* provide a lookup table for setting the source address in the base or
  * extended descriptor of an xor or pq descriptor
  */
-static const u8 xor_idx_to_desc __read_mostly = 0xd0;
-static const u8 xor_idx_to_field[] __read_mostly = { 1, 4, 5, 6, 7, 0, 1, 2 };
-static const u8 pq_idx_to_desc __read_mostly = 0xf8;
-static const u8 pq_idx_to_field[] __read_mostly = { 1, 4, 5, 0, 1, 2, 4, 5 };
+static const u8 xor_idx_to_desc = 0xd0;
+static const u8 xor_idx_to_field[] = { 1, 4, 5, 6, 7, 0, 1, 2 };
+static const u8 pq_idx_to_desc = 0xf8;
+static const u8 pq_idx_to_field[] = { 1, 4, 5, 0, 1, 2, 4, 5 };
 
 static dma_addr_t xor_get_src(struct ioat_raw_descriptor *descs[2], int idx)
 {
This page took 0.109227 seconds and 4 git commands to generate.