Wrap hwctrl_dump_state() with debug macro DEBUG_DECODER_DRIVER, to fix below building issue: drivers/media/platform/vxe-vxd/decoder/hw_control.c:775:13: error: 'hwctrl_dump_state' defined but not used [-Werror=unused-function] | 775 | static void hwctrl_dump_state(struct vxd_states *prev_state, | | ^~~~~~~~~~~~~~~~~
Signed-off-by: Xulin Sun <[email protected]> --- drivers/media/platform/vxe-vxd/decoder/hw_control.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/vxe-vxd/decoder/hw_control.c b/drivers/media/platform/vxe-vxd/decoder/hw_control.c index 8cc524e7d2f7..a68c98ec605a 100644 --- a/drivers/media/platform/vxe-vxd/decoder/hw_control.c +++ b/drivers/media/platform/vxe-vxd/decoder/hw_control.c @@ -772,6 +772,7 @@ static int vdeckm_get_message(const void *hndl_vxd, const enum hwctrl_msgid msgi return result; } +#ifdef DEBUG_DECODER_DRIVER static void hwctrl_dump_state(struct vxd_states *prev_state, struct vxd_states *cur_state, unsigned char pipe_minus1) @@ -818,6 +819,7 @@ static void hwctrl_dump_state(struct vxd_states *prev_state, cur_state->fw_state.pipe_state[pipe_minus1].acheck_point [VDECFW_CHECKPOINT_PICTURE_STARTED]); } +#endif static unsigned int hwctrl_calculate_load(struct bspp_pict_hdr_info *pict_hdr_info) { -- 2.36.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12267): https://lists.yoctoproject.org/g/linux-yocto/message/12267 Mute This Topic: https://lists.yoctoproject.org/mt/97724005/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
