]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/vc4: change vc4_dma_range_matches from a global to static
authorTom Rix <trix@redhat.com>
Wed, 29 Jun 2022 20:01:01 +0000 (16:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:30 +0000 (14:24 +0200)
commit 76d319e084d1c897aeef3dc67aef5de193f983da upstream.

sparse reports
drivers/gpu/drm/vc4/vc4_drv.c:270:27: warning: symbol 'vc4_dma_range_matches' was not declared. Should it be static?

vc4_dma_range_matches is only used in vc4_drv.c, so it's storage class specifier
should be static.

Fixes: f273cf20ff54 ("drm/vc4: drv: Adopt the dma configuration from the HVS or V3D component")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220629200101.498138-1-trix@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vc4/vc4_drv.c

index 6e52801e2d9914d69d5654d3d71867454bd0dda5..ef8fa2850ed6a6c2d5bf48bcc17b1be9c1b3df6b 100644 (file)
@@ -214,7 +214,7 @@ static void vc4_match_add_drivers(struct device *dev,
        }
 }
 
-const struct of_device_id vc4_dma_range_matches[] = {
+static const struct of_device_id vc4_dma_range_matches[] = {
        { .compatible = "brcm,bcm2711-hvs" },
        { .compatible = "brcm,bcm2835-hvs" },
        { .compatible = "brcm,bcm2835-v3d" },