drm/vc4: make function vc4_allocate_bin_bo static
authorVaishali Thakkar <vthakkar1994@gmail.com>
Wed, 25 Apr 2018 07:09:53 +0000 (12:39 +0530)
committerEric Anholt <eric@anholt.net>
Mon, 30 Apr 2018 17:59:00 +0000 (10:59 -0700)
Sparse complains with following warning:
drivers/gpu/drm/vc4/vc4_v3d.c:222:1: warning: symbol
'vc4_allocate_bin_bo' was not declared. Should it be static?

Make vc4_allocate_bin static as it is not used outside of
vc4_v3d.c.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180425070953.17933-1-vthakkar1994@gmail.com
drivers/gpu/drm/vc4/vc4_v3d.c

index bfc2fa73d2ae949446e64e4c555248ada1ec6fde..e47e29426078bf00bc5d0917386a514f263e81ad 100644 (file)
@@ -218,8 +218,7 @@ try_again:
  * overall CMA pool before they make scenes complicated enough to run
  * out of bin space.
  */
-int
-vc4_allocate_bin_bo(struct drm_device *drm)
+static int vc4_allocate_bin_bo(struct drm_device *drm)
 {
        struct vc4_dev *vc4 = to_vc4_dev(drm);
        struct vc4_v3d *v3d = vc4->v3d;