All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] drm: Make syncobj import/export functions static
@ 2017-09-01 16:53 ville.syrjala
  2017-09-01 16:53 ` [PATCH 2/4] drm: Add missing __user annotation to drm_syncobj_array_find() ville.syrjala
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: ville.syrjala @ 2017-09-01 16:53 UTC (permalink / raw)
  To: dri-devel; +Cc: Dave Airlie

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Fix the following sparse warnings by making functions static:
drm_syncobj.c:420:5: warning: symbol 'drm_syncobj_import_sync_file_fence' was not declared. Should it be static?
drm_syncobj.c:441:5: warning: symbol 'drm_syncobj_export_sync_file' was not declared. Should it be static?

Cc: Dave Airlie <airlied@redhat.com>
Fixes: 3ee45a3b533a ("drm/syncobj: add sync_file interaction. (v1.2)")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/drm_syncobj.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
index 0422b8c2c2e7..26d60615b4d4 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -417,8 +417,8 @@ static int drm_syncobj_fd_to_handle(struct drm_file *file_private,
 	return 0;
 }
 
-int drm_syncobj_import_sync_file_fence(struct drm_file *file_private,
-				       int fd, int handle)
+static int drm_syncobj_import_sync_file_fence(struct drm_file *file_private,
+					      int fd, int handle)
 {
 	struct dma_fence *fence = sync_file_get_fence(fd);
 	struct drm_syncobj *syncobj;
@@ -438,8 +438,8 @@ int drm_syncobj_import_sync_file_fence(struct drm_file *file_private,
 	return 0;
 }
 
-int drm_syncobj_export_sync_file(struct drm_file *file_private,
-				 int handle, int *p_fd)
+static int drm_syncobj_export_sync_file(struct drm_file *file_private,
+					int handle, int *p_fd)
 {
 	int ret;
 	struct dma_fence *fence;
-- 
2.13.5

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2017-10-13 13:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-01 16:53 [PATCH 1/4] drm: Make syncobj import/export functions static ville.syrjala
2017-09-01 16:53 ` [PATCH 2/4] drm: Add missing __user annotation to drm_syncobj_array_find() ville.syrjala
2017-09-01 17:44   ` Thierry Reding
2017-10-13 13:08     ` Ville Syrjälä
2017-09-01 16:53 ` [PATCH 3/4] drm: Drop drm_get_link_status_name() ville.syrjala
2017-09-01 17:46   ` Thierry Reding
2017-09-05 19:23   ` Manasi Navare
2017-09-01 16:53 ` [PATCH 4/4] drm: Make __drm_object_property_get_value() static ville.syrjala
2017-09-01 17:46   ` Thierry Reding
2017-09-01 17:44 ` [PATCH 1/4] drm: Make syncobj import/export functions static Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.