aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip/cdn-dp-core.c
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2022-04-21 14:43:04 +0000
committerHeiko Stuebner <[email protected]>2022-05-02 21:53:58 +0000
commit7494b1ed1df414e43dc8429f0c016b2054b1b5da (patch)
tree39b5de1bec23afeccbad64d71230e443cec98ecd /drivers/gpu/drm/rockchip/cdn-dp-core.c
parentdrm/rockchip: Refactor IOMMU initialisation (diff)
downloadkernel-7494b1ed1df414e43dc8429f0c016b2054b1b5da.tar.gz
kernel-7494b1ed1df414e43dc8429f0c016b2054b1b5da.zip
drm/rockchip: cdn-dp: change rk3399_cdn_dp from global to static
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 <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/rockchip/cdn-dp-core.c')
-rw-r--r--drivers/gpu/drm/rockchip/cdn-dp-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c
index 2857d3f68730..0d027b10fbb3 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-core.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c
@@ -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,
};