mirror of
https://github.com/torvalds/linux.git
synced 2026-09-28 03:52:02 +02:00
drm/amd/display: Fix 4018 warning
[Why] It is required by Security Guidance for All Software Components. [How] Change variable type to unsigned in dc\dml\dcn314\display_mode_vba_31.c and dc\dml\dcn31\display_mode_vba_314.c. Explicit cast to unsigned in dc\link\protocols\link_hdmi_frl.c. Move warning from UNSOLVED set to SOLVED set. Reviewed-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Piotr Maziarz <piotr.maziarz@amd.com> Signed-off-by: George Zhang <george.zhang@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
68737239e8
commit
241ad982e1
|
|
@ -4412,14 +4412,13 @@ enum dc_status dc_validate_with_context(struct dc *dc,
|
|||
struct dc_stream_state *unchanged_streams[MAX_PIPES] = { 0 };
|
||||
struct dc_stream_state *del_streams[MAX_PIPES] = { 0 };
|
||||
struct dc_stream_state *add_streams[MAX_PIPES] = { 0 };
|
||||
int old_stream_count = context->stream_count;
|
||||
unsigned int old_stream_count = context->stream_count;
|
||||
enum dc_status res = DC_ERROR_UNEXPECTED;
|
||||
int unchanged_streams_count = 0;
|
||||
int del_streams_count = 0;
|
||||
int add_streams_count = 0;
|
||||
unsigned int unchanged_streams_count = 0;
|
||||
unsigned int del_streams_count = 0;
|
||||
unsigned int add_streams_count = 0;
|
||||
bool found = false;
|
||||
int i, j;
|
||||
unsigned int k;
|
||||
unsigned int i, j, k;
|
||||
|
||||
DC_LOGGER_INIT(dc->ctx->logger);
|
||||
|
||||
|
|
|
|||
|
|
@ -5337,7 +5337,7 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
|
|||
for (j = 0; j <= 1; ++j) {
|
||||
double VMDataOnlyReturnBWPerState;
|
||||
double HostVMInefficiencyFactor = 1;
|
||||
int NextPrefetchModeState = MinPrefetchMode;
|
||||
unsigned int NextPrefetchModeState = MinPrefetchMode;
|
||||
bool UnboundedRequestEnabledThisState = false;
|
||||
unsigned int CompressedBufferSizeInkByteThisState = 0;
|
||||
double dummy;
|
||||
|
|
|
|||
|
|
@ -5421,7 +5421,7 @@ void dml314_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_
|
|||
for (j = 0; j <= 1; ++j) {
|
||||
double VMDataOnlyReturnBWPerState;
|
||||
double HostVMInefficiencyFactor = 1;
|
||||
int NextPrefetchModeState = MinPrefetchMode;
|
||||
unsigned int NextPrefetchModeState = MinPrefetchMode;
|
||||
bool UnboundedRequestEnabledThisState = false;
|
||||
unsigned int CompressedBufferSizeInkByteThisState = 0;
|
||||
double dummy;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user