diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2024-10-13 16:42:43 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2024-10-13 16:42:43 +0300 |
commit | cab36b84b72b7eabba1639dc7520161d7de8567b (patch) | |
tree | c7cb95693fd03041d0f746ea683148d20a9387ff | |
parent | 5723bf36a6f222828f00962a067480a1ad7fd98f (diff) |
dsp: q6voice: Switch to __builtin_add_overflow
As seen on newer kernels
Change-Id: I87f0a408c211f956ebe8acaf23cbdd8c89fef9e5
-rw-r--r-- | sound/soc/msm/qdsp6v2/q6voice.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6voice.c b/sound/soc/msm/qdsp6v2/q6voice.c index a1f1fafbdf8d..a2d7c334ee7b 100644 --- a/sound/soc/msm/qdsp6v2/q6voice.c +++ b/sound/soc/msm/qdsp6v2/q6voice.c @@ -17,7 +17,6 @@ #include <linux/wait.h> #include <linux/mutex.h> #include <linux/msm_audio_ion.h> -#include <linux/overflow.h> #include <soc/qcom/socinfo.h> #include <linux/qdsp6v2/apr_tal.h> @@ -6802,8 +6801,8 @@ static int32_t qdsp_cvs_callback(struct apr_client_data *data, void *priv) cvs_voc_pkt = v->shmem_info.sh_buf.buf[1].data; - if (__unsigned_add_overflow(cvs_voc_pkt[2], - (uint32_t)(3 * sizeof(uint32_t)), &tot_buf_sz)) { + if (__builtin_add_overflow(cvs_voc_pkt[2], + 3 * sizeof(uint32_t), &tot_buf_sz)) { pr_err("%s: integer overflow detected\n", __func__); return -EINVAL; } |