Bart Van Assche
1ab3b4f4f4
MIPS: sni: Fix the build
...
[ Upstream commit c91cf42f61dc77b289784ea7b15a8531defa41c0 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 10:47:16 +01:00
..
2021-09-30 10:09:26 +02:00
2021-09-22 12:26:45 +02:00
2021-11-26 10:47:16 +01:00
2021-11-26 10:47:15 +01:00
2019-09-24 15:54:09 -07:00
2021-10-20 11:40:12 +02:00
2021-02-17 10:35:18 +01:00
2021-07-20 16:10:50 +02:00
2021-11-17 09:48:29 +01:00
2021-11-17 09:48:46 +01:00
2020-02-24 08:37:02 +01:00
2021-11-26 10:47:16 +01:00
2021-07-28 13:31:01 +02:00
2021-11-02 19:46:14 +01:00
2021-09-22 12:26:24 +02:00
2021-11-21 13:38:50 +01:00
2021-11-17 09:48:50 +01:00
2021-10-13 10:08:20 +02:00
2021-11-17 09:48:39 +01:00
2021-11-17 09:48:46 +01:00
2021-10-09 14:39:49 +02:00
2021-09-26 14:07:08 +02:00
2019-09-26 10:10:44 -07:00
2021-11-17 09:48:33 +01:00
2021-10-27 09:54:25 +02:00
2020-12-30 11:51:47 +01:00