bsps/sparc/leon2: 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 14:24:04 -05:00
committed by Gedare Bloom
parent e6b5917018
commit c7ba5f76d6
4 changed files with 30 additions and 0 deletions

View File

@@ -307,6 +307,9 @@ rtems_device_driver console_initialize(
void *arg
)
{
(void) minor;
(void) arg;
rtems_status_code status;
rtems_termios_initialize();
@@ -393,6 +396,10 @@ rtems_device_driver console_close(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_close (arg);
}
@@ -402,6 +409,10 @@ rtems_device_driver console_read(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_read (arg);
}
@@ -411,6 +422,10 @@ rtems_device_driver console_write(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_write (arg);
}
@@ -420,5 +435,9 @@ rtems_device_driver console_control(
void * arg
)
{
(void) major;
(void) minor;
(void) arg;
return rtems_termios_ioctl (arg);
}

View File

@@ -411,6 +411,10 @@ static uint8_t at697pci_bus0_irq_map(pci_dev_t dev, int irq_pin)
static int at697pci_translate(uint32_t *address, int type, int dir)
{
(void) address;
(void) type;
(void) dir;
/* No address translation implmented at this point */
return 0;
}
@@ -636,6 +640,8 @@ int at697pci_init1(struct drvmgr_dev *dev)
int at697pci_init2(struct drvmgr_dev *dev)
{
(void) dev;
#if 0
struct at697pci_priv *priv = dev->priv;
#endif

View File

@@ -28,6 +28,8 @@
void *bsp_idle_thread( uintptr_t ignored )
{
(void) ignored;
while (1) {
/* make sure on load follows store to power-down reg */
LEON_REG.Power_Down = LEON_REG.Power_Down;

View File

@@ -27,6 +27,9 @@ static inline void _CPU_cache_invalidate_instruction_range(
size_t n_bytes
)
{
(void) i_addr;
(void) n_bytes;
__asm__ volatile ("flush");
}