From: Geert Uytterhoeven Subject: [PATCH] sparc64: Provide cmpxchg64() Date: Wed, 20 Mar 2013 15:35:04 +0100 Message-ID: <1363790104-8140-1-git-send-email-geert@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Sender: sparclinux-owner@vger.kernel.org To: "David S. Miller" Cc: sparclinux@vger.kernel.org, linux-next@vger.kernel.org, Geert Uytterhoeven List-Id: linux-next.vger.kernel.org sparc64 allmodconfig: drivers/block/blockconsole.c: In function =E2=80=98bcon_advance_console= _bytes=E2=80=99: drivers/block/blockconsole.c:164: error: implicit declaration of functi= on =E2=80=98cmpxchg64=E2=80=99 Map cmpxchg64() to cmpxchg64_local() (which eventually calls __cmpxchg_u64()) to fix this. Signed-off-by: Geert Uytterhoeven --- arch/sparc/include/asm/cmpxchg_64.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/sparc/include/asm/cmpxchg_64.h b/arch/sparc/include/a= sm/cmpxchg_64.h index b30eb37..4adefe8 100644 --- a/arch/sparc/include/asm/cmpxchg_64.h +++ b/arch/sparc/include/asm/cmpxchg_64.h @@ -141,5 +141,6 @@ static inline unsigned long __cmpxchg_local(volatil= e void *ptr, BUILD_BUG_ON(sizeof(*(ptr)) !=3D 8); \ cmpxchg_local((ptr), (o), (n)); \ }) +#define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) =20 #endif /* __ARCH_SPARC64_CMPXCHG__ */ --=20 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe sparclinux" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html