bsps/shared/*: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 20:52:14 +00:00
committed by Gedare Bloom
parent 1339ef1b10
commit bc959e983f
39 changed files with 234 additions and 0 deletions
+19
View File
@@ -77,6 +77,9 @@ rtems_device_driver console_initialize(
void *arg
)
{
(void) minor;
(void) arg;
rtems_status_code status;
/*
@@ -131,6 +134,10 @@ rtems_device_driver console_close(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_close( arg );
}
@@ -140,6 +147,10 @@ rtems_device_driver console_read(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_read( arg );
}
@@ -149,6 +160,10 @@ rtems_device_driver console_write(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_write( arg );
}
@@ -158,5 +173,9 @@ rtems_device_driver console_control(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_ioctl( arg );
}
@@ -45,6 +45,9 @@ rtems_device_driver console_initialize(
void *arg
)
{
(void) major;
(void) arg;
bool console_device_done = false;
rtems_termios_initialize();
@@ -60,5 +60,8 @@ rtems_device_driver console_control(
void * arg
)
{
(void) major;
(void) minor;
return rtems_termios_ioctl (arg);
}
+12
View File
@@ -298,6 +298,8 @@ rtems_device_driver console_close(
void * arg
)
{
(void) major;
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *current_tty;
console_tbl *cptr;
@@ -332,6 +334,10 @@ rtems_device_driver console_initialize(
void *arg
)
{
(void) major;
(void) minor_arg;
(void) arg;
rtems_status_code status;
rtems_device_minor_number minor;
console_tbl *port;
@@ -407,6 +413,9 @@ rtems_device_driver console_read(
void * arg
)
{
(void) major;
(void) minor;
return rtems_termios_read (arg);
}
@@ -421,5 +430,8 @@ rtems_device_driver console_write(
void * arg
)
{
(void) major;
(void) minor;
return rtems_termios_write (arg);
}
+6
View File
@@ -290,6 +290,9 @@ MC68681_STATIC int mc68681_open(
void *arg
)
{
(void) major;
(void) arg;
uint32_t pMC68681;
uint32_t pMC68681_port;
unsigned int baud;
@@ -347,6 +350,9 @@ MC68681_STATIC int mc68681_close(
void *arg
)
{
(void) major;
(void) arg;
uint32_t pMC68681_port;
setRegister_f setReg;
+13
View File
@@ -427,6 +427,10 @@ static void ns16550_initialize_interrupts(
rtems_fatal_error_occurred( 0xdeadbeef);
}
}
#else
(void) tty;
(void) ctx;
(void) isr;
#endif
}
@@ -441,6 +445,9 @@ static bool ns16550_open(
rtems_libio_open_close_args_t *args
)
{
(void) term;
(void) args;
ns16550_context *ctx = (ns16550_context *) base;
ctx->tty = tty;
@@ -490,6 +497,10 @@ static void ns16550_cleanup_interrupts(
printk("%s: Error: Remove interrupt handler\n", __func__);
rtems_fatal_error_occurred(0xdeadbeef);
}
#else
(void) tty;
(void) ctx;
(void) isr;
#endif
}
@@ -503,6 +514,8 @@ static void ns16550_close(
rtems_libio_open_close_args_t *args
)
{
(void) args;
ns16550_context *ctx = (ns16550_context *) base;
ns16550_enable_interrupts(ctx, NS16550_DISABLE_ALL_INTR);
+10
View File
@@ -311,6 +311,9 @@ int ns16550_open(
void *arg
)
{
(void) major;
(void) arg;
rtems_libio_open_close_args_t *oc = (rtems_libio_open_close_args_t *) arg;
struct rtems_termios_tty *tty = (struct rtems_termios_tty *) oc->iop->data1;
console_tbl *c = Console_Port_Tbl [minor];
@@ -344,6 +347,9 @@ int ns16550_close(
void * arg
)
{
(void) major;
(void) arg;
console_tbl *c = Console_Port_Tbl [minor];
/*
@@ -792,6 +798,8 @@ NS16550_STATIC void ns16550_initialize_interrupts( int minor)
rtems_fatal_error_occurred( 0xdeadbeef);
}
}
#else
(void) minor;
#endif
}
@@ -824,6 +832,8 @@ NS16550_STATIC void ns16550_cleanup_interrupts(int minor)
printk("%s: Error: Remove interrupt handler\n", __func__);
rtems_fatal_error_occurred(0xdeadbeef);
}
#else
(void) minor;
#endif
}
+2
View File
@@ -43,6 +43,8 @@
static void BSP_output_char_f(char c)
{
(void) c;
/* the character just needs to disappear */
}
+2
View File
@@ -4,6 +4,8 @@
bool libchip_serial_default_probe(int minor)
{
(void) minor;
/*
* If the configuration dependent probe has located the device then
* assume it is there
+5
View File
@@ -215,6 +215,8 @@ Z85C30_STATIC int z85c30_open(
void *arg
)
{
(void) major;
(void) arg;
z85c30_initialize_port(minor);
@@ -239,6 +241,9 @@ Z85C30_STATIC int z85c30_close(
void *arg
)
{
(void) major;
(void) arg;
/*
* Negate DTR
*/
+5
View File
@@ -67,6 +67,9 @@ static bool zynq_uart_first_open(
rtems_libio_open_close_args_t *args
)
{
(void) term;
(void) args;
zynq_uart_context *ctx = (zynq_uart_context *) base;
volatile zynq_uart *regs = ctx->regs;
#ifdef ZYNQ_CONSOLE_USE_INTERRUPTS
@@ -103,6 +106,8 @@ static void zynq_uart_last_close(
rtems_libio_open_close_args_t *args
)
{
(void) args;
zynq_uart_context *ctx = (zynq_uart_context *) base;
rtems_interrupt_handler_remove(ctx->irq, zynq_uart_interrupt, tty);