Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28386305rwd; Tue, 4 Jul 2023 18:57:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlGkMfRF1AaYaOSxesrpfsuzgcXhBfXayNlK+DlCQi0/bECqklqlMGPEx0U7ybABNK9l3mjI X-Received: by 2002:a17:903:191:b0:1b8:9461:6729 with SMTP id z17-20020a170903019100b001b894616729mr10165285plg.2.1688522262693; Tue, 04 Jul 2023 18:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688522262; cv=none; d=google.com; s=arc-20160816; b=db4t87y14tnJyOzn7qBnBY20E7WurP6GSZIwKf03CnWOl9TBMBjOLHpVxxjVMsA6q2 5ujvCOcxEhUcO9LQvHOfUzSAnu4VLYOPjdBmki5s4nrYB0O65jp7eiNFaiu8AGBlUp24 3CVjO5AEBYyVtLa9Gv7qyePRGu6I2ozEVnK40f1Q+/y+JTp8y1T1cJ0U6cz2QYYRhJcq U5/fQrxPJJkHAtQnZD1sC+5SRNSYbCiLx2AUlemZ1+/IiXqCoYfFe/HWbI0RZTdOS04S 2INyGZ1aZOJ3IQanYXqibjRCf+iKHN/DhrixhfDLDyaUJ754FeKU0EP1lfKiLuhpM4Yv sdCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=tdV/yT/QL+Dd/4qeqsUySGbh4/7I0XceuViUrNwt54Q=; fh=Ev+Zo1f6V6yVrlVethPyxaZu4Zq4kn6VQm6gglMYuTg=; b=lN5kKVf4yIxpXnPZtKFti0IsUr6E/p3y+r4gjhpV+HPwR0WcO3QbF8IIJVw8G3rIs6 rfgDUeusdfAoVJ+QOrS8PV9cx4Psgs2kyQgPHCcX8/BYI2uHAcpASTa/48/UXvjVqwDm 8fhrtZlEpbrY6Yp0DtkeB6BcW43JK9l451pXUzhEfIg7XcuIFbtk9kBlVRp3sFV2RyGd nJIPdE404awH37UI3B0HQV4vjLv5szEDh1DdMfMu7KInF2TxRa6BA8ktaJikp15SQF6Y +L2smUuMzXiOjq/e7L39QM6FEelFykCWpF47CWeDVHF3/JEHDt9wOtPOHaNPWz6yFuqg K95A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a170902b68700b001b3cf7eb499si20538816pls.633.2023.07.04.18.57.26; Tue, 04 Jul 2023 18:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbjGEBkZ (ORCPT + 99 others); Tue, 4 Jul 2023 21:40:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjGEBkX (ORCPT ); Tue, 4 Jul 2023 21:40:23 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 644E3DD; Tue, 4 Jul 2023 18:40:15 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Dxg_D9yaRkhS4AAA--.936S3; Wed, 05 Jul 2023 09:40:13 +0800 (CST) Received: from [10.20.42.43] (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8CxriP6yaRkBM0bAA--.44417S3; Wed, 05 Jul 2023 09:40:10 +0800 (CST) Message-ID: <26e355dd-049c-fa82-dc5d-565b86339253@loongson.cn> Date: Wed, 5 Jul 2023 09:40:10 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [01/12] efi: Do not include from EFI header Content-Language: en-US To: Thomas Zimmermann , arnd@arndb.de, deller@gmx.de, daniel@ffwll.ch, airlied@gmail.com Cc: linux-hyperv@vger.kernel.org, linux-efi@vger.kernel.org, linux-ia64@vger.kernel.org, linux-sh@vger.kernel.org, Catalin Marinas , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mips@vger.kernel.org, sparclinux@vger.kernel.org, linux-riscv@lists.infradead.org, Will Deacon , Ard Biesheuvel , linux-arch@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-staging@lists.linux.dev, Russell King , linux-csky@vger.kernel.org, loongarch@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <20230629121952.10559-2-tzimmermann@suse.de> From: Sui Jingfeng In-Reply-To: <20230629121952.10559-2-tzimmermann@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8CxriP6yaRkBM0bAA--.44417S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoWxGF1DKFy5Wr47KF13Gw1ktFc_yoWrGF1rpa 1DCF4xAw4DGF4rGas5uw17uF1DXws8Gr9FgF9F9r10y347tr1vqrs5urnIkr1DXFWUKw10 gFy5tw1Yka4DXwcCm3ZEXasCq-sJn29KB7ZKAUJUUUUd529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KB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n_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thomas I love your patch, LoongArch also have UEFI GOP support, Maybe the arch/loongarch/kernel/efi.c don't include the '#include ' explicitly. ``` diff --git a/arch/loongarch/kernel/efi.c b/arch/loongarch/kernel/efi.c index 3d448fef3af4..04f4d217aefb 100644 --- a/arch/loongarch/kernel/efi.c +++ b/arch/loongarch/kernel/efi.c @@ -19,6 +19,7 @@  #include  #include  #include +#include  #include  #include ``` On 2023/6/29 19:45, Thomas Zimmermann wrote: > The header file does not need anything from > . Declare struct screen_info and remove > the include statements. Update a number of source files that > require struct screen_info's definition. > > Signed-off-by: Thomas Zimmermann > Cc: Ard Biesheuvel > Cc: Russell King > Cc: Catalin Marinas > Cc: Will Deacon > Reviewed-by: Javier Martinez Canillas With the above issue solved, please take my R-B if you would like. Reviewed-by: Sui Jingfeng > --- > arch/arm/kernel/efi.c | 2 ++ > arch/arm64/kernel/efi.c | 1 + > drivers/firmware/efi/libstub/efi-stub-entry.c | 2 ++ > drivers/firmware/efi/libstub/screen_info.c | 2 ++ > include/linux/efi.h | 3 ++- > 5 files changed, 9 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/kernel/efi.c b/arch/arm/kernel/efi.c > index e2b9d2618c672..e94655ef16bb3 100644 > --- a/arch/arm/kernel/efi.c > +++ b/arch/arm/kernel/efi.c > @@ -5,6 +5,8 @@ > > #include > #include > +#include > + > #include > #include > #include > diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c > index baab8dd3ead3c..3afbe503b066f 100644 > --- a/arch/arm64/kernel/efi.c > +++ b/arch/arm64/kernel/efi.c > @@ -9,6 +9,7 @@ > > #include > #include > +#include > > #include > #include > diff --git a/drivers/firmware/efi/libstub/efi-stub-entry.c b/drivers/firmware/efi/libstub/efi-stub-entry.c > index cc4dcaea67fa6..2f1902e5d4075 100644 > --- a/drivers/firmware/efi/libstub/efi-stub-entry.c > +++ b/drivers/firmware/efi/libstub/efi-stub-entry.c > @@ -1,6 +1,8 @@ > // SPDX-License-Identifier: GPL-2.0-only > > #include > +#include > + > #include > > #include "efistub.h" > diff --git a/drivers/firmware/efi/libstub/screen_info.c b/drivers/firmware/efi/libstub/screen_info.c > index 4be1c4d1f922b..a51ec201ca3cb 100644 > --- a/drivers/firmware/efi/libstub/screen_info.c > +++ b/drivers/firmware/efi/libstub/screen_info.c > @@ -1,6 +1,8 @@ > // SPDX-License-Identifier: GPL-2.0 > > #include > +#include > + > #include > > #include "efistub.h" > diff --git a/include/linux/efi.h b/include/linux/efi.h > index 571d1a6e1b744..360895a5572c0 100644 > --- a/include/linux/efi.h > +++ b/include/linux/efi.h > @@ -24,10 +24,11 @@ > #include > #include > #include > -#include > > #include > > +struct screen_info; > + > #define EFI_SUCCESS 0 > #define EFI_LOAD_ERROR ( 1 | (1UL << (BITS_PER_LONG-1))) > #define EFI_INVALID_PARAMETER ( 2 | (1UL << (BITS_PER_LONG-1)))