]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/spinlocks: Include correct header for static key
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 23 Dec 2019 13:31:47 +0000 (14:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Dec 2019 10:20:41 +0000 (21:20 +1100)
commit7f88f5be2c33e845a1b9bb5bf4b1d6fb04d768a5
tree034aa026e6e797d9d94c05b3bb5a55b62dc45c27
parent33cbf5e6a4f23030df195e050b9dbdb65ae65ed7
powerpc/spinlocks: Include correct header for static key

Recently, the spinlock implementation grew a static key optimization,
but the jump_label.h header include was left out, leading to build
errors:

  linux/arch/powerpc/include/asm/spinlock.h:44:7: error: implicit declaration of function ‘static_branch_unlikely’
   44 |  if (!static_branch_unlikely(&shared_processor))

This commit adds the missing header.

mpe: The build break is only seen with CONFIG_JUMP_LABEL=n.

Fixes: c358e951c1e3 ("powerpc/shared: Use static key to detect shared processor")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Srikar Dronamraju <srikar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191223133147.129983-1-Jason@zx2c4.com
arch/powerpc/include/asm/spinlock.h