Message ID | 202312151755+0800-wangjinchao@xfusion.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-708-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp9156834dys; Fri, 15 Dec 2023 01:56:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7QaRjXYdb2pOCDTQ0ggBcFBeoambbNqJpGb/Fe2ebVhISqVxLLsoE+9tFhkXRgUhdheva X-Received: by 2002:ac8:5747:0:b0:423:8a45:2508 with SMTP id 7-20020ac85747000000b004238a452508mr16538650qtx.29.1702634163949; Fri, 15 Dec 2023 01:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702634163; cv=none; d=google.com; s=arc-20160816; b=m3XI60yeYWyQe0GH7NeFJrEKL7U3yPOaA4RorsrF745c/UdH2uxUJRX1G/1spmV9t9 anYoAOej4fdgDjvmZpYpEOkHlFT+23i56pS4Eup+xbn78pW/X2JuGmnD3SUhCh9PTeJ+ Gl5t2lfkDyNmQP3XeDdCUpi3rto262be3lurZN1EaXoAiNp6tcrVDpZFJxPr1CfLhdHf pHSoxG/wNUG/iZzt+ym2IePRnUp5P9HodMtza/T7wJOFyYt554InV5k+Plb1ndSelhpw gWmGTVSrDh1pmNWY+LcKderjR+HtCdiPslBJ4beuYmFB9DRzFZT1US9/A8w5J4bc5MZd r0xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date; bh=RAa4G/nhx/OIaF/Tte0rLxsHX5bYUw2UbIobioeSOrA=; fh=mVqnWfOV8dMq4ycHHT2mBMAah2HCWayynH00lsizAKk=; b=iwXDEf0lUZDcRZ66lPPxNF0C6Mm4qQRcJmoHQC5Nr+eb7qoek+tqsG6wz7giU9obMi KSt6QQLPlVkYPQsaJs38G+82rH8j/U2EMhNnm4X/WnXPMmY8R4rCG/0yNgz1KyxenvYo aVHCQ9KWcyYkAb+7REeq+LFnEv8OzzPqU1Dwv8hAWlzX33YaPt4E1p3VbEN63Q3P78Jn 11vmkQb2igTei3K7vLCxgBhKtaKm4Gv+cgUBWECJAh6/uvar2ZtSNfBNpNrhs8BXW8qc 0nxS0sow86TY7V+5cWdvCkIDxeocfWf8MtoO8qnVLFkNxDUKIxshGyXN5wbDw6Z6DNUL BaBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-708-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-708-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s29-20020a05622a1a9d00b004236e4bcc81si17955391qtc.543.2023.12.15.01.56.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 01:56:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-708-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-708-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-708-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BD3CC1C22220 for <ouuuleilei@gmail.com>; Fri, 15 Dec 2023 09:56:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6ECB1A71F; Fri, 15 Dec 2023 09:55:41 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7156E199C5 for <linux-kernel@vger.kernel.org>; Fri, 15 Dec 2023 09:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xfusion.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xfusion.com Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4Ss4JC5WFwzB1wtN; Fri, 15 Dec 2023 17:52:11 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 15 Dec 2023 17:55:34 +0800 Date: Fri, 15 Dec 2023 17:55:34 +0800 From: Wang Jinchao <wangjinchao@xfusion.com> To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, <x86@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>, <linux-kernel@vger.kernel.org> CC: <stone.xulei@xfusion.com>, <wangjinchao@xfusion.com> Subject: [PATCH] x86/setup: remove duplicated including Message-ID: <202312151755+0800-wangjinchao@xfusion.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-ClientProxiedBy: wuxshcsitd00602.xfusion.com (10.32.132.250) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785341320996257338 X-GMAIL-MSGID: 1785341320996257338 |
Series |
x86/setup: remove duplicated including
|
|
Commit Message
Wang Jinchao
Dec. 15, 2023, 9:55 a.m. UTC
rm the second #include <asm/efi.h> in setup.c
rm the second #include <asm/spec-ctrl.h> in smpboot.c
Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com>
---
arch/x86/kernel/setup.c | 1 -
arch/x86/kernel/smpboot.c | 1 -
2 files changed, 2 deletions(-)
Comments
How about rewording the above to? "x86/setup: Remove duplicate header includes" On 12/15/2023 3:25 PM, Wang Jinchao wrote: > rm the second #include <asm/efi.h> in setup.c > rm the second #include <asm/spec-ctrl.h> in smpboot.c Actually, these two lines are evident from the diff itself. You can remove both of them. If you really want to have some text in the commit message you can probably just say: efi.h and spec-ctrl.h are included twice. Remove the duplicate entries. > > Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com> > --- > arch/x86/kernel/setup.c | 1 - > arch/x86/kernel/smpboot.c | 1 - > 2 files changed, 2 deletions(-) > With the above changes, please feel free to add: Reviewed-by: Sohil Mehta <sohil.mehta@intel.com> > diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c > index 1526747bedf2..f6152c6b139a 100644 > --- a/arch/x86/kernel/setup.c > +++ b/arch/x86/kernel/setup.c > @@ -37,7 +37,6 @@ > #include <asm/bugs.h> > #include <asm/cacheinfo.h> > #include <asm/cpu.h> > -#include <asm/efi.h> > #include <asm/gart.h> > #include <asm/hypervisor.h> > #include <asm/io_apic.h> > diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c > index 2cc2aa120b4b..45057860e034 100644 > --- a/arch/x86/kernel/smpboot.c > +++ b/arch/x86/kernel/smpboot.c > @@ -87,7 +87,6 @@ > #include <asm/hw_irq.h> > #include <asm/stackprotector.h> > #include <asm/sev.h> > -#include <asm/spec-ctrl.h> > > /* representing HT siblings of each logical CPU */ > DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);
On Mon, Dec 18, 2023 at 05:27:46PM +0530, Sohil Mehta wrote: > How about rewording the above to? > > "x86/setup: Remove duplicate header includes" > > On 12/15/2023 3:25 PM, Wang Jinchao wrote: > > rm the second #include <asm/efi.h> in setup.c > > > rm the second #include <asm/spec-ctrl.h> in smpboot.c > > Actually, these two lines are evident from the diff itself. You can > remove both of them. If you really want to have some text in the commit > message you can probably just say: > > efi.h and spec-ctrl.h are included twice. Remove the duplicate entries. > > > > > Signed-off-by: Wang Jinchao <wangjinchao@xfusion.com> > > --- > > arch/x86/kernel/setup.c | 1 - > > arch/x86/kernel/smpboot.c | 1 - > > 2 files changed, 2 deletions(-) > > > > With the above changes, please feel free to add: > > Reviewed-by: Sohil Mehta <sohil.mehta@intel.com> > Thanks for the suggestion, which has been applied to the v2 patch.
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 1526747bedf2..f6152c6b139a 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -37,7 +37,6 @@ #include <asm/bugs.h> #include <asm/cacheinfo.h> #include <asm/cpu.h> -#include <asm/efi.h> #include <asm/gart.h> #include <asm/hypervisor.h> #include <asm/io_apic.h> diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 2cc2aa120b4b..45057860e034 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -87,7 +87,6 @@ #include <asm/hw_irq.h> #include <asm/stackprotector.h> #include <asm/sev.h> -#include <asm/spec-ctrl.h> /* representing HT siblings of each logical CPU */ DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_sibling_map);