diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-13 01:23:12 +0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-10-18 19:09:54 +0300 |
commit | c91cf42f61dc77b289784ea7b15a8531defa41c0 (patch) | |
tree | a72d48205347fd090976b72346f33d40ac9fffac /ipc | |
parent | 67512a8cf5a730938fdb1e48de33edfef6015e03 (diff) | |
download | linux-c91cf42f61dc77b289784ea7b15a8531defa41c0.tar.xz |
MIPS: sni: Fix the build
This patch fixes the following gcc 10 build error:
arch/mips/sni/time.c: In function ‘a20r_set_periodic’:
arch/mips/sni/time.c:15:26: error: unsigned conversion from ‘int’ to ‘u8’ {aka ‘volatile unsigned char’} changes value from ‘576’ to ‘64’ [-Werror=overflow]
15 | #define SNI_COUNTER0_DIV ((SNI_CLOCK_TICK_RATE / SNI_COUNTER2_DIV) / HZ)
| ^
arch/mips/sni/time.c:21:45: note: in expansion of macro ‘SNI_COUNTER0_DIV’
21 | *(volatile u8 *)(A20R_PT_CLOCK_BASE + 0) = SNI_COUNTER0_DIV;
| ^~~~~~~~~~~~~~~~
Cc: linux-mips@vger.kernel.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions