From a1e80ec509ed650b21e6a58e2ec58b03779dbfb1 Mon Sep 17 00:00:00 2001 From: Vijayakumar Date: Thu, 4 May 2017 16:43:30 +0530 Subject: gpu: nvgpu: fix error for static code analysis mark functions local to the file as static fixing errors in volt and flcn modules. Bug 200299572 Change-Id: Ibacbd83649fee3066a90694a3df90bb909b24aa5 Signed-off-by: Vijayakumar Reviewed-on: http://git-master/r/1475357 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/volt/volt_dev.c | 15 +++++++++------ drivers/gpu/nvgpu/volt/volt_policy.c | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'drivers/gpu/nvgpu/volt') diff --git a/drivers/gpu/nvgpu/volt/volt_dev.c b/drivers/gpu/nvgpu/volt/volt_dev.c index 9fd80144..4617b241 100644 --- a/drivers/gpu/nvgpu/volt/volt_dev.c +++ b/drivers/gpu/nvgpu/volt/volt_dev.c @@ -29,7 +29,7 @@ #define VOLT_DEV_PWM_VOLTAGE_STEPS_INVALID 0 #define VOLT_DEV_PWM_VOLTAGE_STEPS_DEFAULT 1 -u32 volt_device_pmu_data_init_super(struct gk20a *g, +static u32 volt_device_pmu_data_init_super(struct gk20a *g, struct boardobj *pboard_obj, struct nv_pmu_boardobj *ppmudata) { u32 status; @@ -73,7 +73,7 @@ static u32 volt_device_pmu_data_init_pwm(struct gk20a *g, return status; } -u32 construct_volt_device(struct gk20a *g, +static u32 construct_volt_device(struct gk20a *g, struct boardobj **ppboardobj, u16 size, void *pargs) { struct voltage_device *ptmp_dev = (struct voltage_device *)pargs; @@ -101,7 +101,8 @@ u32 construct_volt_device(struct gk20a *g, return status; } -u32 construct_pwm_volt_device(struct gk20a *g, struct boardobj **ppboardobj, +static u32 construct_pwm_volt_device(struct gk20a *g, + struct boardobj **ppboardobj, u16 size, void *pargs) { struct boardobj *pboard_obj = NULL; @@ -129,7 +130,8 @@ u32 construct_pwm_volt_device(struct gk20a *g, struct boardobj **ppboardobj, } -struct voltage_device_entry *volt_dev_construct_dev_entry_pwm(struct gk20a *g, +static struct voltage_device_entry *volt_dev_construct_dev_entry_pwm( + struct gk20a *g, u32 voltage_uv, void *pargs) { struct voltage_device_pwm_entry *pentry = NULL; @@ -164,7 +166,7 @@ static u8 volt_dev_operation_type_convert(u8 vbios_type) return CTRL_VOLT_DEVICE_OPERATION_TYPE_INVALID; } -struct voltage_device *volt_volt_device_construct(struct gk20a *g, +static struct voltage_device *volt_volt_device_construct(struct gk20a *g, void *pargs) { struct boardobj *pboard_obj = NULL; @@ -436,7 +438,8 @@ static int volt_device_volt_cmp(const void *a, const void *b) return (int)a_entry->voltage_uv - (int)b_entry->voltage_uv; } -u32 volt_device_state_init(struct gk20a *g, struct voltage_device *pvolt_dev) +static u32 volt_device_state_init(struct gk20a *g, + struct voltage_device *pvolt_dev) { u32 status = 0; struct voltage_rail *pRail = NULL; diff --git a/drivers/gpu/nvgpu/volt/volt_policy.c b/drivers/gpu/nvgpu/volt/volt_policy.c index d9d4d9da..288529e4 100644 --- a/drivers/gpu/nvgpu/volt/volt_policy.c +++ b/drivers/gpu/nvgpu/volt/volt_policy.c @@ -69,7 +69,7 @@ static u32 construct_volt_policy_split_rail(struct gk20a *g, return status; } -u32 volt_policy_pmu_data_init_split_rail(struct gk20a *g, +static u32 volt_policy_pmu_data_init_split_rail(struct gk20a *g, struct boardobj *pboardobj, struct nv_pmu_boardobj *ppmudata) { u32 status = 0; -- cgit v1.2.2