diff options
| author | Sam Ravnborg <[email protected]> | 2024-02-24 17:42:23 +0000 |
|---|---|---|
| committer | Andreas Larsson <[email protected]> | 2024-03-08 20:20:23 +0000 |
| commit | 7bfba2ca462356331c735e68cff1cb7515150bad (patch) | |
| tree | 19d13f0c2663c41a23e73e94efc419e41f3da270 /drivers/fpga/altera-fpga2sdram.c | |
| parent | sparc32: Use generic cmpdi2/ucmpdi2 variants (diff) | |
| download | kernel-7bfba2ca462356331c735e68cff1cb7515150bad.tar.gz kernel-7bfba2ca462356331c735e68cff1cb7515150bad.zip | |
sparc32: Fix build with trapbase
Fix the following build errors:
irq_32.c:258:7: error: array subscript [16, 79] is outside array bounds of 'struct tt_entry[1]
irq_32.c:271:14: error: assignment to 'struct tt_entry *' from incompatible pointer type 'struct tt_entry (*)[]
trapbase is a pointer to an array of tt_entry, but the code declared it
as a pointer so the compiler see a single entry and not an array.
Fix this by modifyinf the declaration to be an array, and modify all
users to take the address of the first member.
Signed-off-by: Sam Ravnborg <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]> # build-tested
Cc: Andreas Larsson <[email protected]>
Cc: "David S. Miller" <[email protected]>
Reviewed-by: Andreas Larsson <[email protected]>
Tested-by: Andreas Larsson <[email protected]>
Signed-off-by: Andreas Larsson <[email protected]>
Link: https://lore.kernel.org/r/20240224-sam-fix-sparc32-all-builds-v2-2-1f186603c5c4@ravnborg.org
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions
