Re: [PATCH] drm/amd/powerplay: Zero initialize some variables

2019-08-06 Thread Alex Deucher
Alexander > > ; Koenig, Christian > > ; Zhou, David(ChunMing) > > > > Cc: amd-gfx@lists.freedesktop.org; dri-de...@lists.freedesktop.org; linux- > > ker...@vger.kernel.org; clang-built-li...@googlegroups.com; Nathan > > Chancellor > > Subject: [PATCH]

RE: [PATCH] drm/amd/powerplay: Zero initialize some variables

2019-08-04 Thread Quan, Evan
.freedesktop.org; dri-de...@lists.freedesktop.org; linux- > ker...@vger.kernel.org; clang-built-li...@googlegroups.com; Nathan > Chancellor > Subject: [PATCH] drm/amd/powerplay: Zero initialize some variables > > Clang warns (only Navi warning shown but Arcturus warns as well): > > drivers

[PATCH] drm/amd/powerplay: Zero initialize some variables

2019-08-04 Thread Nathan Chancellor
Clang warns (only Navi warning shown but Arcturus warns as well): drivers/gpu/drm/amd/amdgpu/../powerplay/navi10_ppt.c:1534:4: warning: variable 'asic_default_power_limit' is used uninitialized whenever '?:' condition is false [-Wsometimes-uninitialized] smu_read_smc_arg(sm