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 0/4] ALSA: Fix compiler warnings in sound subsystem
Date: Fri, 17 Jul 2026 15:02:48 +0800 [thread overview]
Message-ID: <20260717070252.525545-1-wangdich9700@163.com> (raw)
From: wangdicheng <wangdicheng@kylinos.cn>
This series fixes four compiler warnings in the sound subsystem,
covering both logical redundancies and potential runtime bugs.
Two categories of warnings are addressed:
1. "possible condition with no effect (if == else)" -- redundant
conditional branches that produce identical code. These are
cosmetic issues but should be cleaned up.
2. "do_div() does a 64-by-32 division" -- use of do_div() with
a 64-bit divisor, which silently truncates the upper 32 bits.
These are potential runtime bugs on 64-bit platforms where the
divisor may exceed the 32-bit range.
Patches 1-2 fix the if==else warnings.
Patches 3-4 fix the do_div() warnings.
wangdicheng (4):
ASoC: mediatek: mt8189: Remove redundant else-if branch with identical
body
ALSA: sparc/dbri: Fix "possible condition with no effect" warning
ASoC: fsl_easrc: Use div64_u64 for 64-by-64 division
ASoC: tlv320aic32x4: Use div64_ul for division by unsigned long
sound/soc/codecs/tlv320aic32x4-clk.c | 2 +-
sound/soc/fsl/fsl_easrc.c | 2 +-
sound/soc/mediatek/mt8189/mt8189-dai-adda.c | 2 --
sound/sparc/dbri.c | 2 ++
4 files changed, 4 insertions(+), 4 deletions(-)
--
2.25.1
next reply other threads:[~2026-07-17 7:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 7:02 wangdich9700 [this message]
2026-07-17 7:02 ` [PATCH 1/4] ASoC: mediatek: mt8189: Remove redundant else-if branch with identical body wangdich9700
2026-07-17 7:02 ` [PATCH 2/4] ALSA: sparc/dbri: Fix "possible condition with no effect" warning wangdich9700
2026-07-17 7:02 ` [PATCH 3/4] ASoC: fsl_easrc: Use div64_u64 for 64-by-64 division wangdich9700
2026-07-17 8:04 ` David Laight
2026-07-17 7:02 ` [PATCH 4/4] ASoC: tlv320aic32x4: Use div64_ul for division by unsigned long wangdich9700
2026-07-17 8:06 ` David Laight
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260717070252.525545-1-wangdich9700@163.com \
--to=wangdich9700@163.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=tiwai@suse.de \
--cc=wangdicheng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox