diff options
author | Vijayakumar <vsubbu@nvidia.com> | 2017-05-01 02:56:14 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-02 11:04:28 -0400 |
commit | ed60c25d3840c9d198e7b4b5f852382b02ed64bd (patch) | |
tree | 1f93d2837fc7500329749d8682e40dbd6e3b406a /drivers/gpu/nvgpu/clk/clk_domain.c | |
parent | 3c44df6c98b0242cacba94d97a893d57eb46bb00 (diff) |
gpu: nvgpu: fix error for static code analysis
use memset to fill structures with zero instead of
assigning zero.
mark functions local to the file as static
fixing errors in clk, perf and therm modules.
Bug 200299572
Change-Id: I0470298803c35b6faed2edc2a0c1dbf0e47e842e
Signed-off-by: Vijayakumar <vsubbu@nvidia.com>
Reviewed-on: http://git-master/r/1472940
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk_domain.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_domain.c b/drivers/gpu/nvgpu/clk/clk_domain.c index c784bdb4..84ce7371 100644 --- a/drivers/gpu/nvgpu/clk/clk_domain.c +++ b/drivers/gpu/nvgpu/clk/clk_domain.c | |||
@@ -31,7 +31,8 @@ static u32 devinit_get_clocks_table(struct gk20a *g, | |||
31 | static u32 clk_domain_pmudatainit_super(struct gk20a *g, struct boardobj | 31 | static u32 clk_domain_pmudatainit_super(struct gk20a *g, struct boardobj |
32 | *board_obj_ptr, struct nv_pmu_boardobj *ppmudata); | 32 | *board_obj_ptr, struct nv_pmu_boardobj *ppmudata); |
33 | 33 | ||
34 | const struct vbios_clocks_table_1x_hal_clock_entry vbiosclktbl1xhalentry[] = { | 34 | static const struct vbios_clocks_table_1x_hal_clock_entry |
35 | vbiosclktbl1xhalentry[] = { | ||
35 | { clkwhich_gpc2clk, true, }, | 36 | { clkwhich_gpc2clk, true, }, |
36 | { clkwhich_xbar2clk, true, }, | 37 | { clkwhich_xbar2clk, true, }, |
37 | { clkwhich_mclk, false, }, | 38 | { clkwhich_mclk, false, }, |