alpha/sys_sio: Add const to irq_tab
PATCH 1/1 alpha/sys_sio: Add const to irq_tab
The IRQ tables in noname_map_irq and p2k_map_irq are not modified. Make them const.
Signed-off-by Jonathan Neuschäfer <[email protected]>
--- arch/alpha/kernel/sys_sio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/alpha/kernel/sys_sio.c +2 -2
@@ -183,7 +183,7 @@ noname_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)* that they use the default INTA line, if they are interrupt * driven at all). */ -static char irq_tab[][5 ] = { +static const char irq_tab[][5 ] = {/*INT A B C D */ {3 ,3 ,3 ,3 ,3 },/* idsel 6 (53c810) */ {-1 ,-1 ,-1 ,-1 ,-1 },/* idsel 7 (SIO: PCI/ISA bridge) */
@@ -211,7 +211,7 @@ noname_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)static inline int p2k_map_irq (const struct pci_dev *dev,u8 slot,u8 pin) { -static char irq_tab[][5 ] = { +static const char irq_tab[][5 ] = {/*INT A B C D */ {0 ,0 ,-1 ,-1 ,-1 },/* idsel 6 (53c810) */ {-1 ,-1 ,-1 ,-1 ,-1 },/* idsel 7 (SIO: PCI/ISA bridge) */
---
base-commit: 4cece764965020c22cff7665b18a012006359095
change-id: 20240502-const-alpha-89843a2c62a1
Best regards,
--
Jonathan Neuschäfer <[email protected]>