mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
drm: Make syncobj import/export functions static
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: 3ee45a3b53
("drm/syncobj: add sync_file interaction. (v1.2)")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170901165328.24459-1-ville.syrjala@linux.intel.com
Reviewed-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
72fe915ac5
commit
a32c94af5e
@ -275,7 +275,7 @@ 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,
|
||||
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);
|
||||
@ -296,7 +296,7 @@ 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,
|
||||
static int drm_syncobj_export_sync_file(struct drm_file *file_private,
|
||||
int handle, int *p_fd)
|
||||
{
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user