Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/lima: Make lima_sched_ops static

Fix sparse warning:

drivers/gpu/drm/lima/lima_sched.c:356:36: warning:
symbol 'lima_sched_ops' was not declared. Should it be static?

Fixes: a1d2a6339961 ("drm/lima: driver for ARM Mali4xx GPUs")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190416144353.34024-1-yuehaibing@huawei.com

authored by

YueHaibing and committed by
Qiang Yu
d48ae1f0 b7147e9a

+1 -1
+1 -1
drivers/gpu/drm/lima/lima_sched.c
··· 311 311 kmem_cache_free(pipe->task_slab, task); 312 312 } 313 313 314 - const struct drm_sched_backend_ops lima_sched_ops = { 314 + static const struct drm_sched_backend_ops lima_sched_ops = { 315 315 .dependency = lima_sched_dependency, 316 316 .run_job = lima_sched_run_job, 317 317 .timedout_job = lima_sched_timedout_job,