]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/sun4i: Make some symbols static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 16 Apr 2019 14:58:55 +0000 (22:58 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 17 Apr 2019 16:55:08 +0000 (18:55 +0200)
Fix sparse warnings:

drivers/gpu/drm/sun4i/sun8i_tcon_top.c:271:36: warning: symbol 'sun8i_r40_tcon_top_quirks' was not declared. Should it be static?
drivers/gpu/drm/sun4i/sun8i_tcon_top.c:276:36: warning: symbol 'sun50i_h6_tcon_top_quirks' was not declared. Should it be static?
drivers/gpu/drm/sun4i/sun4i_tcon.c:239:6: warning: symbol 'sun4i_tcon_set_mux' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190416145855.20852-1-yuehaibing@huawei.com
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun8i_tcon_top.c

index fa92e992a2827b6cd5590d0096d4238ec2318ccd..9d8d8124b1f67ee474aab975ed02acaced9043fd 100644 (file)
@@ -236,8 +236,8 @@ static struct sun4i_tcon *sun4i_get_tcon0(struct drm_device *drm)
        return NULL;
 }
 
-void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel,
-                       const struct drm_encoder *encoder)
+static void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel,
+                              const struct drm_encoder *encoder)
 {
        int ret = -ENOTSUPP;
 
index fc36e0c10a374a2a33a054a4102944dfb0b03009..241904357d9ebc6773d32ea4fd98e19ab13b25e9 100644 (file)
@@ -268,12 +268,12 @@ static int sun8i_tcon_top_remove(struct platform_device *pdev)
        return 0;
 }
 
-const struct sun8i_tcon_top_quirks sun8i_r40_tcon_top_quirks = {
+static const struct sun8i_tcon_top_quirks sun8i_r40_tcon_top_quirks = {
        .has_tcon_tv1   = true,
        .has_dsi        = true,
 };
 
-const struct sun8i_tcon_top_quirks sun50i_h6_tcon_top_quirks = {
+static const struct sun8i_tcon_top_quirks sun50i_h6_tcon_top_quirks = {
        /* Nothing special */
 };