mirror of https://github.com/torvalds/linux.git
Clang warns when one enumerated type is implicitly converted to another.
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:315:19: warning:
implicit conversion from enumeration type 'enum
aux_channel_operation_result' to different enumeration type 'enum
aux_transaction_reply' [-Wenum-conversion]
reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON;
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/i2caux/dce110/aux_engine_dce110.c:349:19:
warning: implicit conversion from enumeration type 'enum
aux_channel_operation_result' to different enumeration type 'enum
aux_transaction_reply' [-Wenum-conversion]
reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON;
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The current enum is incorrect, it should be from aux_transaction_reply,
so use AUX_TRANSACTION_REPLY_HPD_DISCON.
Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| dce_abm.c | ||
| dce_abm.h | ||
| dce_audio.c | ||
| dce_audio.h | ||
| dce_aux.c | ||
| dce_aux.h | ||
| dce_clock_source.c | ||
| dce_clock_source.h | ||
| dce_clocks.c | ||
| dce_clocks.h | ||
| dce_dmcu.c | ||
| dce_dmcu.h | ||
| dce_hwseq.c | ||
| dce_hwseq.h | ||
| dce_i2c.c | ||
| dce_i2c.h | ||
| dce_i2c_hw.c | ||
| dce_i2c_hw.h | ||
| dce_i2c_sw.c | ||
| dce_i2c_sw.h | ||
| dce_ipp.c | ||
| dce_ipp.h | ||
| dce_link_encoder.c | ||
| dce_link_encoder.h | ||
| dce_mem_input.c | ||
| dce_mem_input.h | ||
| dce_opp.c | ||
| dce_opp.h | ||
| dce_scl_filters.c | ||
| dce_stream_encoder.c | ||
| dce_stream_encoder.h | ||
| dce_transform.c | ||
| dce_transform.h | ||