Message ID | 20231212003825.70297-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7428733vqy; Mon, 11 Dec 2023 16:38:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmecN3nCVkn7TTnvpZunpE0TNoKEGbjiheTdCpKswBnbpuTNWFOQC6opSrjxVfZgZVP9Yz X-Received: by 2002:a17:90b:104c:b0:286:d6f6:102c with SMTP id gq12-20020a17090b104c00b00286d6f6102cmr2539892pjb.48.1702341519775; Mon, 11 Dec 2023 16:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702341519; cv=none; d=google.com; s=arc-20160816; b=LhyEV+TWHWLdpwNlMOXa66CPsXFKSsetfjOyhNjVYwdlKeoNrMmxtR2paTUtNGBLtS 5XxPlPuXjru5sAk23eJeeNbnTAvHZKItxXJVlKrG/OAzvDTHcQ8h5wJssJvGK53+jAiS 9B+9a9CN2NB4w/ty0GEtEiM/ZlGvlWbee9aiQMMQiws7Xvm9URuD22se0wQ1bE4HZKbZ xitiWujTSLmplpvMk22lxYBKkfgap29H2UPF0w+qEpMKcZfAmLWvz2U0TkXmDWfptOTl 66AXaVoKgtCPq7ZenBumqsp2+jT86fyzijSAvRmSjZZg6uNVYrHXEovtyUBzZIuObpd9 DaAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cb9QI9T+C6Ply+3q5a9E1rA0gddwXGV6DGglA0RtiXE=; fh=vKK+dFUFvKhe+w+bJZsRE9tecrzMK874izVnJUxB7A4=; b=XnFDrtBQG1rbCrcn9GdmT538Je66ndfEKTsRxE1+xc5D40WMBZjkrjWHaVz9GOdR9C 1IjO6IcQrG5S44xPbo5xDUj6HDrdu28KHz/X5IuzXbAhiNlZbiuPjMXv5P9ahvXAKkUy sYqpcOw01Q6lgcDJb1/i5CILmHvkBIQl5qMXQD2jfPjpgUXIMJVtoMFiUKk952YOm2sf nMDOzoF1jPHcuoUNEVlmq1SiAzbUwKr26c2dWopICGqXgF94IcaZYlqGsaEDlyvPxKef 3vKiOFhg68jwWQSYeUPx/RkF1zqhX/K7COKJfPfr9qqFpJguWF0EiUhbh1XUcXO8LdUg GWxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d24-20020a17090ab31800b0028a9b910230si2004042pjr.116.2023.12.11.16.38.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 16:38:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 461E0809EE32; Mon, 11 Dec 2023 16:38:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345477AbjLLAiY (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Mon, 11 Dec 2023 19:38:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345471AbjLLAiX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 11 Dec 2023 19:38:23 -0500 Received: from out30-112.freemail.mail.aliyun.com (out30-112.freemail.mail.aliyun.com [115.124.30.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3624A2 for <linux-kernel@vger.kernel.org>; Mon, 11 Dec 2023 16:38:29 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VyKODcO_1702341506; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VyKODcO_1702341506) by smtp.aliyun-inc.com; Tue, 12 Dec 2023 08:38:27 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: mingo@redhat.com, tglx@linutronix.de, x86@kernel.org Cc: hpa@zytor.com, kirill.shutemov@linux.intel.com, dave.hansen@linux.intel.com, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com>, Abaci Robot <abaci@linux.alibaba.com> Subject: [PATCH -next] x86/virt/tdx: Remove duplicated include in tdx.c Date: Tue, 12 Dec 2023 08:38:25 +0800 Message-Id: <20231212003825.70297-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 16:38:33 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785034461343990182 X-GMAIL-MSGID: 1785034461343990182 |
Series |
[-next] x86/virt/tdx: Remove duplicated include in tdx.c
|
|
Commit Message
Yang Li
Dec. 12, 2023, 12:38 a.m. UTC
The header files linux/acpi.h and asm/cpufeature.h are both
included twice in C, so one inclusion of each can be removed.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7713
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
arch/x86/virt/vmx/tdx/tdx.c | 2 --
1 file changed, 2 deletions(-)
Comments
On Tue, 2023-12-12 at 08:38 +0800, Yang Li wrote: > The header files linux/acpi.h and asm/cpufeature.h are both > included twice in C, so one inclusion of each can be removed. > > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7713 > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Reviewed-by: Kai Huang <kai.huang@intel.com> > --- > arch/x86/virt/vmx/tdx/tdx.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c > index 13df68ef40b5..49a1c6890b55 100644 > --- a/arch/x86/virt/vmx/tdx/tdx.c > +++ b/arch/x86/virt/vmx/tdx/tdx.c > @@ -27,14 +27,12 @@ > #include <linux/log2.h> > #include <linux/acpi.h> > #include <linux/suspend.h> > -#include <linux/acpi.h> > #include <asm/page.h> > #include <asm/special_insns.h> > #include <asm/msr-index.h> > #include <asm/msr.h> > #include <asm/cpufeature.h> > #include <asm/tdx.h> > -#include <asm/cpufeature.h> > #include <asm/intel-family.h> > #include <asm/processor.h> > #include <asm/mce.h>
On Tue, Dec 12, 2023 at 08:38:25AM +0800, Yang Li wrote: > The header files linux/acpi.h and asm/cpufeature.h are both > included twice in C, so one inclusion of each can be removed. > > Reported-by: Abaci Robot <abaci@linux.alibaba.com> > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7713 > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
On 12/11/23 16:38, Yang Li wrote: > The header files linux/acpi.h and asm/cpufeature.h are both > included twice in C, so one inclusion of each can be removed. Thanks for the report. I've just squashed this back into the culprit patch.
diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c index 13df68ef40b5..49a1c6890b55 100644 --- a/arch/x86/virt/vmx/tdx/tdx.c +++ b/arch/x86/virt/vmx/tdx/tdx.c @@ -27,14 +27,12 @@ #include <linux/log2.h> #include <linux/acpi.h> #include <linux/suspend.h> -#include <linux/acpi.h> #include <asm/page.h> #include <asm/special_insns.h> #include <asm/msr-index.h> #include <asm/msr.h> #include <asm/cpufeature.h> #include <asm/tdx.h> -#include <asm/cpufeature.h> #include <asm/intel-family.h> #include <asm/processor.h> #include <asm/mce.h>