ARM: imx: irq-common: Include header to avoid sparse warning
Subsystems (3)
Fabio Estevam
reviewerPATCH 1/2 ARM: imx: irq-common: Include header to avoid sparse warning
From: Fabio Estevam <[email protected]>
Fix the following sparse warning:
arch/arm/mach-imx/irq-common.c:24:5: warning: symbol 'mxc_set_irq_fiq' was not declared. Should it be static?
--- arch/arm/mach-imx/irq-common.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-imx/irq-common.c +1 -0
@@ -18,6 +18,7 @@#include <linux/module.h> #include <linux/irq.h> +#include <linux/platform_data/asoc-imx-ssi.h> #include "irq-common.h"
Signature · 1 line
1.8.1.2
Fabio Estevam
reviewerPATCH 2/2 ARM: imx: clk: No need to initialize phandle struct
From: Fabio Estevam <[email protected]>
commit 84344b43c (ARM: i.MX5: Allow DT clock providers) introduce the following sparse warning:
arch/arm/mach-imx/clk.c:12:43: warning: Using plain integer as NULL pointer
There is no need to initialize phandle, so remove it.
--- arch/arm/mach-imx/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/clk.c +1 -1
@@ -9,7 +9,7 @@ DEFINE_SPINLOCK(imx_ccm_lock);static struct clk *__init imx_obtain_fixed_clock_from_dt (const char *name) { -struct of_phandle_args phandle = {0 }; +struct of_phandle_args phandle;struct clk *clk =ERR_PTR (-ENODEV );char *path;
Signature · 1 line
1.8.1.2
PATCH 1/2 ARM: imx: irq-common: Include header to avoid sparse warning
In reply to Fabio EstevamQuoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Fix the following sparse warning:
arch/arm/mach-imx/irq-common.c:24:5: warning: symbol 'mxc_set_irq_fiq' was not declared. Should it be static?Signed-off-by Fabio Estevam <[email protected]>
Both applied, thanks.