mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +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
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -424,7 +424,7 @@ int test_rc_pbdma_fault(struct unit_module *m, struct gk20a *g, void *args)
|
||||
|
||||
for (id_type_branches = F_RC_ID_TYPE_TSG; id_type_branches <= F_RC_ID_TYPE_INVALID;
|
||||
id_type_branches++) {
|
||||
u32 id_type_ch_sub_branches;
|
||||
u32 id_type_ch_sub_branches = 0U;
|
||||
if (id_type_branches == F_RC_ID_TYPE_CH) {
|
||||
for (id_type_ch_sub_branches = F_RC_ID_TYPE_CH_NULL_CHANNEL;
|
||||
id_type_ch_sub_branches <= F_RC_ID_TYPE_CH_FULL; id_type_ch_sub_branches++) {
|
||||
|
||||
Reference in New Issue
Block a user