From patchwork Sun Jul 9 10:05:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng X-Patchwork-Id: 117494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4392493vqx; Sun, 9 Jul 2023 04:33:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFcXOEVS32E2LD6cIc8v5u7UE9BvFE9FbpyCNFpAsqB1ld13CwaRW7V7EcGALplJzNzIDZK X-Received: by 2002:a17:90b:33c8:b0:25b:f105:8372 with SMTP id lk8-20020a17090b33c800b0025bf1058372mr19470136pjb.5.1688902400729; Sun, 09 Jul 2023 04:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688902400; cv=none; d=google.com; s=arc-20160816; b=h5Sg/HpJooGpmrJJquEXsexujpRlANdL6L9C2T84NWC1vLkKR7Cum/SxjyZ/a4sHJY buB56/1b4sbTP/sLvJTdvSsSo92Nj8qy5/gOdBPYbBpkje5M+DnVEtKVC0xs4Lgy3lS1 zPmDslcIC+jPUN2Se1+0mbW25elgdBB4j5vbxVJgHhH7QMZifin/MQS3bo+VdW/wX0Bb LXgyI2KNnE7MAiPlnX9ib4mQujEHwhigVu9b1RZwHpNcCO5ZfQS9wUSqsz6sqeu4BAJk cat6ugf/CMPQPoWiztuJlrgG4DwaAhMVG63m4X+7K4VmtOy17/FBvn2mUOKXjjpKvK6m iutA== 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=17qjbJxdwNA/2om8EJ9Jmhmd0BNGoMfgObUp22/c9NA=; fh=POt4Qf1H9UORbehqmmk2z+TpwfXbiW9XTs5qrSj/AwE=; b=z0dHmWCxkT5Cz/ct6zQkNFurnHQtPzzLiTaeCKh6dr1ZWJRe4X8h7M31RRzd4soC1C UGiuM/BJJjobA0VdyxcOuTxsPvlqcXI1emFWfwenPNJs/F08CQHFNTXCxSvSYm0voMZT dhQEvWMXhDmN8q2erNPxrj6w7YW4aInQ9TnlwwRdnYxeVib4JLj1TyThWM9ixQp22VHN f3u/LPGE2tCnCv91LBoYBwCkfPEwvO3hVNfcBh5aNDuV0YoZEq9BRdjQqyhL5JzsK6mh vSI9Jnc6Tsag6wgaZMm1RkJrzsvLomZ+9an3zxeuBLQ2UtXWcXsMPy4qTKQLI9+Z7NLR /GzQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e16-20020a17090ac21000b00259a3c7fb52si5426482pjt.27.2023.07.09.04.33.08; Sun, 09 Jul 2023 04:33:20 -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 S230082AbjGIKF0 (ORCPT + 99 others); Sun, 9 Jul 2023 06:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjGIKFY (ORCPT ); Sun, 9 Jul 2023 06:05:24 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0DDCE130; Sun, 9 Jul 2023 03:05:21 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8BxpPBehqpkpXECAA--.7494S3; Sun, 09 Jul 2023 18:05:18 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Ax98xchqpkDh4lAA--.20909S2; Sun, 09 Jul 2023 18:05:16 +0800 (CST) From: Sui Jingfeng To: Deepak Rawat , David Airlie , Daniel Vetter , Michael Kelley , Thomas Zimmermann , Javier Martinez Canillas , Arnd Bergmann Cc: linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] drm/hyperv: Fix a compilation issue because of not including screen_info.h Date: Sun, 9 Jul 2023 18:05:14 +0800 Message-Id: <20230709100514.703759-1-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Ax98xchqpkDh4lAA--.20909S2 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj93XoW7tFyxArWDXr1kXw15Jw4fZwc_yoW8AFWUpF 4kAFyayrW0yr47K39xCFn2yF1Ygwn8Ja4UuF9xA3s0qa4UAa4UXa9rur9FkrWDJr1akF1S qr1DJrW5ua1UCwcCm3ZEXasCq-sJn29KB7ZKAUJUUUUx529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUB0b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr0_Gr1UM2kKe7AKxVWUAVWUtwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYI kI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUAVWU twAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI4 8JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMxCIbckI1I0E14v26r126r1DMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwV AFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv2 0xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4 v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AK xVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU2txhDUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770942523607156898?= X-GMAIL-MSGID: =?utf-8?q?1770942523607156898?= drivers/video/fbdev/hyperv_fb.c: In function 'hvfb_getmem': >> drivers/video/fbdev/hyperv_fb.c:1033:24: error: 'screen_info' undeclared (first use in this function) 1033 | base = screen_info.lfb_base; | ^~~~~~~~~~~ drivers/video/fbdev/hyperv_fb.c:1033:24: note: each undeclared identifier is reported only once for each function it appears in Reviewed-by: Thomas Zimmermann Reviewed-by: Michael Kelley --- drivers/gpu/drm/hyperv/hyperv_drm_drv.c: In function 'hyperv_setup_vram': >> drivers/gpu/drm/hyperv/hyperv_drm_drv.c:75:54: error: 'screen_info' undeclared (first use in this function) 75 | drm_aperture_remove_conflicting_framebuffers(screen_info.lfb_base, | ^~~~~~~~~~~ drivers/gpu/drm/hyperv/hyperv_drm_drv.c:75:54: note: each undeclared identifier is reported only once for each function it appears in Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202307090823.nxnT8Kk5-lkp@intel.com/ Fixes: 81d2393485f0 ("fbdev/hyperv-fb: Do not set struct fb_info.apertures") Fixes: 8b0d13545b09 ("efi: Do not include from EFI header") Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_drv.c b/drivers/gpu/drm/hyperv/hyperv_drm_drv.c index a7d2c92d6c6a..8026118c6e03 100644 --- a/drivers/gpu/drm/hyperv/hyperv_drm_drv.c +++ b/drivers/gpu/drm/hyperv/hyperv_drm_drv.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include