mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
bsps shared arm: 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
01cd6f74aa
commit
f63b5b6661
3
bsps/arm/shared/cache/cache-v7m.c
vendored
3
bsps/arm/shared/cache/cache-v7m.c
vendored
@@ -71,6 +71,9 @@ static inline void _CPU_cache_invalidate_instruction_range(
|
||||
size_t n_bytes
|
||||
)
|
||||
{
|
||||
(void) i_addr;
|
||||
(void) n_bytes;
|
||||
|
||||
rtems_interrupt_level level;
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
|
||||
@@ -110,6 +110,8 @@ static void arm_gt_clock_handler_install(rtems_interrupt_handler handler)
|
||||
|
||||
static uint32_t arm_gt_clock_get_timecount(struct timecounter *tc)
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
return (uint32_t) arm_gt_clock_get_count();
|
||||
}
|
||||
|
||||
@@ -134,6 +136,8 @@ static void arm_gt_clock_secondary_initialization(uint64_t cval)
|
||||
{
|
||||
#if defined(RTEMS_SMP) && !defined(CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR)
|
||||
_SMP_Broadcast_action(arm_gt_clock_secondary_action, &cval);
|
||||
#else
|
||||
(void) cval;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -382,6 +382,8 @@ static bool arm_pl011_first_open(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) args;
|
||||
|
||||
arm_pl011_context *context = (arm_pl011_context *) base;
|
||||
#ifdef BSP_CONSOLE_USE_INTERRUPTS
|
||||
rtems_status_code sc;
|
||||
@@ -414,6 +416,8 @@ static void arm_pl011_last_close(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) args;
|
||||
|
||||
const arm_pl011_context *context = (void *) base;
|
||||
(void) rtems_interrupt_handler_remove(
|
||||
context->irq,
|
||||
@@ -533,4 +537,4 @@ const rtems_termios_device_handler arm_pl011_fns = {
|
||||
.poll_read = arm_pl011_read_polled,
|
||||
.mode = TERMIOS_POLLED,
|
||||
#endif
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user