diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-19 12:44:22 (GMT) |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-07-19 13:01:52 (GMT) |
commit | 3c003d599dc80769b9c5b023d3944c7adb7de73b (patch) | |
tree | c49f3199da4494e447d2375a83897977722b306e | |
parent | a9eaa996a10a7b114f0f1cd6dd9e36d23d2df7c1 (diff) | |
download | linux-3c003d599dc80769b9c5b023d3944c7adb7de73b.tar.xz |
drm/vgem: Fix non static symbol warning
Fixes the following sparse warning:
drivers/gpu/drm/vgem/vgem_fence.c:75:24: warning:
symbol 'vgem_fence_ops' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1468932262-26554-1-git-send-email-weiyj_lk@163.com
-rw-r--r-- | drivers/gpu/drm/vgem/vgem_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vgem/vgem_fence.c b/drivers/gpu/drm/vgem/vgem_fence.c index 892417b..5c57c1f 100644 --- a/drivers/gpu/drm/vgem/vgem_fence.c +++ b/drivers/gpu/drm/vgem/vgem_fence.c @@ -72,7 +72,7 @@ static void vgem_fence_timeline_value_str(struct fence *fence, char *str, snprintf(str, size, "%u", fence_is_signaled(fence) ? fence->seqno : 0); } -const struct fence_ops vgem_fence_ops = { +static const struct fence_ops vgem_fence_ops = { .get_driver_name = vgem_fence_get_driver_name, .get_timeline_name = vgem_fence_get_timeline_name, .enable_signaling = vgem_fence_enable_signaling, |