Xiang Xiao
31a6ffa15c
arm/sama5: Fix error: array subscript 0 is outside array bounds
chip/sam_emaca.c: In function 'sam_emac_interrupt':
Error: /github/workspace/sources/nuttx/arch/arm/src/common/arm_internal.h:140:25: error: array subscript 0 is outside array bounds of 'volatile uint32_t[0]' {aka 'volatile long unsigned int[]'} [-Werror=array-bounds=]
140 | #define getreg32(a) (*(volatile uint32_t *)(a))
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~
chip/sam_emaca.c:364:37: note: in expansion of macro 'getreg32'
364 | # define sam_getreg(priv,addr) getreg32(addr)
| ^~~~~~~~
chip/sam_emaca.c:1630:9: note: in expansion of macro 'sam_getreg'
1630 | tsr = sam_getreg(priv, SAM_EMAC_TSR_OFFSET);
| ^~~~~~~~~~
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-19 08:36:49 +08:00
..
2023-12-19 08:36:49 +08:00
2023-12-11 17:00:10 -03:00
2023-11-15 08:28:25 -08:00
2023-10-06 20:00:04 -04:00
2023-11-15 08:28:25 -08:00
2023-12-14 20:02:52 -08:00
2023-12-16 05:26:16 -08:00
2023-11-15 08:28:25 -08:00
2023-11-15 08:28:25 -08:00
2023-12-17 01:10:57 -08:00
2023-12-18 09:06:29 -08:00
2023-12-11 17:00:10 -03:00
2023-11-21 21:52:24 -08:00
2023-11-21 21:52:24 -08:00
2023-12-16 05:26:16 -08:00
2023-11-15 08:28:25 -08:00
2023-11-15 08:28:25 -08:00
2023-07-08 13:50:48 +08:00
2023-12-11 08:43:26 -08:00