From: Kevin Hao <kexin....@windriver.com> This variable is only used on arm64, but this driver is also available to arm. So wrap it with #ifdef to fix the build warning on arm.
Signed-off-by: Kevin Hao <kexin....@windriver.com> --- Hi Bruce, Please help me merge this into the following two branches: linux-yocto/v6.1/standard/nxp-sdk-6.1/nxp-soc linux-yocto/v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc drivers/irqchip/irq-imx-gpcv2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c index 9f21511c7357..afad6405de41 100644 --- a/drivers/irqchip/irq-imx-gpcv2.c +++ b/drivers/irqchip/irq-imx-gpcv2.c @@ -123,7 +123,9 @@ static void imx_gpcv2_wake_request_fixup(void) static int imx_gpcv2_irq_set_wake(struct irq_data *d, unsigned int on) { struct gpcv2_irqchip_data *cd = d->chip_data; +#ifdef CONFIG_ARM64 struct arm_smccc_res res; +#endif unsigned int idx = d->hwirq / 32; unsigned long flags; u32 mask, val; -- 2.39.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12762): https://lists.yoctoproject.org/g/linux-yocto/message/12762 Mute This Topic: https://lists.yoctoproject.org/mt/99523755/21656 Mute #ifdef:https://lists.yoctoproject.org/g/linux-yocto/mutehashtag/ifdef Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-