mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: userd MISRA fix for unused return value
g->ops.userd.init_mem return value is unused. Changed type to void to fix MISRA rule 17.7 violation Jira NVGPU-3260 Change-Id: If1cc0248522162944b6c8cefcf9963d6b1a1101f Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2108839 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
3a3d78adf2
commit
983b4018e2
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <nvgpu/hw/gk20a/hw_ram_gk20a.h>
|
||||
|
||||
int gk20a_userd_init_mem(struct gk20a *g, struct channel_gk20a *c)
|
||||
void gk20a_userd_init_mem(struct gk20a *g, struct channel_gk20a *c)
|
||||
{
|
||||
struct nvgpu_mem *mem = c->userd_mem;
|
||||
u32 offset = c->userd_offset / U32(sizeof(u32));
|
||||
@@ -48,8 +48,6 @@ int gk20a_userd_init_mem(struct gk20a *g, struct channel_gk20a *c)
|
||||
nvgpu_mem_wr32(g, mem, offset + ram_userd_get_hi_w(), 0);
|
||||
nvgpu_mem_wr32(g, mem, offset + ram_userd_gp_get_w(), 0);
|
||||
nvgpu_mem_wr32(g, mem, offset + ram_userd_gp_put_w(), 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 gk20a_userd_gp_get(struct gk20a *g, struct channel_gk20a *c)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
struct gk20a;
|
||||
struct channel_gk20a;
|
||||
|
||||
int gk20a_userd_init_mem(struct gk20a *g, struct channel_gk20a *c);
|
||||
void gk20a_userd_init_mem(struct gk20a *g, struct channel_gk20a *c);
|
||||
u32 gk20a_userd_gp_get(struct gk20a *g, struct channel_gk20a *c);
|
||||
u64 gk20a_userd_pb_get(struct gk20a *g, struct channel_gk20a *c);
|
||||
void gk20a_userd_gp_put(struct gk20a *g, struct channel_gk20a *c);
|
||||
|
||||
@@ -1085,7 +1085,7 @@ struct gpu_ops {
|
||||
struct {
|
||||
int (*setup_sw)(struct gk20a *g);
|
||||
void (*cleanup_sw)(struct gk20a *g);
|
||||
int (*init_mem)(struct gk20a *g, struct channel_gk20a *c);
|
||||
void (*init_mem)(struct gk20a *g, struct channel_gk20a *c);
|
||||
u32 (*gp_get)(struct gk20a *g, struct channel_gk20a *c);
|
||||
void (*gp_put)(struct gk20a *g, struct channel_gk20a *c);
|
||||
u64 (*pb_get)(struct gk20a *g, struct channel_gk20a *c);
|
||||
|
||||
Reference in New Issue
Block a user