diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-02-27 11:59:10 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-03-30 01:32:25 +0300 |
commit | b4a2adbf3586efa12fe78b9dec047423e01f3010 (patch) | |
tree | 0039bfca04c29b8efdeca6aad91e52f2116ddc35 /drivers/clk/clk-stm32h7.c | |
parent | 6cba789f8982b38be37daa1b67b8488710b47b29 (diff) | |
download | linux-b4a2adbf3586efa12fe78b9dec047423e01f3010.tar.xz |
clk: tegra20: fix gcc-7 constant overflow warning
Older gcc versions get confused by comparing a u32 value to a negative
constant in a switch()/case block:
drivers/clk/tegra/clk-tegra20.c: In function 'tegra20_clk_measure_input_freq':
drivers/clk/tegra/clk-tegra20.c:581:2: error: case label does not reduce to an integer constant
case OSC_CTRL_OSC_FREQ_12MHZ:
^~~~
drivers/clk/tegra/clk-tegra20.c:593:2: error: case label does not reduce to an integer constant
case OSC_CTRL_OSC_FREQ_26MHZ:
Make the constants unsigned instead.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230227085914.2560984-1-arnd@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-stm32h7.c')
0 files changed, 0 insertions, 0 deletions