Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752134Ab0KGHlh (ORCPT ); Sun, 7 Nov 2010 02:41:37 -0500 Received: from mail-ww0-f42.google.com ([74.125.82.42]:33725 "EHLO mail-ww0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717Ab0KGHlf convert rfc822-to-8bit (ORCPT ); Sun, 7 Nov 2010 02:41:35 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=lKdV+K64A46WBhx8YDaPpcfVm9Z94cvFNMoJDYeT91MsiU/cUw8cZTdwQ235cAXLiw iUKiPEnSj5+Lt7zo0fDjs1/tPrlQPhNwClsm0EuxJoUmmLrOt4JTnwpvDYux3kqq+eVz JJ8Tvnjva5gqrctxV01dR1pzSN5uMnB49zG4Y= MIME-Version: 1.0 Date: Sun, 7 Nov 2010 13:41:34 +0600 Message-ID: Subject: [PATCH] x86, hw_nmi: Move backtrace_mask declaration under ARCH_HAS_NMI_WATCHDOG. From: Rakib Mullick To: Ingo Molnar Cc: Thomas Gleixner , x86@kernel.org, LKML , "H. Peter Anvin" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1201 Lines: 39 backtrace_mask has been used under the code context of ARCH_HAS_NMI_WATCHDOG. So put it into that context. We were warned by the following warning: arch/x86/kernel/apic/hw_nmi.c:21: warning: ?backtrace_mask? defined but not used Signed-off-by: Rakib Mullick --- diff --git a/arch/x86/kernel/apic/hw_nmi.c b/arch/x86/kernel/apic/hw_nmi.c index cefd694..62f6e1e 100644 --- a/arch/x86/kernel/apic/hw_nmi.c +++ b/arch/x86/kernel/apic/hw_nmi.c @@ -17,15 +17,16 @@ #include #include -/* For reliability, we're prepared to waste bits here. */ -static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly; - u64 hw_nmi_get_sample_period(void) { return (u64)(cpu_khz) * 1000 * 60; } #ifdef ARCH_HAS_NMI_WATCHDOG + +/* For reliability, we're prepared to waste bits here. */ +static DECLARE_BITMAP(backtrace_mask, NR_CPUS) __read_mostly; + void arch_trigger_all_cpu_backtrace(void) { int i; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/