summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVaishali Thakkar <vthakkar1994@gmail.com>2018-04-25 12:39:53 +0530
committerEric Anholt <eric@anholt.net>2018-04-30 10:59:00 -0700
commit5e7854bd036ec9b8d8a861def32ecbfd97ca4e77 (patch)
treec4bdcbba61536fcfac6b307c371b91251561ba4f /drivers
parentd34deab907605a81eec83afe006fad2e5b4673b4 (diff)
drm/vc4: make function vc4_allocate_bin_bo static
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/vc4/vc4_v3d.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c
index bfc2fa73d2ae..e47e29426078 100644
--- a/drivers/gpu/drm/vc4/vc4_v3d.c
+++ b/drivers/gpu/drm/vc4/vc4_v3d.c
@@ -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;