Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ARM: percpu.h: fix build error

Fix build error for the case:
defined(CONFIG_SMP) && !defined(CONFIG_CPU_V6)

config: keystone_defconfig

CC arch/arm/kernel/signal.o
In file included from ../include/linux/random.h:14,
from ../arch/arm/kernel/signal.c:8:
../arch/arm/include/asm/percpu.h: In function ‘__my_cpu_offset’:
../arch/arm/include/asm/percpu.h:29:34: error: ‘current_stack_pointer’ undeclared (first use in this function); did you mean ‘user_stack_pointer’?
: "Q" (*(const unsigned long *)current_stack_pointer));
^~~~~~~~~~~~~~~~~~~~~
user_stack_pointer

Fixes: f227e3ec3b5c ("random32: update the net random state on interrupt and activity")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Grygorii Strashko and committed by
Linus Torvalds
aa54ea90 d9644712

+2
+2
arch/arm/include/asm/percpu.h
··· 5 5 #ifndef _ASM_ARM_PERCPU_H_ 6 6 #define _ASM_ARM_PERCPU_H_ 7 7 8 + #include <asm/thread_info.h> 9 + 8 10 /* 9 11 * Same as asm-generic/percpu.h, except that we store the per cpu offset 10 12 * in the TPIDRPRW. TPIDRPRW only exists on V6K and V7