mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: fix sparse errors
bug 200067946 Change-Id: I50de1cda004c08b5a4af3fb06a3970c35197f419 Signed-off-by: Vijayakumar <vsubbu@nvidia.com> Reviewed-on: http://git-master/r/1230622 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
0bb1f45958
commit
8b6eb6f118
@@ -234,7 +234,7 @@ u32 boardobjgrp_pmuhdrdatainit_super(struct gk20a *g, struct boardobjgrp
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 boardobjgrp_pmudatainstget_stub(struct gk20a *g,
|
||||
static u32 boardobjgrp_pmudatainstget_stub(struct gk20a *g,
|
||||
struct nv_pmu_boardobjgrp *boardobjgrppmu,
|
||||
struct nv_pmu_boardobj **ppboardobjpmudata, u8 idx)
|
||||
{
|
||||
@@ -243,7 +243,8 @@ u32 boardobjgrp_pmudatainstget_stub(struct gk20a *g,
|
||||
}
|
||||
|
||||
|
||||
u32 boardobjgrp_pmustatusinstget_stub(struct gk20a *g, void *pboardobjgrppmu,
|
||||
static u32 boardobjgrp_pmustatusinstget_stub(struct gk20a *g,
|
||||
void *pboardobjgrppmu,
|
||||
struct nv_pmu_boardobj_query **ppBoardobjpmustatus, u8 idx)
|
||||
{
|
||||
gk20a_dbg_info("");
|
||||
@@ -627,8 +628,8 @@ static u32 boardobjgrp_pmucmdsend(struct gk20a *g,
|
||||
struct boardobjgrp *pboardobjgrp,
|
||||
struct boardobjgrp_pmu_cmd *pcmd)
|
||||
{
|
||||
struct boardobjgrp_pmucmdhandler_params handlerparams = { 0 };
|
||||
struct pmu_payload payload = { {0} };
|
||||
struct boardobjgrp_pmucmdhandler_params handlerparams;
|
||||
struct pmu_payload payload;
|
||||
struct nv_pmu_boardobj_cmd_grp *pgrpcmd;
|
||||
struct pmu_cmd cmd;
|
||||
u32 seqdesc;
|
||||
@@ -636,6 +637,8 @@ static u32 boardobjgrp_pmucmdsend(struct gk20a *g,
|
||||
|
||||
gk20a_dbg_info("");
|
||||
|
||||
memset(&payload, 0, sizeof(payload));
|
||||
memset(&handlerparams, 0, sizeof(handlerparams));
|
||||
memset(&cmd, 0, sizeof(struct pmu_cmd));
|
||||
cmd.hdr.unit_id = pboardobjgrp->pmu.unitid;
|
||||
cmd.hdr.size = sizeof(struct nv_pmu_boardobj_cmd_grp) +
|
||||
|
||||
@@ -520,7 +520,7 @@ static u32 *pmu_allocation_get_dmem_offset_addr_v3(struct pmu_gk20a *pmu,
|
||||
return &pmu_a_ptr->alloc.dmem.offset;
|
||||
}
|
||||
|
||||
void *pmu_allocation_get_fb_addr_v3(
|
||||
static void *pmu_allocation_get_fb_addr_v3(
|
||||
struct pmu_gk20a *pmu, void *pmu_alloc_ptr)
|
||||
{
|
||||
struct pmu_allocation_v3 *pmu_a_ptr =
|
||||
|
||||
Reference in New Issue
Block a user