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:
Joel Sherrill
2025-10-10 13:46:21 -05:00
committed by Gedare Bloom
parent 47d1b0a074
commit cff91451fe
4 changed files with 44 additions and 2 deletions

View File

@@ -48,4 +48,5 @@ benchmark_timer_read(void)
void
benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
{
(void) find_flag;
}

View File

@@ -40,11 +40,15 @@ static rtems_timecounter_simple uC5282_tc;
static uint32_t uC5282_tc_get(rtems_timecounter_simple *tc)
{
(void) tc;
return MCF5282_PIT3_PCNTR;
}
static bool uC5282_tc_is_pending(rtems_timecounter_simple *tc)
{
(void) tc;
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)
{
(void) tc;
unsigned idle = IDLE_COUNTER;
IDLE_COUNTER = 0;
if (idle > MAX_IDLE_COUNT)
@@ -146,6 +152,8 @@ static void uC5282_tc_tick(void)
*/
void * bsp_idle_thread(uintptr_t ignored)
{
(void) ignored;
/* Atomic increment */
for(;;)
__asm__ volatile ("addq.l #1,%0"::"m"(IDLE_COUNTER));

View File

@@ -439,6 +439,9 @@ IntUartInterruptWrite (int minor, const char *buf, size_t len)
static int
IntUartInterruptOpen(int major, int minor, void *arg)
{
(void) major;
(void) arg;
struct IntUartInfoStruct *info = &IntUartInfo[minor];
int level;
@@ -492,6 +495,9 @@ IntUartInterruptOpen(int major, int minor, void *arg)
static int
IntUartInterruptClose(int major, int minor, void *arg)
{
(void) major;
(void) arg;
struct IntUartInfoStruct *info = &IntUartInfo[minor];
/* disable the interrupts and the uart */
@@ -612,6 +618,9 @@ rtems_device_driver console_initialize(
rtems_device_minor_number minor,
void *arg )
{
(void) minor;
(void) arg;
rtems_status_code status;
int chan;
@@ -738,6 +747,9 @@ rtems_device_driver console_close(
rtems_device_minor_number minor,
void * arg)
{
(void) major;
(void) minor;
return(rtems_termios_close (arg));
}
@@ -752,6 +764,9 @@ rtems_device_driver console_read(
rtems_device_minor_number minor,
void * arg)
{
(void) major;
(void) minor;
return(rtems_termios_read (arg));
}
@@ -765,6 +780,9 @@ rtems_device_driver console_write(
rtems_device_minor_number minor,
void * arg)
{
(void) major;
(void) minor;
return(rtems_termios_write (arg));
}
@@ -778,6 +796,9 @@ rtems_device_driver console_control(
rtems_device_minor_number minor,
void * arg)
{
(void) major;
(void) minor;
return( rtems_termios_ioctl (arg) );
}

View File

@@ -467,8 +467,20 @@ __asm__ (
*/
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