]> git.baikalelectronics.ru Git - kernel.git/commit
drm/syncobj: Mark local add/remove callback functions as static
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 31 Oct 2018 12:07:10 +0000 (12:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Nov 2018 11:29:24 +0000 (11:29 +0000)
commit92924898938dd335f824bc869ff3b3f4ddeb5d6d
tree78ce641dce347e7f0b466c244334ffd9a5e4f8a2
parentd2b872ae46823c4c1e577442490c0faccd6b24b3
drm/syncobj: Mark local add/remove callback functions as static

drivers/gpu/drm/drm_syncobj.c:181:6: warning: no previous prototype for ‘drm_syncobj_add_callback’ [-Wmissing-prototypes]
drivers/gpu/drm/drm_syncobj.c:190:6: warning: no previous prototype for ‘drm_syncobj_remove_callback’ [-Wmissing-prototypes]

Fixing that leads to

drivers/gpu/drm/drm_syncobj.c:181:13: warning: ‘drm_syncobj_add_callback’ defined but not used [-Wunused-function]

so remove the unused drm_syncobj_add_callback() entirely.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181031120710.21582-1-chris@chris-wilson.co.uk
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
drivers/gpu/drm/drm_syncobj.c