bsps/powerpc/qoriq: 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:09:54 -05:00
committed by Gedare Bloom
parent 2543cb7d85
commit 4caf2c71c1
10 changed files with 49 additions and 0 deletions

View File

@@ -51,5 +51,7 @@ benchmark_timer_t benchmark_timer_read(void)
void benchmark_timer_disable_subtracting_average_overhead(bool find_average_overhead)
{
(void) find_average_overhead;
/* VOID */
}

View File

@@ -141,6 +141,8 @@ static void qoriq_clock_handler_install(rtems_interrupt_handler handler)
static uint32_t qoriq_clock_get_timecount(struct timecounter *tc)
{
(void) tc;
uint32_t ccr = qoriq_timecounter->ccr;
return GTCCR_COUNT_GET(-ccr);

View File

@@ -177,6 +177,11 @@ static bool first_open(
rtems_libio_open_close_args_t *args
)
{
(void) tty;
(void) base;
(void) term;
(void) args;
return false;
}
@@ -185,6 +190,9 @@ static bool set_attributes(
const struct termios *term
)
{
(void) base;
(void) term;
return false;
}

View File

@@ -138,6 +138,9 @@ static bool first_open(
rtems_libio_open_close_args_t *args
)
{
(void) term;
(void) args;
uart_bridge_slave_context *ctx = (uart_bridge_slave_context *) base;
intercom_type type = ctx->type;
@@ -155,6 +158,9 @@ static void last_close(
rtems_libio_open_close_args_t *args
)
{
(void) tty;
(void) args;
uart_bridge_slave_context *ctx = (uart_bridge_slave_context *) base;
qoriq_intercom_service_remove(ctx->type);
@@ -196,6 +202,9 @@ static bool set_attributes(
const struct termios *term
)
{
(void) base;
(void) term;
return false;
}

View File

@@ -500,6 +500,10 @@ static unsigned long epapr_hypercall(unsigned long *in,
unsigned long *out,
unsigned long nr)
{
(void) in;
(void) out;
(void) nr;
return EV_UNIMPLEMENTED;
}
#endif

View File

@@ -552,6 +552,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;
}
@@ -587,6 +589,8 @@ rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
void bsp_interrupt_dispatch(uintptr_t exception_number)
{
(void) exception_number;
while (true) {
rtems_vector_number vector = qoriq.pic.iack;
uint32_t msr;

View File

@@ -161,6 +161,8 @@ void qoriq_intercom_free_packet(intercom_packet *packet)
static void default_service(intercom_packet *packet, void *arg)
{
(void) arg;
qoriq_intercom_free_packet(packet);
}
@@ -200,6 +202,8 @@ static void process_core_fifo(core_fifo *fifo, intercom_service *services, void
static void intercom_task(rtems_task_argument arg)
{
(void) arg;
uint32_t self = ppc_processor_id();
free_list *free_lists = &intercom->free_lists [0];
intercom_service *services = &intercom->services [self][0];

View File

@@ -39,21 +39,31 @@
static void qoriq_rtc_initialize(int minor)
{
(void) minor;
/* FIXME */
}
static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod)
{
(void) minor;
(void) tod;
return -1;
}
static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod)
{
(void) minor;
(void) tod;
return -1;
}
static bool qoriq_rtc_probe(int minor)
{
(void) minor;
return false;
}

View File

@@ -92,6 +92,8 @@ static void start_thread_if_necessary(uint32_t cpu_index_self)
PPC_SET_SPECIAL_PURPOSE_REGISTER(FSL_EIS_TENS, 1U << i);
}
}
#else
(void) cpu_index_self;
#endif
}
@@ -111,6 +113,8 @@ void bsp_start_on_secondary_processor(Per_CPU_Control *cpu_self)
#ifndef QORIQ_IS_HYPERVISOR_GUEST
static void bsp_inter_processor_interrupt(void *arg)
{
(void) arg;
_SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
}
#endif

View File

@@ -197,6 +197,8 @@ void bsp_start(void)
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
{
(void) icells;
#ifndef QORIQ_IS_HYPERVISOR_GUEST
return intr[0] - 16;
#else