bsps/riscv/riscv: 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 14:15:00 -05:00
committed by Gedare Bloom
parent 1cf1b039a6
commit 8702ef9677
6 changed files with 26 additions and 0 deletions

View File

@@ -179,6 +179,10 @@ static void riscv_clock_secondary_initialization(
if (cmpval - riscv_clock_read_mtime(&clint->mtime) >= interval) {
bsp_fatal(RISCV_FATAL_CLOCK_SMP_INIT);
}
#else
(void) clint;
(void) cmpval;
(void) interval;
#endif
}

View File

@@ -281,6 +281,10 @@ rtems_status_code console_initialize(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
#ifdef RISCV_ENABLE_HTIF_SUPPORT
rtems_termios_device_context *base;
char htif_path[] = "/dev/ttyShtif";

View File

@@ -78,6 +78,9 @@ static bool fe310_uart_first_open (
rtems_libio_open_close_args_t *args
)
{
(void) term;
(void) args;
fe310_uart_context * ctx;
rtems_status_code sc;

View File

@@ -79,6 +79,8 @@ static void __set_tohost(uintptr_t dev, uintptr_t cmd, uintptr_t data)
int htif_console_getchar(rtems_termios_device_context *base)
{
(void) base;
__check_fromhost();
int ch = htif_console_buf;
if (ch >= 0) {
@@ -91,6 +93,8 @@ int htif_console_getchar(rtems_termios_device_context *base)
void htif_console_putchar(rtems_termios_device_context *base, char c)
{
(void) base;
__set_tohost(1, 1, c);
}
@@ -120,6 +124,8 @@ void htif_console_context_init(
int device_tree_node
)
{
(void) device_tree_node;
rtems_termios_device_context_initialize(base, "HTIF");
}
@@ -130,6 +136,11 @@ static bool htif_console_first_open(
rtems_libio_open_close_args_t *args
)
{
(void) tty;
(void) base;
(void) term;
(void) args;
return true;
}

View File

@@ -446,6 +446,8 @@ rtems_status_code bsp_interrupt_raise_on(
rtems_status_code bsp_interrupt_clear(rtems_vector_number vector)
{
(void) vector;
bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
return RTEMS_UNSATISFIED;
}

View File

@@ -51,6 +51,8 @@ uint32_t _CPU_SMP_Initialize(void)
bool _CPU_SMP_Start_processor(uint32_t cpu_index)
{
(void) cpu_index;
return true;
}