All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sparc32: fix build, fix missing cpu_relax declaration
@ 2011-05-21 21:26 Sam Ravnborg
  2011-05-23  3:43 ` [PATCH 1/2] sparc32: fix build, fix missing cpu_relax David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Ravnborg @ 2011-05-21 21:26 UTC (permalink / raw)
  To: sparclinux

From e8e6c6af3a369f51185012fc149629312d6b2a1c Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <sam@ravnborg.org>
Date: Sat, 21 May 2011 22:55:17 +0200
Subject: [PATCH 1/2] sparc32: fix build, fix missing cpu_relax declaration

Fix following sparc (32 bit) build error:

  CC      arch/sparc/kernel/asm-offsets.s
In file included from include/linux/seqlock.h:29:0,
                 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:2: error: implicit declaration of function 'cpu_relax'

Most likely caused by commit e66eed651fd1 ("list: remove
prefetching from regular list iterators") due to include
changes.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
---
 arch/sparc/include/asm/spinlock_32.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/spinlock_32.h b/arch/sparc/include/asm/spinlock_32.h
index 7f9b9db..5f5b8bf 100644
--- a/arch/sparc/include/asm/spinlock_32.h
+++ b/arch/sparc/include/asm/spinlock_32.h
@@ -9,6 +9,7 @@
 #ifndef __ASSEMBLY__
 
 #include <asm/psr.h>
+#include <asm/processor.h> /* for cpu_relax */
 
 #define arch_spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0)
 
-- 
1.6.0.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] sparc32: fix build, fix missing cpu_relax
  2011-05-21 21:26 [PATCH 1/2] sparc32: fix build, fix missing cpu_relax declaration Sam Ravnborg
@ 2011-05-23  3:43 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-05-23  3:43 UTC (permalink / raw)
  To: sparclinux

From: Sam Ravnborg <sam@ravnborg.org>
Date: Sat, 21 May 2011 23:26:51 +0200

>>From e8e6c6af3a369f51185012fc149629312d6b2a1c Mon Sep 17 00:00:00 2001
> From: Sam Ravnborg <sam@ravnborg.org>
> Date: Sat, 21 May 2011 22:55:17 +0200
> Subject: [PATCH 1/2] sparc32: fix build, fix missing cpu_relax declaration
> 
> Fix following sparc (32 bit) build error:
> 
>   CC      arch/sparc/kernel/asm-offsets.s
> In file included from include/linux/seqlock.h:29:0,
>                  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:2: error: implicit declaration of function 'cpu_relax'
> 
> Most likely caused by commit e66eed651fd1 ("list: remove
> prefetching from regular list iterators") due to include
> changes.
> 
> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-23  3:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-21 21:26 [PATCH 1/2] sparc32: fix build, fix missing cpu_relax declaration Sam Ravnborg
2011-05-23  3:43 ` [PATCH 1/2] sparc32: fix build, fix missing cpu_relax David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.