Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2809975rwb; Mon, 15 Aug 2022 11:47:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR65TkNjBCPB75MwMp+kCzjL7f6/JqD9MjpD7hwl5OyqqRsL0Tt11RAPSs39GGSUJoZcfuqt X-Received: by 2002:aa7:dc0d:0:b0:443:e1ca:bdb1 with SMTP id b13-20020aa7dc0d000000b00443e1cabdb1mr3204519edu.62.1660589272816; Mon, 15 Aug 2022 11:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589272; cv=none; d=google.com; s=arc-20160816; b=aaLSv5kHT1wJV4KFaSqVb/4lyj3MDy5zl7bzutAhzz79khoFLfCD9tFLqsAw+k/pTV aAHMhCt+MBIIucv9bjnQwha/06hb11bAuIsCJIygNR0Hc+fDq/npbxsgsUtl7X56r9Os duNrdDHGdM7qgPeueyOC+uVRHCiw/sa4AbIhA7thFSImpX/e25ciK6GTP31RDGn6Boxl 6uPGVC0yqn7I2s1yji0UMp51yZyQ9NO88corHeHmOP98SLDborm602yd3oO+0QZSNMwu qEk6aOeXVWjzIwqXgJXhkzLRU3sbZvcU2GgGVEqLJSHT7BkS57rV9qmltpyLDRaMk6xl 58BA== 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=BjGYnVaVs7maVWrd/CiA+iAZVxTee3m/Q8EQRT0O/QyrqseGZba6HX19Ciuiz+7HuP uIpbQ0i4XFxphQjGgVrCUYWBvxeIfaHrd4N0CKN0cw6HmG4OKKWZz/2v3P7MPaxZuNVP yxB2OUk0A8aas+Q+SJRmLAuIiNeR0iFBi6GBw7JK9KVjJDFwkAzf4dHafk6WNS+/UsJE lcpbfW0ndJmpz4FGOs+jIyvbhlzFUU6QGiLZhBTk2mfZK/HS1r1JNigMEPnJtLlEZMQd EyDRReIT7iAcM0dQZMY8czCYiC2YY2/xA38r0+lZFaTINdq6Otq0ct1lDImWwmYRXPOy 7MXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=th86to2N; 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 di9-20020a170906730900b0072b67a5560fsi10399816ejc.1005.2022.08.15.11.47.27; Mon, 15 Aug 2022 11:47:52 -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=th86to2N; 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 S240321AbiHOSTm (ORCPT + 99 others); Mon, 15 Aug 2022 14:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239980AbiHOSSg (ORCPT ); Mon, 15 Aug 2022 14:18:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C8EB2A711; Mon, 15 Aug 2022 11:16:07 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AF5B161299; Mon, 15 Aug 2022 18:16:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8516BC433D6; Mon, 15 Aug 2022 18:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587366; bh=VZdlmM1yI6DDiCaE7reYOZ8qKqKYhTpxSZQNW8mwYrA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=th86to2NUpOUz0mjCLFyqIhLeUTqBo0K/3smbSigPhBpf2AdH7isOHykg5uPRUpiv nOA7nH4hUZrG/nP1s/9VhFrg5w8tiEa6dkyuiYOjXPz5UD2SOP5XX8OhLvqwEJCMNr je3RA71wGNpNzhujbb7wWPku311AJEv2I63H6LRo= 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.15 063/779] drm/hyperv-drm: Include framebuffer and EDID headers Date: Mon, 15 Aug 2022 19:55:07 +0200 Message-Id: <20220815180339.955043910@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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