From 8a036c83ce953cb71bfa47b1596daa34ed2860b1 Mon Sep 17 00:00:00 2001 From: Sachin Nikam Date: Tue, 16 May 2017 14:25:38 +0530 Subject: gpu: nvgpu: fix static sparse warnings Fix below sparse warnings by making function static or including right header: - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/gp10b/fecs_trace_gp10b.c:45:6: warning: symbol 'gp10b_init_fecs_trace_ops' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/gp106/hal_gp106.c:195:5: warning: symbol 'gp106_init_gpu_characteristics' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pstate/pstate.c:175:5: warning: symbol 'pstate_construct_super' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pstate/pstate.c:195:5: warning: symbol 'pstate_construct_3x' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pstate/pstate.c:204:15: warning: symbol 'pstate_construct' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pstate/pstate.c:218:5: warning: symbol 'pstate_insert' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/clk/clk_arb.c:1457:6: warning: symbol 'nvgpu_clk_arb_ioctl_event_dev' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pmgr/pmgr.c:68:5: warning: symbol 'pmgr_pwr_devices_get_power_u64' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pmgr/pmgr.c:80:5: warning: symbol 'pmgr_pwr_devices_get_current_u64' was not declared. Should it be static? - $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pmgr/pmgr.c:92:5: warning: symbol 'pmgr_pwr_devices_get_voltage_u64' was not declared. Should it be static? Bug 200299572 Change-Id: I0112ba3af5b858d2ce2a37a8366dcb6be1eb688d Signed-off-by: Sachin Nikam Reviewed-on: http://git-master/r/1482866 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/pmgr/pmgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/pmgr/pmgr.c') diff --git a/drivers/gpu/nvgpu/pmgr/pmgr.c b/drivers/gpu/nvgpu/pmgr/pmgr.c index f4fe984c..41c69dbd 100644 --- a/drivers/gpu/nvgpu/pmgr/pmgr.c +++ b/drivers/gpu/nvgpu/pmgr/pmgr.c @@ -65,7 +65,7 @@ int pmgr_pwr_devices_get_voltage(struct gk20a *g, u32 *val) } #ifdef CONFIG_DEBUG_FS -int pmgr_pwr_devices_get_power_u64(void *data, u64 *p) +static int pmgr_pwr_devices_get_power_u64(void *data, u64 *p) { struct gk20a *g = (struct gk20a *)data; int err; @@ -77,7 +77,7 @@ int pmgr_pwr_devices_get_power_u64(void *data, u64 *p) return err; } -int pmgr_pwr_devices_get_current_u64(void *data, u64 *p) +static int pmgr_pwr_devices_get_current_u64(void *data, u64 *p) { struct gk20a *g = (struct gk20a *)data; int err; @@ -89,7 +89,7 @@ int pmgr_pwr_devices_get_current_u64(void *data, u64 *p) return err; } -int pmgr_pwr_devices_get_voltage_u64(void *data, u64 *p) +static int pmgr_pwr_devices_get_voltage_u64(void *data, u64 *p) { struct gk20a *g = (struct gk20a *)data; int err; -- cgit v1.2.2