From patchwork Fri Sep 20 08:21:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 13808304 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0EE98CF58EF for ; Fri, 20 Sep 2024 08:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8d3YNhYuLxM1H0i0z0B5EUdKa/EfM4RZ59JcpMMGsqY=; b=RsqSt70W3AMAIr GYwiCWFZ1k9C6qtjro+VhoyBg5zdmwAxN7Te1lpqg5273Y+ja8b4gwXFAoZNez2S7/WERs9CWLv/N iOtQSgrQRO1ShB/xLlI6ql4fa0aqPMGeUiP2P10t0yLuL6Il7XiM4igMK2OtfV+sBUj3wlwrkECNH +4PuEyQBvIpj6s+x71XcS2uTG8cKHBK6GBRtJNmpgZJiGeD7VqvpH67F6GK1unFU6BWoEI9ZRx4L8 iDRqkxcf+3ik5hESwWHvTJTBxVjfNxDQhGSI5gjR4WuS14lb1a/GFyLTbtBF5f79YHvvL3J5xBXKR yttr9vd9SUFWUj8EeEGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srZ7D-0000000Bn03-24zS; Fri, 20 Sep 2024 08:35:47 +0000 Received: from m16.mail.163.com ([220.197.31.3]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srYte-0000000Bjuq-1X0T; Fri, 20 Sep 2024 08:21:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=bxwDJ AkXvK8AdSR7veh+eMKRy+rJ61dS+tkTSOb3PvE=; b=W2T7HbBLhfMxj+T45i8BB X+sfflFZsdpik4Yj/CfQu00Nz2Tu4GUIvPK0r+tOhvNoQwN6Q0P1ij/YUxoYX4wb /RXFhkoDvGwGvYQvLkTLZSiab1h/xa0jBrKaL11u/r+SFq4VWTmAdLzfJTAGM6CG NIYDfuyJHevDCwP5n8GVhY= Received: from ProDesk.. (unknown [58.22.7.114]) by gzga-smtp-mta-g3-4 (Coremail) with SMTP id _____wD3X7mDMO1m_7DTEw--.2482S2; Fri, 20 Sep 2024 16:21:26 +0800 (CST) From: Andy Yan To: heiko@sntech.de Cc: hjc@rock-chips.com, krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, derek.foreman@collabora.com, minhuadotchen@gmail.com, detlev.casanova@collabora.com, Andy Yan Subject: [PATCH v3 06/15] drm/rockchip: vop2: include rockchip_drm_drv.h Date: Fri, 20 Sep 2024 16:21:21 +0800 Message-ID: <20240920082122.6742-1-andyshrk@163.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240920081626.6433-1-andyshrk@163.com> References: <20240920081626.6433-1-andyshrk@163.com> MIME-Version: 1.0 X-CM-TRANSID: _____wD3X7mDMO1m_7DTEw--.2482S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7Aw15AryUXr1xtry5JF43KFg_yoW8CF4UpF s8AFWUZrWxKFWjqr1DAF9xCr4Fy3ZrCayxGFn7G3ZxZF17KFyDGwnru3s8JrZrXr47ZF42 krs3J34UAF42vr7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UZIDcUUUUU= X-Originating-IP: [58.22.7.114] X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiMw5gXmbtL08mhAAAsK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240920_012146_737100_914AB3DE X-CRM114-Status: GOOD ( 10.91 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Andy Yan Move rockchip_drm_drv.h in rockchip_drm_vop2.h to fix the follow sparse warning: ARCH=arm64 LLVM=1 make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' mrproper defconfig all -j12 drivers/gpu/drm/rockchip/rockchip_vop2_reg.c:502:24: sparse: warning: symbol 'vop2_platform_driver' was not declared. Should it be static? It is also beneficial for the upcoming support for rk3576. Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver") Signed-off-by: Andy Yan Signed-off-by: Min-Hua Chen Reviewed-by: Min-Hua Chen --- Changes in v3: - Split it from 10/15, as it fix a exiting compile warning. drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 1 - drivers/gpu/drm/rockchip/rockchip_drm_vop2.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c index 4776a227e62c..a7f9f88869a6 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.c @@ -35,7 +35,6 @@ #include #include -#include "rockchip_drm_drv.h" #include "rockchip_drm_gem.h" #include "rockchip_drm_vop2.h" #include "rockchip_rgb.h" diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h index 59cd6b933bfb..bc001f715847 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop2.h @@ -9,6 +9,7 @@ #include #include +#include "rockchip_drm_drv.h" #include "rockchip_drm_vop.h" #define VOP2_VP_FEATURE_OUTPUT_10BIT BIT(0)