diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-05-07 16:21:31 -0700 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-08 09:52:17 +0900 |
| commit | 04b8f96b10881006e8aadbf72c59427ec5eaa9b4 (patch) | |
| tree | 742a94e3968da4736b6f3cdd109cf772701da04f /include/linux/timerqueue.h | |
| parent | c4e19a93df81a99dfda0886a8296a8c8830ddd6b (diff) | |
ASoC: tegra: tegra210-mixer: Use div_u64() for 64-bit division
A MIPS allmodconfig build with LLVM fails during modpost:
ERROR: modpost: "__udivdi3"
[sound/soc/tegra/snd-soc-tegra210-mixer.ko] undefined!
tegra210_mixer_configure_gain() divides a 64-bit BIT_ULL() value by the
fade duration. On 32-bit MIPS, clang emits a call to __udivdi3 for that
plain C division, but that compiler helper is not exported to modules.
Use div_u64() for the inverse duration calculation so the driver uses the
kernel's 64-bit division helper instead of emitting a compiler runtime
call.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260507232131.438589-1-rosenp@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
