mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 04:24:45 +00:00
bsps/sparc/leon3: 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
c7ba5f76d6
commit
883f06737b
@@ -78,6 +78,9 @@ static rtems_termios_device_context *leon3_console_get_context(int index)
|
||||
/* AMBA PP find routine. Extract AMBA PnP information into data structure. */
|
||||
static int find_matching_apbuart(struct ambapp_dev *dev, int index, void *arg)
|
||||
{
|
||||
(void) index;
|
||||
(void) arg;
|
||||
|
||||
struct ambapp_apb_info *apb = (struct ambapp_apb_info *)dev->devinfo;
|
||||
|
||||
/* Extract needed information of one APBUART */
|
||||
@@ -111,6 +114,10 @@ rtems_device_driver console_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
const rtems_termios_device_handler *handler =
|
||||
#if CONSOLE_USE_INTERRUPTS
|
||||
&apbuart_handler_interrupt;
|
||||
|
||||
@@ -41,6 +41,8 @@ void Shm_Get_configuration(
|
||||
shm_config_table **shmcfg
|
||||
)
|
||||
{
|
||||
(void) localnode;
|
||||
|
||||
int i;
|
||||
unsigned int tmp;
|
||||
const rtems_multiprocessing_table *mptable;
|
||||
|
||||
@@ -170,6 +170,9 @@ static inline void _CPU_cache_flush_data_range(
|
||||
size_t n_bytes
|
||||
)
|
||||
{
|
||||
(void) d_addr;
|
||||
(void) n_bytes;
|
||||
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
@@ -178,6 +181,9 @@ static inline void _CPU_cache_invalidate_data_range(
|
||||
size_t n_bytes
|
||||
)
|
||||
{
|
||||
(void) d_addr;
|
||||
(void) n_bytes;
|
||||
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
@@ -204,6 +210,9 @@ static inline void _CPU_cache_invalidate_instruction_range(
|
||||
size_t n_bytes
|
||||
)
|
||||
{
|
||||
(void) i_addr;
|
||||
(void) n_bytes;
|
||||
|
||||
_CPU_cache_invalidate_entire_instruction();
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ static uint32_t leon3_timecounter_get_asr_22_23_up_counter(
|
||||
struct timecounter *tc
|
||||
)
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
return leon3_up_counter_low();
|
||||
}
|
||||
|
||||
|
||||
@@ -359,6 +359,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;
|
||||
}
|
||||
@@ -368,6 +371,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;
|
||||
|
||||
Reference in New Issue
Block a user