mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
bsps/m68k/uC5282: 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
47d1b0a074
commit
cff91451fe
@@ -48,4 +48,5 @@ benchmark_timer_read(void)
|
|||||||
void
|
void
|
||||||
benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
|
benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
|
||||||
{
|
{
|
||||||
|
(void) find_flag;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,11 +40,15 @@ static rtems_timecounter_simple uC5282_tc;
|
|||||||
|
|
||||||
static uint32_t uC5282_tc_get(rtems_timecounter_simple *tc)
|
static uint32_t uC5282_tc_get(rtems_timecounter_simple *tc)
|
||||||
{
|
{
|
||||||
|
(void) tc;
|
||||||
|
|
||||||
return MCF5282_PIT3_PCNTR;
|
return MCF5282_PIT3_PCNTR;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool uC5282_tc_is_pending(rtems_timecounter_simple *tc)
|
static bool uC5282_tc_is_pending(rtems_timecounter_simple *tc)
|
||||||
{
|
{
|
||||||
|
(void) tc;
|
||||||
|
|
||||||
return (MCF5282_PIT3_PCSR & MCF5282_PIT_PCSR_PIF) != 0;
|
return (MCF5282_PIT3_PCSR & MCF5282_PIT_PCSR_PIF) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,6 +63,8 @@ static uint32_t uC5282_tc_get_timecount(struct timecounter *tc)
|
|||||||
|
|
||||||
static void uC5282_tc_at_tick(rtems_timecounter_simple *tc)
|
static void uC5282_tc_at_tick(rtems_timecounter_simple *tc)
|
||||||
{
|
{
|
||||||
|
(void) tc;
|
||||||
|
|
||||||
unsigned idle = IDLE_COUNTER;
|
unsigned idle = IDLE_COUNTER;
|
||||||
IDLE_COUNTER = 0;
|
IDLE_COUNTER = 0;
|
||||||
if (idle > MAX_IDLE_COUNT)
|
if (idle > MAX_IDLE_COUNT)
|
||||||
@@ -146,6 +152,8 @@ static void uC5282_tc_tick(void)
|
|||||||
*/
|
*/
|
||||||
void * bsp_idle_thread(uintptr_t ignored)
|
void * bsp_idle_thread(uintptr_t ignored)
|
||||||
{
|
{
|
||||||
|
(void) ignored;
|
||||||
|
|
||||||
/* Atomic increment */
|
/* Atomic increment */
|
||||||
for(;;)
|
for(;;)
|
||||||
__asm__ volatile ("addq.l #1,%0"::"m"(IDLE_COUNTER));
|
__asm__ volatile ("addq.l #1,%0"::"m"(IDLE_COUNTER));
|
||||||
|
|||||||
@@ -439,6 +439,9 @@ IntUartInterruptWrite (int minor, const char *buf, size_t len)
|
|||||||
static int
|
static int
|
||||||
IntUartInterruptOpen(int major, int minor, void *arg)
|
IntUartInterruptOpen(int major, int minor, void *arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
struct IntUartInfoStruct *info = &IntUartInfo[minor];
|
struct IntUartInfoStruct *info = &IntUartInfo[minor];
|
||||||
int level;
|
int level;
|
||||||
|
|
||||||
@@ -492,6 +495,9 @@ IntUartInterruptOpen(int major, int minor, void *arg)
|
|||||||
static int
|
static int
|
||||||
IntUartInterruptClose(int major, int minor, void *arg)
|
IntUartInterruptClose(int major, int minor, void *arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
struct IntUartInfoStruct *info = &IntUartInfo[minor];
|
struct IntUartInfoStruct *info = &IntUartInfo[minor];
|
||||||
|
|
||||||
/* disable the interrupts and the uart */
|
/* disable the interrupts and the uart */
|
||||||
@@ -612,6 +618,9 @@ rtems_device_driver console_initialize(
|
|||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
void *arg )
|
void *arg )
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
int chan;
|
int chan;
|
||||||
|
|
||||||
@@ -738,6 +747,9 @@ rtems_device_driver console_close(
|
|||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
void * arg)
|
void * arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
return(rtems_termios_close (arg));
|
return(rtems_termios_close (arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -752,6 +764,9 @@ rtems_device_driver console_read(
|
|||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
void * arg)
|
void * arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
return(rtems_termios_read (arg));
|
return(rtems_termios_read (arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -765,6 +780,9 @@ rtems_device_driver console_write(
|
|||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
void * arg)
|
void * arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
return(rtems_termios_write (arg));
|
return(rtems_termios_write (arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -778,6 +796,9 @@ rtems_device_driver console_control(
|
|||||||
rtems_device_minor_number minor,
|
rtems_device_minor_number minor,
|
||||||
void * arg)
|
void * arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
return( rtems_termios_ioctl (arg) );
|
return( rtems_termios_ioctl (arg) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -467,8 +467,20 @@ __asm__ (
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_status_code bspExtInit(void) { return RTEMS_SUCCESSFUL; }
|
rtems_status_code bspExtInit(void) { return RTEMS_SUCCESSFUL; }
|
||||||
int BSP_enableVME_int_lvl(unsigned int level) { return 0; }
|
|
||||||
int BSP_disableVME_int_lvl(unsigned int level) { return 0; }
|
int BSP_enableVME_int_lvl(unsigned int level)
|
||||||
|
{
|
||||||
|
(void) level;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int BSP_disableVME_int_lvl(unsigned int level)
|
||||||
|
{
|
||||||
|
(void) level;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 'VME' interrupt support
|
* 'VME' interrupt support
|
||||||
|
|||||||
Reference in New Issue
Block a user