Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2891639rwb; Mon, 15 Aug 2022 13:26:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR4W5vIH85RsgksBiX/GXki/Pn9sdkEiRUVOAVFwfKHPTUT4SLPkff3ejRSvrEuhBC/PetL7 X-Received: by 2002:a05:6402:292:b0:43c:ee5e:a5da with SMTP id l18-20020a056402029200b0043cee5ea5damr15982851edv.181.1660595174713; Mon, 15 Aug 2022 13:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660595174; cv=none; d=google.com; s=arc-20160816; b=wlJzWbL3/WBlrWfPj1vRohVZO/kZwmBDJqK7bkR3lbCTrBeTRxG6vSWe4dcLYeiWnP kYDjNm8RiqytrRn7FwYF8dhX7zt39ZlIB3tuwZgh7csrBXQJ1nW+Nw7blAL/q/73Ak+p 76hd8SA8/Sy/I9Emle3gFnQ5RFUv1s3o/OBh/74/0nXXpa3OL/E8zJlcO7pGbpuH2hQu 8hQ8NJqaWda0xFXZr3bAv9AlEDYMiUBRv+1N3lwODKFvIlNwlOa2tSTqNJTfmsA859SJ wEichkwxMTCdo3/EsWrll1Ama1/QMETz9wUpvJDWb7qdnWfD/Wl4JVqXvOmiUpsi/so6 PHHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mSeqC1tvNwAqRRfVfZV5vcaEjcFdrtNwpPfEFjMAom8=; b=ZedepmAQX0j5v5UWrm+JxQJTbSSaArk7Pyut/dCicfN2WgdyMqOyEHdoBWo+582rLN spPp2qEdVqLyD9TleDED28skhUXvc7c5eZJQ5twBlvcvz+pUxgalVddfg1MdyhAj/eM+ DESJD6aNqYX7kuuHK8s73pYQjhgimXvY99ls6MZUYjyaMebhK/JmSh/L12XFGsJnbCE2 OS4u0VcaaXMhseW6IZzNdQX7VHZ1l685jP8Vwv0n8f4nXGiy4REYmAkqDrASlHyS4s/O WeLydT51ztztuZCIAWnbKL14TulxS6c0kfwjdqou4B6S+zBo9tr8lvnZxXo4mF9x6tg+ nBtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=msGIP1HD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a1709065d0300b007317274bb0dsi9010729ejt.979.2022.08.15.13.25.39; Mon, 15 Aug 2022 13:26:14 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=msGIP1HD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346840AbiHOUQ2 (ORCPT + 99 others); Mon, 15 Aug 2022 16:16:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346648AbiHOULy (ORCPT ); Mon, 15 Aug 2022 16:11:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A275549B52; Mon, 15 Aug 2022 11:58:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3EB7DB810A1; Mon, 15 Aug 2022 18:58:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68762C433C1; Mon, 15 Aug 2022 18:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589882; bh=VZdlmM1yI6DDiCaE7reYOZ8qKqKYhTpxSZQNW8mwYrA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=msGIP1HDYk5KxLDjeDYGm0Gcx986g/CmOgNmmDjEnqOqiWJ3xR9EYcAFsjmDXaqzS T4ErQ9dHYoFbzdvfSLHK9wL5TsWG0HYl/UhYQhJPJ4aCPJbOH5OKxtePBVWhSCp0ax 2RM2v36czVcDkWPBBU6iomT6U/GxkPWDUJlKqVkM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Zimmermann , Deepak Rawat , Maarten Lankhorst , Maxime Ripard , linux-hyperv@vger.kernel.org, dri-devel@lists.freedesktop.org, Maxime Ripard , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Subject: [PATCH 5.18 0079/1095] drm/hyperv-drm: Include framebuffer and EDID headers Date: Mon, 15 Aug 2022 19:51:18 +0200 Message-Id: <20220815180432.787310852@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Thomas Zimmermann commit 009a3a52791f31c57d755a73f6bc66fbdd8bd76c upstream. Fix a number of compile errors by including the correct header files. Examples are shown below. ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c: In function 'hyperv_blit_to_vram_rect': ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:25:48: error: invalid use of undefined type 'struct drm_framebuffer' 25 | struct hyperv_drm_device *hv = to_hv(fb->dev); | ^~ ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c: In function 'hyperv_connector_get_modes': ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:59:17: error: implicit declaration of function 'drm_add_modes_noedid' [-Werror=implicit-function-declaration] 59 | count = drm_add_modes_noedid(connector, | ^~~~~~~~~~~~~~~~~~~~ ../drivers/gpu/drm/hyperv/hyperv_drm_modeset.c:62:9: error: implicit declaration of function 'drm_set_preferred_mode'; did you mean 'drm_mm_reserve_node'? [-Werror=implicit-function-declaration] 62 | drm_set_preferred_mode(connector, hv->preferred_width, | ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Thomas Zimmermann Fixes: 76c56a5affeb ("drm/hyperv: Add DRM driver for hyperv synthetic video device") Fixes: 720cf96d8fec ("drm: Drop drm_framebuffer.h from drm_crtc.h") Fixes: 255490f9150d ("drm: Drop drm_edid.h from drm_crtc.h") Cc: Deepak Rawat Cc: Thomas Zimmermann Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: linux-hyperv@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: # v5.14+ Acked-by: Maxime Ripard Reviewed-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/20220622083413.12573-1-tzimmermann@suse.de Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/hyperv/hyperv_drm_modeset.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c +++ b/drivers/gpu/drm/hyperv/hyperv_drm_modeset.c @@ -7,9 +7,11 @@ #include #include +#include #include #include #include +#include #include #include #include