diff options
author | thomas@koeller.dyndns.org <thomas@koeller.dyndns.org> | 2006-08-27 07:53:16 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-09-27 08:37:50 -0400 |
commit | 48712a96e31d11dce6dcb2a886894bd4d8b890f1 (patch) | |
tree | 42a1ae6910e9235d8f98dc4f0261877d70f302a9 /arch/mips/basler | |
parent | 6b8aab09309c577318f8484fce401e5c3546bb3b (diff) |
[MIPS] Suppress compiler warnings
The excite platform exports hardware resources for device drivers to use.
Any driver wanting to use these resources will look up them by their names.
Since these resources are declared to have static linkage, but are not
used in the source file defining them, the compiler used to emit an
'unused' warning, which this patch suppresses.
Signed-off-by: Thomas Koeller <thomas.koeller@baslerweb.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/basler')
-rw-r--r-- | arch/mips/basler/excite/excite_device.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/mips/basler/excite/excite_device.c b/arch/mips/basler/excite/excite_device.c index bbb4ea43da88..cc1ce77eab4a 100644 --- a/arch/mips/basler/excite/excite_device.c +++ b/arch/mips/basler/excite/excite_device.c | |||
@@ -68,7 +68,7 @@ enum { | |||
68 | 68 | ||
69 | 69 | ||
70 | static struct resource | 70 | static struct resource |
71 | excite_ctr_resource = { | 71 | excite_ctr_resource __attribute__((unused)) = { |
72 | .name = "GPI counters", | 72 | .name = "GPI counters", |
73 | .start = 0, | 73 | .start = 0, |
74 | .end = 5, | 74 | .end = 5, |
@@ -77,7 +77,7 @@ static struct resource | |||
77 | .sibling = NULL, | 77 | .sibling = NULL, |
78 | .child = NULL | 78 | .child = NULL |
79 | }, | 79 | }, |
80 | excite_gpislice_resource = { | 80 | excite_gpislice_resource __attribute__((unused)) = { |
81 | .name = "GPI slices", | 81 | .name = "GPI slices", |
82 | .start = 0, | 82 | .start = 0, |
83 | .end = 1, | 83 | .end = 1, |
@@ -86,7 +86,7 @@ static struct resource | |||
86 | .sibling = NULL, | 86 | .sibling = NULL, |
87 | .child = NULL | 87 | .child = NULL |
88 | }, | 88 | }, |
89 | excite_mdio_channel_resource = { | 89 | excite_mdio_channel_resource __attribute__((unused)) = { |
90 | .name = "MDIO channels", | 90 | .name = "MDIO channels", |
91 | .start = 0, | 91 | .start = 0, |
92 | .end = 1, | 92 | .end = 1, |
@@ -95,7 +95,7 @@ static struct resource | |||
95 | .sibling = NULL, | 95 | .sibling = NULL, |
96 | .child = NULL | 96 | .child = NULL |
97 | }, | 97 | }, |
98 | excite_fifomem_resource = { | 98 | excite_fifomem_resource __attribute__((unused)) = { |
99 | .name = "FIFO memory", | 99 | .name = "FIFO memory", |
100 | .start = 0, | 100 | .start = 0, |
101 | .end = 767, | 101 | .end = 767, |
@@ -104,7 +104,7 @@ static struct resource | |||
104 | .sibling = NULL, | 104 | .sibling = NULL, |
105 | .child = NULL | 105 | .child = NULL |
106 | }, | 106 | }, |
107 | excite_scram_resource = { | 107 | excite_scram_resource __attribute__((unused)) = { |
108 | .name = "Scratch RAM", | 108 | .name = "Scratch RAM", |
109 | .start = EXCITE_PHYS_SCRAM, | 109 | .start = EXCITE_PHYS_SCRAM, |
110 | .end = EXCITE_PHYS_SCRAM + EXCITE_SIZE_SCRAM - 1, | 110 | .end = EXCITE_PHYS_SCRAM + EXCITE_SIZE_SCRAM - 1, |
@@ -113,7 +113,7 @@ static struct resource | |||
113 | .sibling = NULL, | 113 | .sibling = NULL, |
114 | .child = NULL | 114 | .child = NULL |
115 | }, | 115 | }, |
116 | excite_fpga_resource = { | 116 | excite_fpga_resource __attribute__((unused)) = { |
117 | .name = "System FPGA", | 117 | .name = "System FPGA", |
118 | .start = EXCITE_PHYS_FPGA, | 118 | .start = EXCITE_PHYS_FPGA, |
119 | .end = EXCITE_PHYS_FPGA + EXCITE_SIZE_FPGA - 1, | 119 | .end = EXCITE_PHYS_FPGA + EXCITE_SIZE_FPGA - 1, |
@@ -122,7 +122,7 @@ static struct resource | |||
122 | .sibling = NULL, | 122 | .sibling = NULL, |
123 | .child = NULL | 123 | .child = NULL |
124 | }, | 124 | }, |
125 | excite_nand_resource = { | 125 | excite_nand_resource __attribute__((unused)) = { |
126 | .name = "NAND flash control", | 126 | .name = "NAND flash control", |
127 | .start = EXCITE_PHYS_NAND, | 127 | .start = EXCITE_PHYS_NAND, |
128 | .end = EXCITE_PHYS_NAND + EXCITE_SIZE_NAND - 1, | 128 | .end = EXCITE_PHYS_NAND + EXCITE_SIZE_NAND - 1, |
@@ -131,7 +131,7 @@ static struct resource | |||
131 | .sibling = NULL, | 131 | .sibling = NULL, |
132 | .child = NULL | 132 | .child = NULL |
133 | }, | 133 | }, |
134 | excite_titan_resource = { | 134 | excite_titan_resource __attribute__((unused)) = { |
135 | .name = "TITAN registers", | 135 | .name = "TITAN registers", |
136 | .start = EXCITE_PHYS_TITAN, | 136 | .start = EXCITE_PHYS_TITAN, |
137 | .end = EXCITE_PHYS_TITAN + EXCITE_SIZE_TITAN - 1, | 137 | .end = EXCITE_PHYS_TITAN + EXCITE_SIZE_TITAN - 1, |