Function xive_native_get_ipi() might uses chip_id without it being initialized. This gives the following error on 'smatch' tool:
error: uninitialized symbol 'chip_id' This patch simply sets chip_id initial value to 0. CC: Benjamin Herrenschmidt <b...@kernel.crashing.org> Signed-off-by: Breno Leitao <lei...@debian.org> --- arch/powerpc/sysdev/xive/native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/sysdev/xive/native.c b/arch/powerpc/sysdev/xive/native.c index 311185b9960a..fc56673a3c0f 100644 --- a/arch/powerpc/sysdev/xive/native.c +++ b/arch/powerpc/sysdev/xive/native.c @@ -239,7 +239,7 @@ static bool xive_native_match(struct device_node *node) static int xive_native_get_ipi(unsigned int cpu, struct xive_cpu *xc) { struct device_node *np; - unsigned int chip_id; + unsigned int chip_id = 0; s64 irq; /* Find the chip ID */ -- 2.16.3