From patchwork Sat May 21 21:26:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 96709 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B9D7DB71B2 for ; Sun, 22 May 2011 07:26:53 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756107Ab1EUV0x (ORCPT ); Sat, 21 May 2011 17:26:53 -0400 Received: from pfepa.post.tele.dk ([195.41.46.235]:59644 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755839Ab1EUV0w (ORCPT ); Sat, 21 May 2011 17:26:52 -0400 Received: from merkur.ravnborg.org (x1-6-c4-3d-c7-28-70-1a.k498.webspeed.dk [83.89.83.41]) by pfepa.post.tele.dk (Postfix) with ESMTP id 99C58A5001A; Sat, 21 May 2011 23:26:50 +0200 (CEST) Date: Sat, 21 May 2011 23:26:51 +0200 From: Sam Ravnborg To: sparclinux , "David S. Miller" , Stephen Rothwell Subject: [PATCH 1/2] sparc32: fix build, fix missing cpu_relax declaration Message-ID: <20110521212651.GA18545@merkur.ravnborg.org> References: <20110521212549.GA17236@merkur.ravnborg.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110521212549.GA17236@merkur.ravnborg.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From e8e6c6af3a369f51185012fc149629312d6b2a1c Mon Sep 17 00:00:00 2001 From: Sam Ravnborg 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 Cc: Stephen Rothwell --- 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 +#include /* for cpu_relax */ #define arch_spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0)