Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3083870rwb; Mon, 15 Aug 2022 17:44:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4oT0w8MZk6g3yqWjP+2++H4t2Q1alwhk1S7H6ixsfgOvhEVLHmJVLRLKZGndVBfMO5+hqO X-Received: by 2002:a17:907:2ceb:b0:730:e0ce:34f1 with SMTP id hz11-20020a1709072ceb00b00730e0ce34f1mr11578167ejc.293.1660610644180; Mon, 15 Aug 2022 17:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610644; cv=none; d=google.com; s=arc-20160816; b=J92wMIRp6KXmqbKijgjk7FwjSBDvzwd4JKSRfCtLFWrYXmFNGLG5KsZWWVmAniKSRf Hzacuh8IMy/1Jmn29EDGkZy/H8N0jcIDM986HWEZH7NvtX2SJUiJkZtuZx8uzhH/+X0n 0qutfrL7kj6rzu1dtRTyrW7pVd2P54sPs08x6ACksSwGHxiRETd4JXSZ02mVEQrU22qk xuuobBr0Ddte30rPMqYbQtuuvSOV0/I4Y4MkSBJP1w5Hyu6PSu9b6hPEWIWXQO9X0TTW uecUkVNpbHaHZKFfxTC3RVNXcQdTIBRqGG2m9jWczWdkl/eBSMQVAvwM9Rd9plYA6mDr 970Q== 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=eKQ32OSSKUQ3KthhC7de6a1O8TWOe29ESSe6YzjcAPgGYOkDOMlmUDZJplPBR3pd4K lF1LXHI2AvxdHd/i4B4v9TNVuxwTqpQu+uGIyVjQNUpRc95mq3nlR8md7/dVqDHqMmQm mphEV8bvld28pXF8kkBRZrFgTlebxYv7fXk27Gd0b+6J/Gstszae54DUvty4KWPZchMz 1+CgREHlgeA4+1kuDBPN6dh/KjL+msFBiByd46ZxpDVSlxJhUzFxvYcOvV4zWIAX2gAv ts5U4QIQJmoAr72PNsjSg5DrH3HvZig9rs2AWiz3JEgwJknA9M5+G0WCPZcYXKEwFIJP gZww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x+Y5fbzi; 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 oz11-20020a1709077d8b00b00730a65e581asi8795298ejc.750.2022.08.15.17.43.38; Mon, 15 Aug 2022 17:44:04 -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=x+Y5fbzi; 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 S1347713AbiHOWXS (ORCPT + 99 others); Mon, 15 Aug 2022 18:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350726AbiHOWSP (ORCPT ); Mon, 15 Aug 2022 18:18:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508D2124203; Mon, 15 Aug 2022 12:41:22 -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 73A92B80EA9; Mon, 15 Aug 2022 19:41:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AC9DC433C1; Mon, 15 Aug 2022 19:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592479; bh=VZdlmM1yI6DDiCaE7reYOZ8qKqKYhTpxSZQNW8mwYrA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x+Y5fbziQhKsn//QXaDcGNghp+kyOY5yRCSRH/8HoerahCmtbBCSgtEARoD9ZdK2b ch3risgZj+SJmQ8z1+pEuIboDYtDYJQIqgsMseruJRn37xCG5hupBo58K4JTna378l szBWfvhF179ACqDCKT0RF0K6hZ3+ilXZOeBboz7Q= 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.19 0087/1157] drm/hyperv-drm: Include framebuffer and EDID headers Date: Mon, 15 Aug 2022 19:50:43 +0200 Message-Id: <20220815180443.041121873@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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