mirror of https://github.com/torvalds/linux.git
This is one of three clang warnings about incompatible enum types
in a conditional expression:
drivers/media/platform/mediatek/vcodec/encoder/venc/venc_h264_if.c:597:29: error: conditional expression between different enumeration types ('enum scp_ipi_id' and 'enum ipi_id') [-Werror,-Wenum-compare-conditional]
597 | inst->vpu_inst.id = is_ext ? SCP_IPI_VENC_H264 : IPI_VENC_H264;
| ^ ~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
The code is correct, so just rework it to avoid the warning.
Fixes:
|
||
|---|---|---|
| .. | ||
| venc | ||
| Makefile | ||
| mtk_vcodec_enc.c | ||
| mtk_vcodec_enc.h | ||
| mtk_vcodec_enc_drv.c | ||
| mtk_vcodec_enc_drv.h | ||
| mtk_vcodec_enc_pm.c | ||
| mtk_vcodec_enc_pm.h | ||
| venc_drv_base.h | ||
| venc_drv_if.c | ||
| venc_drv_if.h | ||
| venc_ipi_msg.h | ||
| venc_vpu_if.c | ||
| venc_vpu_if.h | ||