From: Stephen Rothwell Date: Fri, 20 May 2011 05:48:17 +0000 (+1000) Subject: spinlock_up.h: include asm/processor.h in for cpu_relax X-Git-Tag: upstream/snapshot3+hdmi~10395 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d974d905cbfc1039a73ba0c7eea3f4d4e13c0624;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git spinlock_up.h: include asm/processor.h in for cpu_relax Commit e66eed651fd1 ("list: remove prefetching from regular list iterators") removed the include of prefetch.h from list.h and this was a path to including asm/processor.h. We need to include it excplicitly now. Fixes this build error on sparc32 (at least): In file included from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:56, from include/linux/sched.h:57, from arch/sparc/kernel/asm-offsets.c:13: include/linux/spinlock.h: In function 'spin_unlock_wait': include/linux/spinlock.h:360: error: implicit declaration of function 'cpu_relax Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds --- diff --git a/include/linux/spinlock_up.h b/include/linux/spinlock_up.h index b14f6a9..a26e2fb 100644 --- a/include/linux/spinlock_up.h +++ b/include/linux/spinlock_up.h @@ -5,6 +5,8 @@ # error "please don't include this file directly" #endif +#include /* for cpu_relax() */ + /* * include/linux/spinlock_up.h - UP-debug version of spinlocks. *