From nobody Sat Jul 25 05:59:50 2026 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 464DC3D3D02; Fri, 17 Jul 2026 07:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.3 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271810; cv=none; b=bj3OoeDRdDsThiGw7fJvLANUbHONzS1QWLFaC7QLL8C0yZDKFdrnCym3PGoUZ35zKBn3oFGjx4t6TtdFXCHyyLwSX9MCDuOMWRCIrSxFzdUZpVHn/AO0v8KU4+upZjRG/DfVLlbY4/MM7kQSPguW5NUYBjVcN+IzTYTPxdXJTGA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271810; c=relaxed/simple; bh=xdvhUl3fj3vEiBXcstZ+fMXyE6rnuAmvayHvcz1W3Ag=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CASGLOfjb6rxHrAiE9VcYMfKWUCGK4NT0f0R5R9LexTPJusZAFUzdN3hsNS97uzmfblAAZTNkOFLzzM3cgC9ibHk4CyWatBUlWKXStPwBkBIqc44/CyQxmZjbcRE/e2yLw8iXKt28c4cmeSxlHlBIJVujo3HRPGnXBNEcMewjj8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=atWq+t7m; arc=none smtp.client-ip=117.135.210.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="atWq+t7m" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=S0 B2VIO/6GVhMCL+cF6jfDnuUFJWU0nTzUHZodUQqxI=; b=atWq+t7mDXgUFe4MID XhOHn4vQqq/Batv6JubJxQ0LUZJUsqabQ+9QSk2/aSHhrOa/bpuYXCpnewME2jtK tp/alyLlyQIQtys3zaBMVy4nuJXre0uBJoWugK6UL6MgAqYQERFKmJhYOUXVFWUU sQEh/f4fIMwdSYfdz8MMTJ2kU= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wA3tYmk01lq70RfKQ--.38418S3; Fri, 17 Jul 2026 15:03:03 +0800 (CST) From: wangdich9700@163.com To: tiwai@suse.de, wangdich9700@163.com, broonie@kernel.org Cc: wangdicheng@kylinos.cn, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] ASoC: mediatek: mt8189: Remove redundant else-if branch with identical body Date: Fri, 17 Jul 2026 15:02:49 +0800 Message-Id: <20260717070252.525545-2-wangdich9700@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260717070252.525545-1-wangdich9700@163.com> References: <20260717070252.525545-1-wangdich9700@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wA3tYmk01lq70RfKQ--.38418S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Ww4kXrW5XF17GFyDWr45Wrg_yoW8JFWfpr s0kFZrAFW3Jr4rJF4ktw10kF1Utr1fZF98C34fXw1jy3s8Jr4IgFZ0v342krW8tF9rKF95 Wr1qg34DGry5ta7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0z_GQDDUUUUU= X-CM-SenderInfo: pzdqwv5lfkmliqq6il2tof0z/xtbC5wgQX2pZ06j6YAAA3y Content-Type: text/plain; charset="utf-8" From: wangdicheng Fix a compiler warning about a condition with no effect: sound/mediatek/mt8189/mt8189-dai-adda.c:388:7-9: WARNING: possible conditio= n with no effect (if =3D=3D else) The MTKAIF_PROTOCOL_2 branch and the else branch both write the same value 0xB0 to AFE_AUD_PAD_TOP_CFG0, making the else-if condition meaningless. Remove the redundant branch. Signed-off-by: wangdicheng --- sound/soc/mediatek/mt8189/mt8189-dai-adda.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/mediatek/mt8189/mt8189-dai-adda.c b/sound/soc/mediat= ek/mt8189/mt8189-dai-adda.c index ad5b9546ff63..5c41a6386204 100644 --- a/sound/soc/mediatek/mt8189/mt8189-dai-adda.c +++ b/sound/soc/mediatek/mt8189/mt8189-dai-adda.c @@ -385,8 +385,6 @@ static int mtk_adda_pad_top_event(struct snd_soc_dapm_w= idget *w, if (event =3D=3D SND_SOC_DAPM_PRE_PMU) { if (afe_priv->mtkaif_protocol =3D=3D MTKAIF_PROTOCOL_2_CLK_P2) regmap_write(afe->regmap, AFE_AUD_PAD_TOP_CFG0, 0xB8); - else if (afe_priv->mtkaif_protocol =3D=3D MTKAIF_PROTOCOL_2) - regmap_write(afe->regmap, AFE_AUD_PAD_TOP_CFG0, 0xB0); else regmap_write(afe->regmap, AFE_AUD_PAD_TOP_CFG0, 0xB0); } --=20 2.25.1 From nobody Sat Jul 25 05:59:50 2026 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBE323D9DCD; Fri, 17 Jul 2026 07:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.3 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271820; cv=none; b=s/nCIjLRaYPPLLwy79PLbjsx7ei1pojJQBTixnyyF0BOC6FWZMO7kqztqqaofZPB0aBshIRfjKnQrDxWGrjuJsqwpNNgXWSmfL+ILSq/6IVbvAltgZaxyhc2+KChKbP51bRiYC6u95T+gP95C/JIrMwCHYxAdwO4bLVEw18SmYY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271820; c=relaxed/simple; bh=FIRI9OP4oNPaSmPWGYfIzU5Dt4NyB63dz/qmvRY7u5U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RoX0WbLGeivyGV+GgB/11R4WFGC+iC/wS0myvrhBCp0wqQboiDWj5VsmV343TQxgMs6VFs+DToeG9LNDM6LNLSPHa8pNaeA8zoQPIVKv7XDiQss3bQkqAcukFK+tCT1gyDEbWLT7BnKFFy3s/Yvd718Air71q3EPcSzCoxwBsdo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=PHZYAJiN; arc=none smtp.client-ip=220.197.31.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="PHZYAJiN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=ng xbpgJeDPukXv4+x+vEG0dkbkEZhuzH7wGI/Wnfk9s=; b=PHZYAJiNv+sfajcDb/ e71q9sm6wN07+mHYuI+K4lZ+94Qe7VrwUUVg98wMPGKiyx4Hirw/fH9zP67A9Jhx RP0D2+E7wQ+Rqx+B73bCbM62E/trJTwhtNuKObsL/Awbf73e4NxnoNDUbcknmMo9 BCpTEieImhB0aj0A38n6woSYE= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wA3tYmk01lq70RfKQ--.38418S4; Fri, 17 Jul 2026 15:03:05 +0800 (CST) From: wangdich9700@163.com To: tiwai@suse.de, wangdich9700@163.com, broonie@kernel.org Cc: wangdicheng@kylinos.cn, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ALSA: sparc/dbri: Fix "possible condition with no effect" warning Date: Fri, 17 Jul 2026 15:02:50 +0800 Message-Id: <20260717070252.525545-3-wangdich9700@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260717070252.525545-1-wangdich9700@163.com> References: <20260717070252.525545-1-wangdich9700@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wA3tYmk01lq70RfKQ--.38418S4 X-Coremail-Antispam: 1Uf129KBjvJXoW7Gr4rGr4UWF1DCrWftr17trb_yoW8Jryfpr WkCFWkJFs8Cws8C3s7ta1fAF15Jw1vkrsavFZYkw4rJF98J3y0gFs8G34IkF4fGryF9ay3 uwsYga4xWay5ZaUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zR4CJdUUUUU= X-CM-SenderInfo: pzdqwv5lfkmliqq6il2tof0z/xtbCvwkQX2pZ06lIrQAA3V Content-Type: text/plain; charset="utf-8" From: wangdicheng Fix a compiler warning about a condition with no effect: sound/sparc/dbri.c:1843:1-3: WARNING: possible condition with no effect (if= =3D=3D else) When DBRI_DEBUG is not defined, dprintk expands to an empty do-while statement, making both branches of the if-else no-ops. Guard the entire debug block with #ifdef DBRI_DEBUG to eliminate the warning and keep the rval reference consistent with its declaration scope. Signed-off-by: wangdicheng --- sound/sparc/dbri.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c index 2f5f62079fa4..ccaa36525f8d 100644 --- a/sound/sparc/dbri.c +++ b/sound/sparc/dbri.c @@ -1840,6 +1840,7 @@ static void dbri_process_one_interrupt(struct snd_dbr= i *dbri, int x) int rval =3D D_INTR_GETRVAL(x); #endif =20 +#ifdef DBRI_DEBUG if (channel =3D=3D D_INTR_CMD) { dprintk(D_CMD, "INTR: Command: %-5s Value:%d\n", cmds[command], val); @@ -1847,6 +1848,7 @@ static void dbri_process_one_interrupt(struct snd_dbr= i *dbri, int x) dprintk(D_INT, "INTR: Chan:%d Code:%d Val:%#x\n", channel, code, rval); } +#endif =20 switch (code) { case D_INTR_CMDI: --=20 2.25.1 From nobody Sat Jul 25 05:59:50 2026 Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF70E3D3D02; Fri, 17 Jul 2026 07:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.3 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271817; cv=none; b=kk15jPv5N2EisWPWuX1qKEJi69CyH5p9blZV16AI+pMZ/V5kZEhgw4V0OYEF0xVJ0Iu9sZ/sqiAVF22KdYy3ySSweob3VVZO6wvOmS2l2A4TWEZ5nrPTw95hJyOmbcxjhL2o3c+JySohUXw2OzS2dtWaFieugekq2l3nBhR5ijo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271817; c=relaxed/simple; bh=ooLhbJab2IT/jUsdMQ220H8Nl/Yjwb6jciWzNw5sptg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZzMcdPf33FunspZIB7ujEFsaEynZmEdEzcO4f7hGybuRDsHHs7jTnSbnIhYJ4luxVD/iDGjigDi4WI3S/6l3lgW7ZEMYv/5q5LU8AsYM8YHZBqId8FMK0lz/DJQkowggGTMlMk676Rq3xNAxMdQeVhvLyq+ZHBtJtfmM2NkFBVM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=flbdJ9ZY; arc=none smtp.client-ip=220.197.31.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="flbdJ9ZY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Tm VQJyyUL5l/QZ+zdgCJ4FmSIFyEWgOI5mJJblrlpWs=; b=flbdJ9ZYZqU3Z1B/JR e5Yh/6RjEJqIrCCV+/iQ2Gg+yyyBDQMb2SXbwURBCUvlpWTZ83Oa3VMLSSmFJXqM 9PUUsQWV8mvuw22mXJtsug4n98crfHR/k4Y35vIC4lurfUAK9fUOTZQYGrbJLIKz sIzew0tnQIXyWQepMbBh0gJOE= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wA3tYmk01lq70RfKQ--.38418S5; Fri, 17 Jul 2026 15:03:07 +0800 (CST) From: wangdich9700@163.com To: tiwai@suse.de, wangdich9700@163.com, broonie@kernel.org Cc: wangdicheng@kylinos.cn, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 3/4] ASoC: fsl_easrc: Use div64_u64 for 64-by-64 division Date: Fri, 17 Jul 2026 15:02:51 +0800 Message-Id: <20260717070252.525545-4-wangdich9700@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260717070252.525545-1-wangdich9700@163.com> References: <20260717070252.525545-1-wangdich9700@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wA3tYmk01lq70RfKQ--.38418S5 X-Coremail-Antispam: 1Uf129KBjvJXoW7uF15uFy7uw1Utw4fuF1DAwb_yoW8JFWrpr 9xK398XF98Gr43Jan7Jrs7ZFykJry8Cr4fGa4rt34jv3s8Zw18XFZ3tr1rKay7t3yfGFWS gr1Dt345JF15X3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zi_gArUUUUU= X-CM-SenderInfo: pzdqwv5lfkmliqq6il2tof0z/xtbC5wsQX2pZ06v6sgAA3g Content-Type: text/plain; charset="utf-8" From: wangdicheng Fix a compiler warning about do_div() truncating a 64-bit divisor: sound/soc/fsl/fsl_easrc.c:2061:2-8: WARNING: do_div() does a 64-by-32 divis= ion, please consider using div64_u64 instead. do_div() truncates the divisor to 32 bits, but val1 is u64 and may exceed the 32-bit range after (u64)in_rate << frac_bits >> 12 with frac_bits up to 39. Use div64_u64() to perform a proper 64-by-64 division and avoid potential truncation. Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers") Cc: Signed-off-by: wangdicheng --- sound/soc/fsl/fsl_easrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index 114a6c0b6b73..d0bbe9f71e36 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -2058,7 +2058,7 @@ static int fsl_easrc_m2m_calc_out_len(struct fsl_asrc= _pair *pair, int input_buff /* right shift 12 bit to make ratio in 32bit space */ val2 =3D (u64)in_samples << (frac_bits - 12); val1 =3D val1 >> 12; - do_div(val2, val1); + val2 =3D div64_u64(val2, val1); out_samples =3D val2; =20 out_length =3D out_samples * out_width * channels; --=20 2.25.1 From nobody Sat Jul 25 05:59:50 2026 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B51403D9680; Fri, 17 Jul 2026 07:03:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.3 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271811; cv=none; b=WCsn3k23CeFmQJQ15LxwT1z34aTHzYEePknWZQooO9bLFuwXfsuDbPGT3nB4LCk6ahAKONmMrMffsTih9wTleYconQ/UwnWNo5Uxab54MxPQFe8iKiVJlVHcC+Oll0BUeAw7ne8qVWLRguHbzRS7hJz1/qLk9KkhwyBglWZrNFM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784271811; c=relaxed/simple; bh=NSSUxwzhrRLl3VF5ls8OlgOT8CTVjHMmbbRYoGURK7s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GsyKNcaYG4owHHSTgfQFJ73xnxifGNgkn8fuPIy1LhO2VjrHrakYA7zMctAkeNV+LtcwznxfOcRt7xFNZOULEdbk4yaidhvWeHie3+88OiP2emwHaq2TTKbDNqXv37L6QqAU6sTRsHiaf5b34LkpdpkRe4kC62uVUZNL57HPk/Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=kL5u+YGZ; arc=none smtp.client-ip=117.135.210.3 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="kL5u+YGZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=KL /edl9gcb3Wz3X1+gE3BYShTOewWw5tQb8iVKTTITg=; b=kL5u+YGZ9HmK0smIe5 aBCdiLM0F8u180NMS9+sc+0iZN5MzDlzaL6gMmyZLyuHjogXKncrhOajZR8CLv5J WDB50vSVtJsuIyRqdjKzYmysjxq0m+kP5RVgSUCBPjeUTBv8iI0q8aVf5tgDr+Uw 1Rnv2zb8qLyXrHNS8VqHVMVto= Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-4 (Coremail) with SMTP id _____wA3tYmk01lq70RfKQ--.38418S6; Fri, 17 Jul 2026 15:03:12 +0800 (CST) From: wangdich9700@163.com To: tiwai@suse.de, wangdich9700@163.com, broonie@kernel.org Cc: wangdicheng@kylinos.cn, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 4/4] ASoC: tlv320aic32x4: Use div64_ul for division by unsigned long Date: Fri, 17 Jul 2026 15:02:52 +0800 Message-Id: <20260717070252.525545-5-wangdich9700@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260717070252.525545-1-wangdich9700@163.com> References: <20260717070252.525545-1-wangdich9700@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wA3tYmk01lq70RfKQ--.38418S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7uF18urW7ArWUXr4fAFWkZwb_yoW8JFW3pr nxCrZ5GFWrW3W5Crn2v3W7XFn7uayUCa1xWF1Yk34UXrnxAFn8XFyIqF18ZFZFya4ruw4a 9ryav34UGry5Kw7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0ziY0PDUUUUU= X-CM-SenderInfo: pzdqwv5lfkmliqq6il2tof0z/xtbCvxASYWpZ07BJYQAA3k Content-Type: text/plain; charset="utf-8" From: wangdicheng Fix a compiler warning about do_div() truncating an unsigned long divisor: sound/soc/codecs/tlv320aic32x4-clk.c:169:1-7: WARNING: do_div() does a 64-b= y-32 division, please consider using div64_ul instead. do_div() truncates the divisor to 32 bits, but parent_rate is unsigned long which is 64-bit on 64-bit platforms. Use div64_ul() to correctly handle the unsigned long divisor across all architectures. Fixes: 514b044cba66 ("ASoC: tlv320aic32x4: Model PLL in CCF") Cc: Signed-off-by: wangdicheng --- sound/soc/codecs/tlv320aic32x4-clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320aic32x4-clk.c b/sound/soc/codecs/tlv320= aic32x4-clk.c index 5c0a76a4a106..9359492051ad 100644 --- a/sound/soc/codecs/tlv320aic32x4-clk.c +++ b/sound/soc/codecs/tlv320aic32x4-clk.c @@ -166,7 +166,7 @@ static int clk_aic32x4_pll_calc_muldiv(struct clk_aic32= x4_pll_muldiv *settings, * math in the kernel. */ multiplier =3D (u64) rate * settings->p * 10000; - do_div(multiplier, parent_rate); + multiplier =3D div64_ul(multiplier, parent_rate); =20 /* * J can't be over 64, so R can scale this. --=20 2.25.1