Jetson Nano legacy fails do build kernel
Description
Environment
In file included from ./arch/arm64/include/asm/atomic.h:34,
from ./include/linux/atomic.h:4,
from drivers/cdrom/cdrom.c:268:
drivers/cdrom/cdrom.c: In function 'cdrom_sysctl_register':
./arch/arm64/include/asm/atomic_lse.h:458:9: error: array subscript 'long unsigned int[0]' is partly outside array bounds of 'atomic_t[1]' [-Werror=array-bounds]
458 | asm volatile(ARM64_LSE_ATOMIC_INSN( \
| ^~~
./arch/arm64/include/asm/atomic_lse.h:487:1: note: in expansion of macro '__CMPXCHG_CASE'
487 | __CMPXCHG_CASE(w, , mb_4, al, "memory")
| ^~~~~~~~~~~~~~
drivers/cdrom/cdrom.c:3687:25: note: while referencing 'initialized'
3687 | static atomic_t initialized = ATOMIC_INIT(0);
| ^~~~~~~~~~~
Checklist
hideActivity
Show:
Igor Pecovnik May 2, 2023 at 2:22 PM
Legacy kernel was removed from the system.
Unresolved
Details
Details
Assignee
balbes150
balbes150Reporter
Igor Pecovnik
Igor PecovnikLabels
SOC
Tegra X1
Board Name
jetson-nano
Components
Sprint
None
Fix versions
Affects versions
Priority
Parent
Created February 23, 2023 at 2:00 PM
Updated August 2, 2024 at 11:30 AM
Probably due to the compilers change.