]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fadump: Fix build error with CONFIG_PRESERVE_FA_DUMP=y
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Jul 2020 03:44:36 +0000 (13:44 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Jul 2020 07:04:54 +0000 (17:04 +1000)
commite1a777ed7803575164cff4c415040ed4a3bc5147
treeb485583f73f85eab730109534ecab7f1a41af3ac
parent89e306f5e49d169f72ace74a5d54abbff0f63d92
powerpc/fadump: Fix build error with CONFIG_PRESERVE_FA_DUMP=y

skiroot_defconfig fails:

arch/powerpc/kernel/fadump.c:48:17: error: ‘cpus_in_fadump’ defined but not used
   48 | static atomic_t cpus_in_fadump;

Fix it by moving the definition into the #ifdef where it's used.

Fixes: a3eaa94c6079 ("powerpc/fadump: fix race between pstore write and fadump crash trigger")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200727070341.595634-1-mpe@ellerman.id.au
arch/powerpc/kernel/fadump.c