]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/rockchip: cdn-dp: change rk3399_cdn_dp from global to static
authorTom Rix <trix@redhat.com>
Thu, 21 Apr 2022 14:43:04 +0000 (10:43 -0400)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 2 May 2022 21:53:58 +0000 (23:53 +0200)
Smatch reports this issue
cdn-dp-core.c:51:20: warning: symbol 'rk3399_cdn_dp' was not declared. Should it be static?

rk3399_cdn_dp is only used in cdn-dp-core.c so change
its storge-class specifier to static.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220421144304.586396-1-trix@redhat.com
drivers/gpu/drm/rockchip/cdn-dp-core.c

index 2857d3f687305a25e59ecab7af0b9f2cb7860a1d..0d027b10fbb3014bd0bf9c5f5062f37c0bf3946f 100644 (file)
@@ -48,7 +48,7 @@ struct cdn_dp_data {
        u8 max_phy;
 };
 
-struct cdn_dp_data rk3399_cdn_dp = {
+static struct cdn_dp_data rk3399_cdn_dp = {
        .max_phy = 2,
 };