Skip to content

Commit ea90383

Browse files
Baoyou Xieanholt
authored andcommitted
drm/vc4: mark vc4_bo_cache_purge() static
We get 1 warning when building kernel with W=1: drivers/gpu/drm/vc4/vc4_bo.c:147:6: warning: no previous prototype for 'vc4_bo_cache_purge' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> Signed-off-by: Eric Anholt <eric@anholt.net>
1 parent 313a61d commit ea90383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vc4/vc4_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ static struct list_head *vc4_get_cache_list_for_size(struct drm_device *dev,
144144
return &vc4->bo_cache.size_list[page_index];
145145
}
146146

147-
void vc4_bo_cache_purge(struct drm_device *dev)
147+
static void vc4_bo_cache_purge(struct drm_device *dev)
148148
{
149149
struct vc4_dev *vc4 = to_vc4_dev(dev);
150150

0 commit comments

Comments
 (0)