mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: unit: Several fixes for initializations
Structs with structs inside them need to be initialized with double braces. Also add a couple of missing initializations. Change-Id: I0aa5f7ac008b8db4bececa92807f598f2f3081bd Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2318387 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
d7927778b3
commit
3569e21518
@@ -424,9 +424,9 @@ static bool channel_close_pruned(u32 branches, u32 final)
|
||||
int test_channel_close(struct unit_module *m, struct gk20a *g, void *vargs)
|
||||
{
|
||||
struct gpu_ops gops = g->ops;
|
||||
struct nvgpu_channel *ch;
|
||||
struct nvgpu_channel *ch = NULL;
|
||||
struct nvgpu_tsg *tsg;
|
||||
struct nvgpu_channel_sync user_sync = {0};
|
||||
struct nvgpu_channel_sync user_sync = { {0} };
|
||||
u32 branches = 0U;
|
||||
int ret = UNIT_FAIL;
|
||||
u32 fail = F_CHANNEL_CLOSE_ALREADY_FREED |
|
||||
|
||||
@@ -111,7 +111,7 @@ static bool stub_mm_is_bar1_supported(struct gk20a *g)
|
||||
|
||||
int test_fifo_suspend(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
struct gpu_ops gops;
|
||||
struct gpu_ops gops = { {0} };
|
||||
u32 reg0_val, reg1_val;
|
||||
u32 branches = 0U;
|
||||
int ret = UNIT_FAIL;
|
||||
@@ -163,7 +163,7 @@ done:
|
||||
|
||||
int test_fifo_sw_quiesce(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
struct gpu_ops gops;
|
||||
struct gpu_ops gops = { {0} };
|
||||
u32 reg_val;
|
||||
int ret = UNIT_FAIL;
|
||||
int err;
|
||||
@@ -246,7 +246,7 @@ static int stub_init_fifo_setup_hw_pass(struct gk20a *g)
|
||||
int test_init_support(struct unit_module *m, struct gk20a *g, void *args)
|
||||
{
|
||||
struct nvgpu_posix_fault_inj *kmem_fi;
|
||||
struct gpu_ops gops;
|
||||
struct gpu_ops gops = { {0} };
|
||||
|
||||
u32 branches = 0U;
|
||||
int ret = UNIT_FAIL;
|
||||
|
||||
Reference in New Issue
Block a user