From b1b73a80a8ce108efc3977e3fd17d3e55ccd2092 Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Tue, 22 Jul 2025 12:52:12 +0000 Subject: [PATCH] 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: bca065e87652 ("ANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspend") Change-Id: I2b9262a68cd61f13bddb88a9f200a32d5aeb0f1f Signed-off-by: Isaac J. Manjarres --- drivers/irqchip/irq-gic-v3.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 15cf996e3760..7daaac8ff87f 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -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 = {