Skip to content
Commit 5f987cae authored by Michael Ellerman's avatar Michael Ellerman
Browse files

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: ba608c4f ("powerpc/fadump: fix race between pstore write and fadump crash trigger")
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200727070341.595634-1-mpe@ellerman.id.au
parent 86052e40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment