static struct resource
-       excite_ctr_resource __attribute__((unused)) = {
+       excite_ctr_resource __maybe_unused = {
                .name           = "GPI counters",
                .start          = 0,
                .end            = 5,
                .sibling        = NULL,
                .child          = NULL
        },
-       excite_gpislice_resource __attribute__((unused)) = {
+       excite_gpislice_resource __maybe_unused = {
                .name           = "GPI slices",
                .start          = 0,
                .end            = 1,
                .sibling        = NULL,
                .child          = NULL
        },
-       excite_mdio_channel_resource __attribute__((unused)) = {
+       excite_mdio_channel_resource __maybe_unused = {
                .name           = "MDIO channels",
                .start          = 0,
                .end            = 1,
                .sibling        = NULL,
                .child          = NULL
        },
-       excite_fifomem_resource __attribute__((unused)) = {
+       excite_fifomem_resource __maybe_unused = {
                .name           = "FIFO memory",
                .start          = 0,
                .end            = 767,
                .sibling        = NULL,
                .child          = NULL
        },
-       excite_scram_resource __attribute__((unused)) = {
+       excite_scram_resource __maybe_unused = {
                .name           = "Scratch RAM",
                .start          = EXCITE_PHYS_SCRAM,
                .end            = EXCITE_PHYS_SCRAM + EXCITE_SIZE_SCRAM - 1,
                .sibling        = NULL,
                .child          = NULL
        },
-       excite_fpga_resource __attribute__((unused)) = {
+       excite_fpga_resource __maybe_unused = {
                .name           = "System FPGA",
                .start          = EXCITE_PHYS_FPGA,
                .end            = EXCITE_PHYS_FPGA + EXCITE_SIZE_FPGA - 1,
                .sibling        = NULL,
                .child          = NULL
        },
-       excite_nand_resource __attribute__((unused)) = {
+       excite_nand_resource __maybe_unused = {
                .name           = "NAND flash control",
                .start          = EXCITE_PHYS_NAND,
                .end            = EXCITE_PHYS_NAND + EXCITE_SIZE_NAND - 1,
                .sibling        = NULL,
                .child          = NULL
        },
-       excite_titan_resource __attribute__((unused)) = {
+       excite_titan_resource __maybe_unused = {
                .name           = "TITAN registers",
                .start          = EXCITE_PHYS_TITAN,
                .end            = EXCITE_PHYS_TITAN + EXCITE_SIZE_TITAN - 1,