* [PATCH] drm/rockchip: make rockchip_gem_alloc_object static
@ 2019-10-09 12:10 Ben Dooks
2019-10-13 21:57 ` Heiko Stuebner
0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2019-10-09 12:10 UTC (permalink / raw)
To: linux-kernel
Cc: Heiko Stübner, David Airlie, Sandy Huang, dri-devel,
linux-rockchip, Ben Dooks, Daniel Vetter, linux-arm-kernel
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>
---
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko Stübner" <heiko@sntech.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-rockchip@lists.infradead.org
---
drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c
index 291e89b4045f..7582d0e6a60a 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c
@@ -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;
--
2.23.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/rockchip: make rockchip_gem_alloc_object static
2019-10-09 12:10 [PATCH] drm/rockchip: make rockchip_gem_alloc_object static Ben Dooks
@ 2019-10-13 21:57 ` Heiko Stuebner
0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stuebner @ 2019-10-13 21:57 UTC (permalink / raw)
To: Ben Dooks
Cc: linux-kernel, David Airlie, Sandy Huang, dri-devel,
linux-rockchip, Daniel Vetter, linux-arm-kernel
Am Mittwoch, 9. Oktober 2019, 14:10:22 CEST schrieb Ben Dooks:
> 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>
applied to drm-misc-next
Thanks
Heiko
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-13 21:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-09 12:10 [PATCH] drm/rockchip: make rockchip_gem_alloc_object static Ben Dooks
2019-10-13 21:57 ` Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).