From patchwork Wed Mar 20 14:35:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 229405 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 6360C2C009C for ; Thu, 21 Mar 2013 01:35:12 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755465Ab3CTOfL (ORCPT ); Wed, 20 Mar 2013 10:35:11 -0400 Received: from gerard.telenet-ops.be ([195.130.132.48]:36160 "EHLO gerard.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406Ab3CTOfK (ORCPT ); Wed, 20 Mar 2013 10:35:10 -0400 Received: from ayla.of.borg ([84.193.72.141]) by gerard.telenet-ops.be with bizsmtp id Dqb51l00v32ts5g0Hqb5ff; Wed, 20 Mar 2013 15:35:08 +0100 Received: from geert by ayla.of.borg with local (Exim 4.71) (envelope-from ) id 1UIK6b-00027l-Ii; Wed, 20 Mar 2013 15:35:05 +0100 From: Geert Uytterhoeven To: "David S. Miller" Cc: sparclinux@vger.kernel.org, linux-next@vger.kernel.org, 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> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org sparc64 allmodconfig: drivers/block/blockconsole.c: In function ‘bcon_advance_console_bytes’: drivers/block/blockconsole.c:164: error: implicit declaration of function ‘cmpxchg64’ 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/asm/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(volatile void *ptr, BUILD_BUG_ON(sizeof(*(ptr)) != 8); \ cmpxchg_local((ptr), (o), (n)); \ }) +#define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) #endif /* __ARCH_SPARC64_CMPXCHG__ */