drm/etnaviv: etnaviv_sched: Staticize functions when possible

etnaviv_sched_dependency() and etnaviv_sched_run_job() are only
used in this file, so make them static.

This fixes the following sparse warnings:

drivers/gpu/drm/etnaviv/etnaviv_sched.c:30:18: warning: symbol 'etnaviv_sched_dependency' was not declared. Should it be static?
drivers/gpu/drm/etnaviv/etnaviv_sched.c:81:18: warning: symbol 'etnaviv_sched_run_job' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
Fabio Estevam 2018-02-13 16:36:49 -02:00 committed by Lucas Stach
parent f8433f9e10
commit fc0775da8e
1 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,8 @@ module_param_named(job_hang_limit, etnaviv_job_hang_limit, int , 0444);
static int etnaviv_hw_jobs_limit = 2; static int etnaviv_hw_jobs_limit = 2;
module_param_named(hw_job_limit, etnaviv_hw_jobs_limit, int , 0444); module_param_named(hw_job_limit, etnaviv_hw_jobs_limit, int , 0444);
struct dma_fence *etnaviv_sched_dependency(struct drm_sched_job *sched_job, static struct dma_fence *
etnaviv_sched_dependency(struct drm_sched_job *sched_job,
struct drm_sched_entity *entity) struct drm_sched_entity *entity)
{ {
struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job); struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job);
@ -78,7 +79,7 @@ struct dma_fence *etnaviv_sched_dependency(struct drm_sched_job *sched_job,
return NULL; return NULL;
} }
struct dma_fence *etnaviv_sched_run_job(struct drm_sched_job *sched_job) static struct dma_fence *etnaviv_sched_run_job(struct drm_sched_job *sched_job)
{ {
struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job); struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job);
struct dma_fence *fence = NULL; struct dma_fence *fence = NULL;