ANDROID: irqchip/gic-v3: Remove gic_v3_suspend() stub for !CONFIG_PM builds
gic_v3_suspend() does not need to be defined when CONFIG_PM is not
enabled. Doing so causes a build error when building with the
-Werror,-Wunused-function flags as seen below:
drivers/irqchip/irq-gic-v3.c:1586:12: error: unused function 'gic_v3_suspend' [-Werror,-Wunused-function]
1586 | static int gic_v3_suspend(void) { return 0; }
| ^~~~~~~~~~~~~~
1 error generated.
Fix by removing gic_v3_suspend when CONFIG_PM is not defined.
Bug: 433421153
Fixes: bca065e876 ("ANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspend")
Change-Id: I2b9262a68cd61f13bddb88a9f200a32d5aeb0f1f
Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
This commit is contained in:
committed by
Treehugger Robot
parent
f97c8e1021
commit
b1b73a80a8
@@ -1583,7 +1583,6 @@ static void gic_syscore_init(void)
|
||||
|
||||
#else
|
||||
static inline void gic_syscore_init(void) { }
|
||||
static int gic_v3_suspend(void) { return 0; }
|
||||
#endif /* CONFIG_PM */
|
||||
|
||||
static struct irq_chip gic_chip = {
|
||||
|
||||
Reference in New Issue
Block a user