Received: by 10.223.164.202 with SMTP id h10csp3809616wrb; Mon, 20 Nov 2017 05:28:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMYkYiCmVJW4221q5Ltcv2/6S37AdB+WrLsgcPAJbuzKVs/qVAIinMY5CF33wDMd0IZ1pRz2 X-Received: by 10.84.217.80 with SMTP id e16mr14218721plj.373.1511184522601; Mon, 20 Nov 2017 05:28:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511184522; cv=none; d=google.com; s=arc-20160816; b=Ob/rgo9afGpk4HNqIonvrAoOZQ4yzK+1N8zDbPbOFwcoP9H9dvp5NftLQay2arqlQr zFvTw1v/P1WaHcIgT2qw5ezH+yTAPT1RxvoANWywWy5gR7VC1PloY/gbRfHjCLXecG57 yQPN1AAl2U2NQ06t33y1AnEaJ/Pq9pMrzOPBH4SmRyqR7ipy6D2/3rkXEdZJExQ/v/I5 hXwvl5ty8+9kDHFsocJaxr+pDSz3JD9nl4jPnGOj3j/mQCB0OYCPLuRrbPQI2URA/rtv eVi1t6tgyO75PDsR5Fswge7DsxqDNfCsQSU4udSuyI7xk5Cifnh0Z5E5kXheKJTSeJR5 pByg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=gsloC9rlvFtPBkdTqkWkGaeOkoKPlbKOo3vP7Da42Do=; b=G/we4sTWj79NpqwMJ/rDRVpnvxwiOLEKdVLePRz1jZdAm4byxq39OUkkmrlgSlsyyt E0MGgU63IPx155NL16Q4ig2RQqczyIEevqW/fZRnHKaSFHOeAMWRKLSgBZc+G0JYfspZ UIfWghDBu2FXJ4arz6gQmJieg/Auo5linQwl7SOR3csPds4DSshgx8/2vNaSkwKOc0u/ ZerkvVJPKsOYecc4pIKdsMAD4ELGpzU0X9kvGPLWAgD1oLAA7ZzuoidgRr5+dSJPYa6M jCkr674TdLgcrFe/2CXjuPOS8yUjG72fAqZVV4w3CFARgrWQErOiyyOuazPWGw+4RzHk 8ECg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si5916739plk.507.2017.11.20.05.28.32; Mon, 20 Nov 2017 05:28:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751307AbdKTN1h (ORCPT + 66 others); Mon, 20 Nov 2017 08:27:37 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:29180 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751272AbdKTN1f (ORCPT ); Mon, 20 Nov 2017 08:27:35 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="30314858" Received: from localhost (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 20 Nov 2017 21:27:30 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id CA9D7487AFB0; Mon, 20 Nov 2017 21:27:25 +0800 (CST) Received: from localhost.localdomain.localdomain (10.167.226.106) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 20 Nov 2017 21:27:27 +0800 From: Dou Liyang To: , CC: , , , , , , Dou Liyang Subject: [PATCH 1/3] x86/apic: Avoid wrong warning when parsing 'apic=' in X86-32 case. Date: Mon, 20 Nov 2017 21:27:10 +0800 Message-ID: <1511184432-28158-1-git-send-email-douly.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.106] X-yoursite-MailScanner-ID: CA9D7487AFB0.A1D07 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: douly.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are two consumers of apic=: apic_set_verbosity() for setting the APIC debug level; parse_apic() for registering APIC driver by hand. In X86-32 arch, when kernel was booted up with 'apic=bigsmp' in command line, early_param would warn like that: ... [ 0.000000] APIC Verbosity level bigsmp not recognised use apic=verbose or apic=debug [ 0.000000] Malformed early option 'apic' ... This is a mistake and noise. Wrap the warning code in CONFIG_X86_64 case to avoid this. Signed-off-by: Dou Liyang --- arch/x86/kernel/apic/apic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 6e272f3..880441f 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c @@ -2626,11 +2626,13 @@ static int __init apic_set_verbosity(char *arg) apic_verbosity = APIC_DEBUG; else if (strcmp("verbose", arg) == 0) apic_verbosity = APIC_VERBOSE; +#ifdef CONFIG_X86_64 else { pr_warning("APIC Verbosity level %s not recognised" " use apic=verbose or apic=debug\n", arg); return -EINVAL; } +#endif return 0; } -- 2.5.5 From 1584466296130868069@xxx Sun Nov 19 04:13:31 +0000 2017 X-GM-THRID: 1584466296130868069 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread