diff options
| author | Li Qiang <[email protected]> | 2024-07-09 06:36:38 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2024-07-10 21:15:54 +0000 |
| commit | 1f7a04a0e673c19cc10bf4039047e11367ac5735 (patch) | |
| tree | f9e07b27c32a1459157ec6a4738379c37b38ed96 /rust/helpers.c | |
| parent | Merge tag 'riscv-sg2042-clk-for-v6.11' of https://github.com/sophgo/linux int... (diff) | |
| download | kernel-1f7a04a0e673c19cc10bf4039047e11367ac5735.tar.gz kernel-1f7a04a0e673c19cc10bf4039047e11367ac5735.zip | |
clk/sophgo: Using BUG() instead of unreachable() in mmux_get_parent_id()
In general it's a good idea to avoid using bare unreachable() because it
introduces undefined behavior in compiled code. but it caused a compilation warning,
Using BUG() instead of unreachable() to resolve compilation warnings.
Fixes the following warnings:
drivers/clk/sophgo/clk-cv18xx-ip.o: warning: objtool: mmux_round_rate() falls through to next function bypass_div_round_rate()
Fixes: 80fd61ec46124 ("clk: sophgo: Add clock support for CV1800 SoC")
Signed-off-by: Li Qiang <[email protected]>
Link: https://lore.kernel.org/r/c8e66d51f880127549e2a3e623be6787f62b310d.1720506143.git.liqiang01@kylinos.cn
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
