linux/arch/mips/sni
Bart Van Assche c91cf42f61 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>
2021-10-18 18:09:54 +02:00
..
a20r.c MIPS: SNI: Fix spurious interrupts 2020-09-16 22:40:58 +02:00
eisa.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 210 2019-05-30 11:29:53 -07:00
irq.c MIPS: Replace setup_irq() by request_irq() 2020-03-05 16:47:35 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
pcimt.c
pcit.c MIPS: pass non-NULL dev_id on shared request_irq() 2020-03-16 16:04:49 +01:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
reset.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rm200.c MIPS: pass non-NULL dev_id on shared request_irq() 2020-03-16 16:04:49 +01:00
setup.c MIPS: Cleanup CP0 PRId and CP1 FPIR register access masks 2013-09-18 20:25:19 +02:00
time.c MIPS: sni: Fix the build 2021-10-18 18:09:54 +02:00