bsps/powerpc: Address missing field initializer warnings

Address missing field initializer warnings.

These were all rtems_irq_connect_data declarations with initialization.
The initialization was changed to using named fields and specifying an
initializer for each field.
This commit is contained in:
Joel Sherrill
2025-10-12 10:45:24 -05:00
committed by Kinsey Moore
parent d9e156f3a3
commit f6e7b3bfbf
6 changed files with 40 additions and 27 deletions

View File

@@ -30,11 +30,12 @@
#define Install_tm27_vector( handler ) \
do { \
static rtems_irq_connect_data scIrqData = { \
PPC_IRQ_SCALL, \
handler, \
NULL, \
NULL, \
NULL \
.name = PPC_IRQ_SCALL, \
.hdl = handler, \
.handle = NULL, \
.on = NULL, \
.off = NULL, \
.isOn = NULL \
}; \
BSP_install_rtems_irq_handler (&scIrqData); \
} while(0)

View File

@@ -38,8 +38,13 @@ static void nop_func(void *unused)
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
static rtems_irq_global_settings initial_config;
static rtems_irq_connect_data defaultIrq = {
/* vectorIdex, hdl , handle , on , off , isOn */
0, nop_func , NULL , 0 , 0 , 0
.name = 0,
.hdl = nop_func,
.handle = NULL,
.on = NULL,
.off = NULL,
.isOn = NULL,
.next_handler = NULL
};
static rtems_irq_prio irqPrioTable[BSP_IRQ_NUMBER]={

View File

@@ -46,12 +46,13 @@ static int stub_rtems_irq_is_enabled(
}
static rtems_irq_connect_data clockIrqData = {
BSP_DECREMENTER,
0,
0,
stub_rtems_irq_enable,
stub_rtems_irq_disable,
stub_rtems_irq_is_enabled
.name = BSP_DECREMENTER,
.hdl = 0,
.handle = 0,
.on = stub_rtems_irq_enable,
.off = stub_rtems_irq_disable,
.isOn = stub_rtems_irq_is_enabled,
.next_handler = NULL
};
static inline void Install_tm27_vector( rtems_interrupt_handler handler )

View File

@@ -29,8 +29,13 @@
static rtems_irq_connect_data rtemsIrq[BSP_IRQ_NUMBER];
static rtems_irq_global_settings initial_config;
static rtems_irq_connect_data defaultIrq = {
/* vectorIdex, hdl , handle , on , off , isOn */
0, NULL, NULL , NULL, NULL, NULL
.name = 0,
.hdl = NULL,
.handle = NULL,
.on = NULL,
.off = NULL,
.isOn = NULL,
.next_handler = NULL
};
static rtems_irq_prio irqPrioTable[BSP_IRQ_NUMBER]={
/*

View File

@@ -23,12 +23,13 @@
static rtems_irq_connect_data clockIrqData;
static rtems_irq_connect_data clockIrqData = {
BSP_DECREMENTER,
clockIsr,
NULL,
(rtems_irq_enable)clockOn,
(rtems_irq_disable)clockOff,
(rtems_irq_is_enabled) clockIsOn
.name = BSP_DECREMENTER,
.hdl = clockIsr,
.handle = NULL,
.on = (rtems_irq_enable)clockOn,
.off = (rtems_irq_disable)clockOff,
.isOn = (rtems_irq_is_enabled) clockIsOn,
.next_handler = NULL
};
int BSP_disconnect_clock_handler(void)

View File

@@ -5,10 +5,10 @@
#include <bsp.h>
rtems_irq_connect_data tm27IrqData = {
CPU_USIU_EXT_IRQ_7,
(rtems_irq_hdl)0,
NULL,
NULL,
NULL
.name = CPU_USIU_EXT_IRQ_7,
.hdl = 0,
.handle = NULL,
.on = NULL,
.off = NULL,
.isOn = NULL
};