Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] ALSA: Fix compiler warnings in sound subsystem
@ 2026-07-17  7:02 wangdich9700
  2026-07-17  7:02 ` [PATCH 1/4] ASoC: mediatek: mt8189: Remove redundant else-if branch with identical body wangdich9700
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: wangdich9700 @ 2026-07-17  7:02 UTC (permalink / raw)
  To: tiwai, wangdich9700, broonie; +Cc: wangdicheng, linux-sound, linux-kernel

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-07-17  8:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17  7:02 [PATCH 0/4] ALSA: Fix compiler warnings in sound subsystem wangdich9700
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox