mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
drm/amd/display: fix compile warning in dml
[Why] gcc version 5.4.0 fails compilation with: ‘PixelPTEReqHeightPTEs’ may be used uninitialized in this function [-Werror=maybe-uninitialized] [How] Initialized variable explicitly with 0 Signed-off-by: Roman Li <roman.li@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ece11e7b4a
commit
de32a50be7
1 changed files with 1 additions and 1 deletions
|
@ -1294,7 +1294,7 @@ static unsigned int CalculateVMAndRowBytes(
|
|||
unsigned int MacroTileHeight;
|
||||
unsigned int ExtraDPDEBytesFrame;
|
||||
unsigned int PDEAndMetaPTEBytesFrame;
|
||||
unsigned int PixelPTEReqHeightPTEs;
|
||||
unsigned int PixelPTEReqHeightPTEs = 0;
|
||||
|
||||
if (DCCEnable == true) {
|
||||
*MetaRequestHeight = 8 * BlockHeight256Bytes;
|
||||
|
|
Loading…
Reference in a new issue