From 9818e9b07fd5203ef4c4cbb669b8950f4e69103a Mon Sep 17 00:00:00 2001 From: Carlos Llamas Date: Wed, 22 Jan 2025 20:27:33 +0000 Subject: [PATCH] ANDROID: irqchip/gic-v3: fix EXPORT_SYMBOL with __init The gic_v3_dist_init() function was recently exported to be called from within a vendor module in https://r.android.com/3318000. However, the __init attribute was incorrectly kept while porting the patch into the new branch. This triggers the following build warning: WARNING: modpost: vmlinux: gic_v3_dist_init: EXPORT_SYMBOL used for init symbol. Remove __init or EXPORT_SYMBOL. Remove the __init attribute from gic_v3_dist_init() to fix it. Cc: Nagireddy Annem Cc: Shreyas K K Cc: Melody Olvera Cc: Unnathi Chalicheemala Fixes: bca065e87652 ("ANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspend") Change-Id: Ibafcef50da5996be50dd905d3e2d12f2993f37fa Signed-off-by: Carlos Llamas --- drivers/irqchip/irq-gic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 0de9dd1bc2e9..56e46da2e665 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -963,7 +963,7 @@ static void __exception_irq_entry gic_handle_irq(struct pt_regs *regs) __gic_handle_irq_from_irqson(regs); } -void __init gic_v3_dist_init(void) +void gic_v3_dist_init(void) { unsigned int i; u64 affinity;