powerpc/qspinlock: Fix 32-bit build
authorNicholas Piggin <npiggin@gmail.com>
Thu, 8 Dec 2022 12:32:25 +0000 (22:32 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Dec 2022 01:34:52 +0000 (12:34 +1100)
Some 32-bit configurations don't pull in the spin_begin/end/relax
definitions. Fix is to restore a lost include.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 84990b169557 ("powerpc/qspinlock: add mcs queueing for contended waiters")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/oe-kbuild-all/202212050224.i7uh9fOh-lkp@intel.com
Link: https://lore.kernel.org/r/20221208123225.1566113-1-npiggin@gmail.com
arch/powerpc/lib/qspinlock.c

index 1cf5d3e..e4bd145 100644 (file)
@@ -3,6 +3,7 @@
 #include <linux/compiler.h>
 #include <linux/export.h>
 #include <linux/percpu.h>
+#include <linux/processor.h>
 #include <linux/smp.h>
 #include <linux/topology.h>
 #include <linux/sched/clock.h>