From mboxrd@z Thu Jan 1 00:00:00 1970 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 EAD2DCE7B02 for ; Fri, 6 Sep 2024 11:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References: Subject:Cc:To:From:Message-Id:Date:Content-Type:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gcYaptrKBfML0qcaOM5vqkd6iW3yCKV8zFKoo34jnNM=; b=tv2f9isaUBsO9gYzOou5PrHIWI jW3Aj0U498qEH3pRHpDht5WftRxG5yHyim67366VWgWKDH2PMJDGopS/yFBn2P5HhE8wtPlPTjE3Q jH7a1rAmpNqJpTikhyxzTcPKtZNOHTuw0DqEMuaUT5kPmJ4vZu17YJgkecVkRQhm5r5xJ/w4WaTkI 3jJMsjysKxzhTzUje87zNiozPNHezNshWogfEPr8TnVnvozd2DbWaCJ7lrWA00mSd4fz9ipb0Jaz8 APb6NDDpoLJ5qi+1INA2d2PU4MHS3EiGCRGOcMRbRC86OJNXYkjdM2cnEGmhPTgLQVmLXAOZJmjhf mKZ8CVuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smWx8-0000000BvYu-2edR; Fri, 06 Sep 2024 11:16:34 +0000 Received: from out-181.mta1.migadu.com ([95.215.58.181]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smWou-0000000BtoJ-3OVj for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 11:08:06 +0000 Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow.org; s=key1; t=1725620880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gcYaptrKBfML0qcaOM5vqkd6iW3yCKV8zFKoo34jnNM=; b=C5prNb4DaC/HAtXV/Yno7mJUrcByO6K6x/EAHcCpXpx6wSc3in2AnFWu3rz8GmV7sLvqbP Zfe9Gn1L6Vqke0xQ1iugDUrmANpmPB6dv4S4dFwGHbhBkVmJBO2qQeIQ0+Gfdk7Bclwx5r nB5UDc/n6YV8QNws97AU2CCPl5KyhZU5km7NHmDdgEsm+u/XMShp5NqpQ4hLagX5B82ppn 7EEhhrgheKFaON9Oyd4E7PFO9bI2udvokXgVzDd8JtBOan7tZOxRhIryIs7FhU21PGuyC2 PwYrJL9O5fOoQZmJ4osl4d9sOxQhayBCbX637a/eZOmoImF3X8RUqs9xo4eBYg== Content-Type: multipart/signed; boundary=3b244cc64b320c1a92e52653e21b3af80c1207ea33cb79acd1a135dbf8f4; micalg=pgp-sha256; protocol="application/pgp-signature" Date: Fri, 06 Sep 2024 13:07:47 +0200 Message-Id: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Diederik de Haas" To: "Andy Yan" Cc: "Min-Hua Chen" , "Sandy Huang" , =?utf-8?q?Heiko_St=C3=BCbner?= , "Andy Yan" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Daniel Vetter" , , , , Subject: Re: [PATCH] drm/rockchip: include rockchip_drm_drv.h References: <20240905223852.188355-1-minhuadotchen@gmail.com> <6f07603.7f9.191c4c887b1.Coremail.andyshrk@163.com> In-Reply-To: X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_040805_153762_C7D7A859 X-CRM114-Status: GOOD ( 17.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --3b244cc64b320c1a92e52653e21b3af80c1207ea33cb79acd1a135dbf8f4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi, On Fri Sep 6, 2024 at 11:50 AM CEST, Andy Yan wrote: > At 2024-09-06 17:28:33, "Diederik de Haas" wrote: > >On Fri Sep 6, 2024 at 2:42 AM CEST, Andy Yan wrote: > >> At 2024-09-06 06:38:50, "Min-Hua Chen" wrote= : > >> >Include rockchip_drm_drv.h to fix the follow sparse warning: > >> > > >> >drivers/gpu/drm/rockchip/rockchip_vop2_reg.c:502:24: sparse: > >> >warning: symbol 'vop2_platform_driver' was not declared. > >> >Should it be static? > >> > > >> >No functional change intended. > >> > > >> >Signed-off-by: Min-Hua Chen > >> >--- > >> > drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 1 + > >> > 1 file changed, 1 insertion(+) > >> > > >> >diff --git a/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c b/drivers/g= pu/drm/rockchip/rockchip_vop2_reg.c > >> >index 18efb3fe1c00..c678d1b0fd7c 100644 > >> >--- a/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c > >> >+++ b/drivers/gpu/drm/rockchip/rockchip_vop2_reg.c > >> >@@ -14,6 +14,7 @@ > >> > #include > >> >=20 > >> > #include "rockchip_drm_vop2.h" > >> >+#include "rockchip_drm_drv.h" > >> >=20 > >> > >> We already have a patch[0] include rockchip_drm_drv.h in rockchip_drm_= vop2.h > >> > >> [0]https://patchwork.kernel.org/project/linux-rockchip/patch/202409041= 20238.3856782-3-andyshrk@163.com/=20 > > > >Maybe I'm missing something, but this patch seems to fix an already > >existing bug (which should have a Fixes tag?), which Andy also fixed > >while implementing a different (and unrelated) feature? > > In fact, I don't know how to reproduce this compilation issue. FWIW: I didn't see it either, but I assumed I was missing the right context (i.e. patches) needed to trigger that warning. > While implementing my feature, I happened to find that I need to > include rockchip_drm_drv.h in rockchip_drm_vop2.h Makes perfect sense :) But if the warning is indeed valid, it should be fixed on its own (IMO). Cheers, Diederik --3b244cc64b320c1a92e52653e21b3af80c1207ea33cb79acd1a135dbf8f4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCZtriiAAKCRDXblvOeH7b bgGYAP9ZGSTkXT/5o/dRBWJ5eQlUBNNW9+epakVgWTzWTVpJYgD+KaQ5lle8XD6W ztX+E7hdE3sQQlhWeEwLvO2EcBldrQo= =6Yqr -----END PGP SIGNATURE----- --3b244cc64b320c1a92e52653e21b3af80c1207ea33cb79acd1a135dbf8f4--