dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] drm/vgem: Fix non static symbol warning
@ 2016-07-19 12:44 Wei Yongjun
  2016-07-19 12:51 ` Chris Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Yongjun @ 2016-07-19 12:44 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Chris Wilson, Zach Reizner
  Cc: Wei Yongjun, dri-devel, linux-kernel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

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>
---
 drivers/gpu/drm/vgem/vgem_fence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vgem/vgem_fence.c b/drivers/gpu/drm/vgem/vgem_fence.c
index e77b522..59ef144 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,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] drm/vgem: Fix non static symbol warning
  2016-07-19 12:44 [PATCH -next] drm/vgem: Fix non static symbol warning Wei Yongjun
@ 2016-07-19 12:51 ` Chris Wilson
  2016-07-19 13:03   ` Daniel Vetter
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2016-07-19 12:51 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: David Airlie, Daniel Vetter, Zach Reizner, Wei Yongjun, dri-devel,
	linux-kernel

On Tue, Jul 19, 2016 at 12:44:22PM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> 
> 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>

Thanks,
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] drm/vgem: Fix non static symbol warning
  2016-07-19 12:51 ` Chris Wilson
@ 2016-07-19 13:03   ` Daniel Vetter
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2016-07-19 13:03 UTC (permalink / raw)
  To: Chris Wilson, Wei Yongjun, David Airlie, Daniel Vetter,
	Zach Reizner, Wei Yongjun, dri-devel, linux-kernel

On Tue, Jul 19, 2016 at 01:51:03PM +0100, Chris Wilson wrote:
> On Tue, Jul 19, 2016 at 12:44:22PM +0000, Wei Yongjun wrote:
> > From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> > 
> > 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>
> 
> Thanks,
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

Merged to drm-misc, thanks.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-19 13:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-19 12:44 [PATCH -next] drm/vgem: Fix non static symbol warning Wei Yongjun
2016-07-19 12:51 ` Chris Wilson
2016-07-19 13:03   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox