From 249b1f9bf16f3b690848ca874d1a810fb85112ee Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Fri, 30 Mar 2018 09:21:47 +0800 Subject: [PATCH] ASoC: fix compilation warnings after enabling LLVM After enabling compilation with LLVM for audio drivers, some assignment warnings are reported. Add this change to resolve the compilation warnings. Change-Id: I571b2e210053bc0b80d65cd272ce1751e0ed10fb Signed-off-by: Meng Wang --- asoc/codecs/wcd_cpe_services.c | 4 ++-- dsp/q6lsm.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/asoc/codecs/wcd_cpe_services.c b/asoc/codecs/wcd_cpe_services.c index fc8242a912..e584cf05a6 100644 --- a/asoc/codecs/wcd_cpe_services.c +++ b/asoc/codecs/wcd_cpe_services.c @@ -654,7 +654,7 @@ static void cpe_notify_cmi_client(struct cpe_info *t_info, u8 *payload, hdr = CMI_GET_HEADER(payload); service = CMI_HDR_GET_SERVICE(hdr); - notif.event = CPE_SVC_CMI_MSG; + notif.event = CMI_API_MSG; notif.result = result; notif.message = payload; @@ -1170,7 +1170,7 @@ static enum cpe_process_result cpe_boot_complete( } pr_debug("%s: boot complete\n", __func__); - return CPE_SVC_SUCCESS; + return CPE_PROC_SUCCESS; } static enum cpe_process_result cpe_process_send_msg( diff --git a/dsp/q6lsm.c b/dsp/q6lsm.c index 108e4be402..3d87a8df5a 100644 --- a/dsp/q6lsm.c +++ b/dsp/q6lsm.c @@ -225,7 +225,7 @@ static void q6lsm_session_free(struct lsm_client *client) pr_debug("%s: Freeing session ID %d\n", __func__, client->session); spin_lock_irqsave(&lsm_session_lock, flags); - lsm_session[client->session] = LSM_INVALID_SESSION_ID; + lsm_session[client->session] = NULL; spin_unlock_irqrestore(&lsm_session_lock, flags); client->session = LSM_INVALID_SESSION_ID; }