mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
[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>
This commit is contained in:
parent
6b8aab0930
commit
48712a96e3
@ -68,7 +68,7 @@ enum {
|
|||||||
|
|
||||||
|
|
||||||
static struct resource
|
static struct resource
|
||||||
excite_ctr_resource = {
|
excite_ctr_resource __attribute__((unused)) = {
|
||||||
.name = "GPI counters",
|
.name = "GPI counters",
|
||||||
.start = 0,
|
.start = 0,
|
||||||
.end = 5,
|
.end = 5,
|
||||||
@ -77,7 +77,7 @@ static struct resource
|
|||||||
.sibling = NULL,
|
.sibling = NULL,
|
||||||
.child = NULL
|
.child = NULL
|
||||||
},
|
},
|
||||||
excite_gpislice_resource = {
|
excite_gpislice_resource __attribute__((unused)) = {
|
||||||
.name = "GPI slices",
|
.name = "GPI slices",
|
||||||
.start = 0,
|
.start = 0,
|
||||||
.end = 1,
|
.end = 1,
|
||||||
@ -86,7 +86,7 @@ static struct resource
|
|||||||
.sibling = NULL,
|
.sibling = NULL,
|
||||||
.child = NULL
|
.child = NULL
|
||||||
},
|
},
|
||||||
excite_mdio_channel_resource = {
|
excite_mdio_channel_resource __attribute__((unused)) = {
|
||||||
.name = "MDIO channels",
|
.name = "MDIO channels",
|
||||||
.start = 0,
|
.start = 0,
|
||||||
.end = 1,
|
.end = 1,
|
||||||
@ -95,7 +95,7 @@ static struct resource
|
|||||||
.sibling = NULL,
|
.sibling = NULL,
|
||||||
.child = NULL
|
.child = NULL
|
||||||
},
|
},
|
||||||
excite_fifomem_resource = {
|
excite_fifomem_resource __attribute__((unused)) = {
|
||||||
.name = "FIFO memory",
|
.name = "FIFO memory",
|
||||||
.start = 0,
|
.start = 0,
|
||||||
.end = 767,
|
.end = 767,
|
||||||
@ -104,7 +104,7 @@ static struct resource
|
|||||||
.sibling = NULL,
|
.sibling = NULL,
|
||||||
.child = NULL
|
.child = NULL
|
||||||
},
|
},
|
||||||
excite_scram_resource = {
|
excite_scram_resource __attribute__((unused)) = {
|
||||||
.name = "Scratch RAM",
|
.name = "Scratch RAM",
|
||||||
.start = EXCITE_PHYS_SCRAM,
|
.start = EXCITE_PHYS_SCRAM,
|
||||||
.end = EXCITE_PHYS_SCRAM + EXCITE_SIZE_SCRAM - 1,
|
.end = EXCITE_PHYS_SCRAM + EXCITE_SIZE_SCRAM - 1,
|
||||||
@ -113,7 +113,7 @@ static struct resource
|
|||||||
.sibling = NULL,
|
.sibling = NULL,
|
||||||
.child = NULL
|
.child = NULL
|
||||||
},
|
},
|
||||||
excite_fpga_resource = {
|
excite_fpga_resource __attribute__((unused)) = {
|
||||||
.name = "System FPGA",
|
.name = "System FPGA",
|
||||||
.start = EXCITE_PHYS_FPGA,
|
.start = EXCITE_PHYS_FPGA,
|
||||||
.end = EXCITE_PHYS_FPGA + EXCITE_SIZE_FPGA - 1,
|
.end = EXCITE_PHYS_FPGA + EXCITE_SIZE_FPGA - 1,
|
||||||
@ -122,7 +122,7 @@ static struct resource
|
|||||||
.sibling = NULL,
|
.sibling = NULL,
|
||||||
.child = NULL
|
.child = NULL
|
||||||
},
|
},
|
||||||
excite_nand_resource = {
|
excite_nand_resource __attribute__((unused)) = {
|
||||||
.name = "NAND flash control",
|
.name = "NAND flash control",
|
||||||
.start = EXCITE_PHYS_NAND,
|
.start = EXCITE_PHYS_NAND,
|
||||||
.end = EXCITE_PHYS_NAND + EXCITE_SIZE_NAND - 1,
|
.end = EXCITE_PHYS_NAND + EXCITE_SIZE_NAND - 1,
|
||||||
@ -131,7 +131,7 @@ static struct resource
|
|||||||
.sibling = NULL,
|
.sibling = NULL,
|
||||||
.child = NULL
|
.child = NULL
|
||||||
},
|
},
|
||||||
excite_titan_resource = {
|
excite_titan_resource __attribute__((unused)) = {
|
||||||
.name = "TITAN registers",
|
.name = "TITAN registers",
|
||||||
.start = EXCITE_PHYS_TITAN,
|
.start = EXCITE_PHYS_TITAN,
|
||||||
.end = EXCITE_PHYS_TITAN + EXCITE_SIZE_TITAN - 1,
|
.end = EXCITE_PHYS_TITAN + EXCITE_SIZE_TITAN - 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user