mips: ingenic: Remove useless __maybe_unused
authorPaul Cercueil <paul@crapouillou.net>
Sun, 4 Jun 2023 12:26:53 +0000 (14:26 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 9 Jun 2023 07:54:17 +0000 (09:54 +0200)
These flags are useless in this case as the code referencing these data
structures is always seen by the compiler (and not behind #ifdef
guards).

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/generic/board-ingenic.c

index c422bbc..7a4fce0 100644 (file)
@@ -117,14 +117,14 @@ static void ingenic_halt(void)
                ingenic_wait_instr();
 }
 
-static int __maybe_unused ingenic_pm_enter(suspend_state_t state)
+static int ingenic_pm_enter(suspend_state_t state)
 {
        ingenic_wait_instr();
 
        return 0;
 }
 
-static const struct platform_suspend_ops ingenic_pm_ops __maybe_unused = {
+static const struct platform_suspend_ops ingenic_pm_ops = {
        .valid = suspend_valid_only_mem,
        .enter = ingenic_pm_enter,
 };