drm/rockchip: make rockchip_gem_alloc_object static
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 9 Oct 2019 12:10:22 +0000 (13:10 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 13 Oct 2019 21:53:42 +0000 (23:53 +0200)
The rockchip_gem_alloc_object function is not exported so
make it static to avoid the following sparse warning:

drivers/gpu/drm/rockchip/rockchip_drm_gem.c:297:28: warning: symbol 'rockchip_gem_alloc_object' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20191009121022.17478-1-ben.dooks@codethink.co.uk
drivers/gpu/drm/rockchip/rockchip_drm_gem.c

index 291e89b4045f341a7c0626f041ce20bf677da31d..7582d0e6a60ae40abad2aa490485f93103271f1f 100644 (file)
@@ -294,7 +294,7 @@ static void rockchip_gem_release_object(struct rockchip_gem_object *rk_obj)
        kfree(rk_obj);
 }
 
-struct rockchip_gem_object *
+static struct rockchip_gem_object *
        rockchip_gem_alloc_object(struct drm_device *drm, unsigned int size)
 {
        struct rockchip_gem_object *rk_obj;