Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754536AbYLHO4u (ORCPT ); Mon, 8 Dec 2008 09:56:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751767AbYLHO4k (ORCPT ); Mon, 8 Dec 2008 09:56:40 -0500 Received: from rn-out-0910.google.com ([64.233.170.187]:61067 "EHLO rn-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbYLHO4j (ORCPT ); Mon, 8 Dec 2008 09:56:39 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=KfIWfYXsFAN/CWw7ypV6kfELQyE5XybuskdtZqCitDPnYEeJwegP5URm7WOVoTSsKv rsBsqxf/EqtUKljlya8/vwvo0rEZeX0IArcsXnzAs966WctTLtoI3p/DI1EgiglKRJVJ gPA85vGKXqp2aJqM6vLPBGmK82Ktt+0rFrE8Y= Message-ID: Date: Mon, 8 Dec 2008 20:56:38 +0600 From: "Rakib Mullick" To: "Linux-kernel Mailing List" Subject: [PATCH ] x86 : Fix compilation warning on paravirt-spinlocks.c Cc: "Andrew Morton" , "Ingo Molnar" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1131 Lines: 33 Impact: Fix compilation warning. CC arch/x86/kernel/paravirt-spinlocks.o arch/x86/kernel/paravirt-spinlocks.c: In function `default_spin_lock_flags': arch/x86/kernel/paravirt-spinlocks.c:12: warning: passing arg 1 of `__raw_spin_lock' from incompatible pointer type This patch fixes the above warning. __raw_spin_lock(lock) is declared when CONFIG_SMP is defined. Thus, a call to __raw_spin_lock requires checking CONFIG_SMP is defined or not. Signed-off-by: Rakib Mullick --- linux-2.6-orig/arch/x86/kernel/paravirt-spinlocks.c 2008-12-05 19:53:15.000000000 +0600 +++ linux-2.6/arch/x86/kernel/paravirt-spinlocks.c 2008-12-07 23:52:59.000000000 +0600 @@ -9,7 +9,9 @@ static void default_spin_lock_flags(struct raw_spinlock *lock, unsigned long flags) { +#ifdef CONFIG_SMP __raw_spin_lock(lock); +#endif } struct pv_lock_ops pv_lock_ops = { -- 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/