From patchwork Tue Oct 5 15:54:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 233141 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o95FtjIU014216 for ; Tue, 5 Oct 2010 15:55:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751935Ab0JEPzo (ORCPT ); Tue, 5 Oct 2010 11:55:44 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:60845 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751583Ab0JEPzo (ORCPT ); Tue, 5 Oct 2010 11:55:44 -0400 Received: by pzk34 with SMTP id 34so1678600pzk.19 for ; Tue, 05 Oct 2010 08:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=VHmybeKI5yItmF6R59jiRbyIYOhfF5ErLB3DBHehUoM=; b=SX8kq/JKskFucyUgn/3l/AnNYcXQLHFinR5jXCoHlOekZWNAvJnCh1CyBSqDDH8IDE Uz5LNRNfHGnO9P6xmLJZVn9k1vZUmSPhgmsg5Dt9IcLr1Ow+d6Ck/6CgrS/sk4r/A8pa bSWW/AjacUemZCfOidOp12ZeI869hki+FWQLQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=jb4n/xjDk3JPGyxA07J5uJ5g3aoHgbTX5WDTh4Hfs3pzE7wMaDHuSPXphrMjAiZToI mNMfkIGGPpy5eDHvlek5o+E8CkNRPHGndejgcK8ZskWk1uBBByFXYwROHwsyT4fN1Lnp Gct8v434Z4AVKer+JVe5ShLIlskn9XdfzRRIs= Received: by 10.114.109.11 with SMTP id h11mr13904026wac.166.1286294143775; Tue, 05 Oct 2010 08:55:43 -0700 (PDT) Received: from localhost (p8062-adsau04yokonib2-acca.kanagawa.ocn.ne.jp [220.104.203.62]) by mx.google.com with ESMTPS id 33sm11640058wad.18.2010.10.05.08.55.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 05 Oct 2010 08:55:42 -0700 (PDT) From: Akinobu Mita To: linux-sh@vger.kernel.org Cc: Akinobu Mita , Paul Mundt Subject: [PATCH] sh: fix uninitialized spinlock Date: Wed, 6 Oct 2010 00:54:00 +0900 Message-Id: <1286294040-6171-1-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 1.6.0.6 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 05 Oct 2010 15:55:45 +0000 (UTC) diff --git a/arch/sh/kernel/traps_64.c b/arch/sh/kernel/traps_64.c index e67e140..fda6355 100644 --- a/arch/sh/kernel/traps_64.c +++ b/arch/sh/kernel/traps_64.c @@ -50,7 +50,7 @@ asmlinkage void do_##name(unsigned long error_code, struct pt_regs *regs) \ do_unhandled_exception(trapnr, signr, str, __stringify(name), error_code, regs, current); \ } -spinlock_t die_lock; +static DEFINE_SPINLOCK(die_lock); void die(const char * str, struct pt_regs * regs, long err) {