mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
3c44df6c98
commit
ed60c25d38
@@ -51,12 +51,17 @@ static void volt_rpc_pmucmdhandler(struct gk20a *g, struct pmu_msg *msg,
|
||||
static u32 volt_pmu_rpc_execute(struct gk20a *g,
|
||||
struct nv_pmu_volt_rpc *prpc_call)
|
||||
{
|
||||
struct pmu_cmd cmd = { { 0 } };
|
||||
struct pmu_msg msg = { { 0 } };
|
||||
struct pmu_payload payload = { { 0 } };
|
||||
struct pmu_cmd cmd;
|
||||
struct pmu_msg msg;
|
||||
struct pmu_payload payload;
|
||||
u32 status = 0;
|
||||
u32 seqdesc;
|
||||
struct volt_rpc_pmucmdhandler_params handler = {0};
|
||||
struct volt_rpc_pmucmdhandler_params handler;
|
||||
|
||||
memset(&payload, 0, sizeof(struct pmu_payload));
|
||||
memset(&cmd, 0, sizeof(struct pmu_cmd));
|
||||
memset(&msg, 0, sizeof(struct pmu_msg));
|
||||
memset(&handler, 0, sizeof(struct volt_rpc_pmucmdhandler_params));
|
||||
|
||||
cmd.hdr.unit_id = PMU_UNIT_VOLT;
|
||||
cmd.hdr.size = (u32)sizeof(struct nv_pmu_volt_cmd) +
|
||||
|
||||
Reference in New Issue
Block a user