mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
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:
committed by
Gedare Bloom
parent
2543cb7d85
commit
4caf2c71c1
@@ -51,5 +51,7 @@ benchmark_timer_t benchmark_timer_read(void)
|
|||||||
|
|
||||||
void benchmark_timer_disable_subtracting_average_overhead(bool find_average_overhead)
|
void benchmark_timer_disable_subtracting_average_overhead(bool find_average_overhead)
|
||||||
{
|
{
|
||||||
|
(void) find_average_overhead;
|
||||||
|
|
||||||
/* VOID */
|
/* VOID */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,6 +141,8 @@ static void qoriq_clock_handler_install(rtems_interrupt_handler handler)
|
|||||||
|
|
||||||
static uint32_t qoriq_clock_get_timecount(struct timecounter *tc)
|
static uint32_t qoriq_clock_get_timecount(struct timecounter *tc)
|
||||||
{
|
{
|
||||||
|
(void) tc;
|
||||||
|
|
||||||
uint32_t ccr = qoriq_timecounter->ccr;
|
uint32_t ccr = qoriq_timecounter->ccr;
|
||||||
|
|
||||||
return GTCCR_COUNT_GET(-ccr);
|
return GTCCR_COUNT_GET(-ccr);
|
||||||
|
|||||||
@@ -177,6 +177,11 @@ static bool first_open(
|
|||||||
rtems_libio_open_close_args_t *args
|
rtems_libio_open_close_args_t *args
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) tty;
|
||||||
|
(void) base;
|
||||||
|
(void) term;
|
||||||
|
(void) args;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -185,6 +190,9 @@ static bool set_attributes(
|
|||||||
const struct termios *term
|
const struct termios *term
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) base;
|
||||||
|
(void) term;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -138,6 +138,9 @@ static bool first_open(
|
|||||||
rtems_libio_open_close_args_t *args
|
rtems_libio_open_close_args_t *args
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) term;
|
||||||
|
(void) args;
|
||||||
|
|
||||||
uart_bridge_slave_context *ctx = (uart_bridge_slave_context *) base;
|
uart_bridge_slave_context *ctx = (uart_bridge_slave_context *) base;
|
||||||
intercom_type type = ctx->type;
|
intercom_type type = ctx->type;
|
||||||
|
|
||||||
@@ -155,6 +158,9 @@ static void last_close(
|
|||||||
rtems_libio_open_close_args_t *args
|
rtems_libio_open_close_args_t *args
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) tty;
|
||||||
|
(void) args;
|
||||||
|
|
||||||
uart_bridge_slave_context *ctx = (uart_bridge_slave_context *) base;
|
uart_bridge_slave_context *ctx = (uart_bridge_slave_context *) base;
|
||||||
|
|
||||||
qoriq_intercom_service_remove(ctx->type);
|
qoriq_intercom_service_remove(ctx->type);
|
||||||
@@ -196,6 +202,9 @@ static bool set_attributes(
|
|||||||
const struct termios *term
|
const struct termios *term
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) base;
|
||||||
|
(void) term;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -500,6 +500,10 @@ static unsigned long epapr_hypercall(unsigned long *in,
|
|||||||
unsigned long *out,
|
unsigned long *out,
|
||||||
unsigned long nr)
|
unsigned long nr)
|
||||||
{
|
{
|
||||||
|
(void) in;
|
||||||
|
(void) out;
|
||||||
|
(void) nr;
|
||||||
|
|
||||||
return EV_UNIMPLEMENTED;
|
return EV_UNIMPLEMENTED;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -552,6 +552,8 @@ rtems_status_code bsp_interrupt_raise_on(
|
|||||||
|
|
||||||
rtems_status_code bsp_interrupt_clear(rtems_vector_number vector)
|
rtems_status_code bsp_interrupt_clear(rtems_vector_number vector)
|
||||||
{
|
{
|
||||||
|
(void) vector;
|
||||||
|
|
||||||
bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
|
bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
|
||||||
return RTEMS_UNSATISFIED;
|
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 bsp_interrupt_dispatch(uintptr_t exception_number)
|
||||||
{
|
{
|
||||||
|
(void) exception_number;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
rtems_vector_number vector = qoriq.pic.iack;
|
rtems_vector_number vector = qoriq.pic.iack;
|
||||||
uint32_t msr;
|
uint32_t msr;
|
||||||
|
|||||||
@@ -161,6 +161,8 @@ void qoriq_intercom_free_packet(intercom_packet *packet)
|
|||||||
|
|
||||||
static void default_service(intercom_packet *packet, void *arg)
|
static void default_service(intercom_packet *packet, void *arg)
|
||||||
{
|
{
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
qoriq_intercom_free_packet(packet);
|
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)
|
static void intercom_task(rtems_task_argument arg)
|
||||||
{
|
{
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
uint32_t self = ppc_processor_id();
|
uint32_t self = ppc_processor_id();
|
||||||
free_list *free_lists = &intercom->free_lists [0];
|
free_list *free_lists = &intercom->free_lists [0];
|
||||||
intercom_service *services = &intercom->services [self][0];
|
intercom_service *services = &intercom->services [self][0];
|
||||||
|
|||||||
@@ -39,21 +39,31 @@
|
|||||||
|
|
||||||
static void qoriq_rtc_initialize(int minor)
|
static void qoriq_rtc_initialize(int minor)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
}
|
}
|
||||||
|
|
||||||
static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod)
|
static int qoriq_rtc_get_time(int minor, rtems_time_of_day *tod)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
(void) tod;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod)
|
static int qoriq_rtc_set_time(int minor, const rtems_time_of_day *tod)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
(void) tod;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool qoriq_rtc_probe(int minor)
|
static bool qoriq_rtc_probe(int minor)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
PPC_SET_SPECIAL_PURPOSE_REGISTER(FSL_EIS_TENS, 1U << i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void) cpu_index_self;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,6 +113,8 @@ void bsp_start_on_secondary_processor(Per_CPU_Control *cpu_self)
|
|||||||
#ifndef QORIQ_IS_HYPERVISOR_GUEST
|
#ifndef QORIQ_IS_HYPERVISOR_GUEST
|
||||||
static void bsp_inter_processor_interrupt(void *arg)
|
static void bsp_inter_processor_interrupt(void *arg)
|
||||||
{
|
{
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
_SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
|
_SMP_Inter_processor_interrupt_handler(_Per_CPU_Get());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -197,6 +197,8 @@ void bsp_start(void)
|
|||||||
|
|
||||||
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
|
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
|
||||||
{
|
{
|
||||||
|
(void) icells;
|
||||||
|
|
||||||
#ifndef QORIQ_IS_HYPERVISOR_GUEST
|
#ifndef QORIQ_IS_HYPERVISOR_GUEST
|
||||||
return intr[0] - 16;
|
return intr[0] - 16;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user