linux/arch/powerpc/sysdev/xive
Breno Leitao 8ac9e5bfd8 powerpc/xive: Use xive_cpu->chip_id instead of looking it up again
Function xive_native_get_ipi() might use chip_id without it being
initialized, if the CPU node is not found, as reported by smatch:

  error: uninitialized symbol 'chip_id'

As suggested by Cédric, we can use xc->chip_id instead of consulting
the device tree for chip id, which is safe since xive_prepare_cpu()
should have initialized ->chip_id by the time xive_native_get_ipi() is
called.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[mpe: Tweak change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-09-19 21:58:09 +10:00
..
common.c treewide: correct "differenciate" and "instanciate" typos 2018-08-23 18:48:43 -07:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile powerpc/xive: guest exploitation of the XIVE interrupt controller 2017-09-02 21:02:35 +10:00
native.c powerpc/xive: Use xive_cpu->chip_id instead of looking it up again 2018-09-19 21:58:09 +10:00
spapr.c powerpc/xive: prepare all hcalls to support long busy delays 2018-05-10 23:25:10 +10:00
xive-internal.h powerpc/xive: introduce H_INT_ESB hcall 2017-09-02 21:02:37 +10:00