Re: [PATCH] clk: tegra20: fix gcc-7 constant overflow warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Arnd Bergmann (2023-02-27 00:59:10)
> From: Arnd Bergmann <arnd@xxxxxxxx>
> 
> 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@xxxxxxxx>
> ---

Applied to clk-next




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux