diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-02-13 16:36:49 -0200 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-03-09 12:25:01 +0100 |
commit | fc0775da8e60d38c234c1e2c13470cc7c2198018 (patch) | |
tree | e9d05ca17158a26a41bde6b34b85a0a74e2af543 /drivers/gpu/drm/etnaviv | |
parent | f8433f9e1066363582e49eda0d6ddeaa08a842ca (diff) | |
download | talos-obmc-linux-fc0775da8e60d38c234c1e2c13470cc7c2198018.tar.gz talos-obmc-linux-fc0775da8e60d38c234c1e2c13470cc7c2198018.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/etnaviv')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_sched.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_sched.c b/drivers/gpu/drm/etnaviv/etnaviv_sched.c index 3e334735ac17..4b761b761f9e 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_sched.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_sched.c @@ -27,8 +27,9 @@ module_param_named(job_hang_limit, etnaviv_job_hang_limit, int , 0444); static int etnaviv_hw_jobs_limit = 2; module_param_named(hw_job_limit, etnaviv_hw_jobs_limit, int , 0444); -struct dma_fence *etnaviv_sched_dependency(struct drm_sched_job *sched_job, - struct drm_sched_entity *entity) +static struct dma_fence * +etnaviv_sched_dependency(struct drm_sched_job *sched_job, + struct drm_sched_entity *entity) { struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job); struct dma_fence *fence; @@ -78,7 +79,7 @@ struct dma_fence *etnaviv_sched_dependency(struct drm_sched_job *sched_job, 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 dma_fence *fence = NULL; |