mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
bsps/microblaze: 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
7c48bd9bb7
commit
f23b320d58
@@ -46,11 +46,15 @@ static volatile Microblaze_Timer *mblaze_timer;
|
||||
|
||||
static uint32_t microblaze_tc_get( rtems_timecounter_simple *tc )
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
return mblaze_timer->tcr0;
|
||||
}
|
||||
|
||||
static bool microblaze_tc_is_pending( rtems_timecounter_simple *tc )
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
return ( mblaze_timer->tcsr0 & MICROBLAZE_TIMER_TCSR0_T0INT ) != 0;
|
||||
}
|
||||
|
||||
@@ -111,6 +115,8 @@ static void microblaze_clock_initialize( void )
|
||||
|
||||
static void microblaze_clock_at_tick( rtems_timecounter_simple *tc )
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
if ( ( mblaze_timer->tcsr0 & MICROBLAZE_TIMER_TCSR0_T0INT ) == 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -142,6 +142,10 @@ rtems_device_driver console_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
uint32_t port;
|
||||
uint32_t stdout_port = BSP_MICROBLAZE_FPGA_CONSOLE_UART;
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ static void output_char( char c )
|
||||
|
||||
static int xUartLite_RecvByte( int minor )
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
if (mblaze_uart_base == 0 ) {
|
||||
mblaze_uart_base = try_get_prop_from_device_tree(
|
||||
"xlnx,xps-uartlite-1.00.a",
|
||||
|
||||
@@ -51,6 +51,8 @@ rtems_status_code bsp_interrupt_get_attributes(
|
||||
rtems_interrupt_attributes *attributes
|
||||
)
|
||||
{
|
||||
(void) vector;
|
||||
|
||||
attributes->is_maskable = true;
|
||||
attributes->maybe_enable = true;
|
||||
attributes->maybe_disable = true;
|
||||
@@ -65,6 +67,8 @@ rtems_status_code bsp_interrupt_is_pending(
|
||||
bool *pending
|
||||
)
|
||||
{
|
||||
(void) vector;
|
||||
|
||||
bsp_interrupt_assert( bsp_interrupt_is_valid_vector( vector ) );
|
||||
bsp_interrupt_assert( pending != NULL );
|
||||
*pending = false;
|
||||
@@ -73,6 +77,8 @@ rtems_status_code bsp_interrupt_is_pending(
|
||||
|
||||
rtems_status_code bsp_interrupt_raise( rtems_vector_number vector )
|
||||
{
|
||||
(void) vector;
|
||||
|
||||
bsp_interrupt_assert( bsp_interrupt_is_valid_vector( vector ) );
|
||||
return RTEMS_UNSATISFIED;
|
||||
}
|
||||
@@ -127,6 +133,9 @@ rtems_status_code bsp_interrupt_set_priority(
|
||||
uint32_t priority
|
||||
)
|
||||
{
|
||||
(void) vector;
|
||||
(void) priority;
|
||||
|
||||
bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
|
||||
return RTEMS_UNSATISFIED;
|
||||
}
|
||||
@@ -136,6 +145,9 @@ rtems_status_code bsp_interrupt_get_priority(
|
||||
uint32_t *priority
|
||||
)
|
||||
{
|
||||
(void) vector;
|
||||
(void) priority;
|
||||
|
||||
bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
|
||||
bsp_interrupt_assert(priority != NULL);
|
||||
return RTEMS_UNSATISFIED;
|
||||
|
||||
@@ -64,6 +64,9 @@ static bool uart_first_open(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) term;
|
||||
(void) args;
|
||||
|
||||
uart_lite_context *ctx = (uart_lite_context *) base;
|
||||
#ifdef BSP_MICROBLAZE_FPGA_CONSOLE_INTERRUPTS
|
||||
rtems_status_code sc;
|
||||
@@ -98,7 +101,14 @@ static void uart_last_close(
|
||||
)
|
||||
{
|
||||
#ifdef BSP_MICROBLAZE_FPGA_CONSOLE_INTERRUPTS
|
||||
(void) base;
|
||||
(void) args;
|
||||
|
||||
rtems_interrupt_handler_remove( 1, microblaze_uart_interrupt, tty );
|
||||
#else
|
||||
(void) tty;
|
||||
(void) base;
|
||||
(void) arg;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,8 @@ const void *bsp_fdt_get(void)
|
||||
|
||||
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
|
||||
{
|
||||
(void) icells;
|
||||
|
||||
return intr[0];
|
||||
}
|
||||
#endif /* BSP_MICROBLAZE_FPGA_USE_FDT */
|
||||
|
||||
Reference in New Issue
Block a user