arm/atsam: 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 12:14:56 -05:00
committed by Gedare Bloom
parent ddceaeaacb
commit dbff120b09
4 changed files with 22 additions and 0 deletions

View File

@@ -357,6 +357,8 @@ static bool atsam_uart_first_open(
rtems_libio_open_close_args_t *args
)
{
(void) args;
atsam_uart_context *ctx = (atsam_uart_context *) base;
Uart *regs = ctx->regs;
#ifdef ATSAM_CONSOLE_USE_INTERRUPTS
@@ -394,6 +396,8 @@ static void atsam_uart_last_close(
rtems_libio_open_close_args_t *args
)
{
(void) args;
atsam_uart_context *ctx = (atsam_uart_context *) base;
#ifdef ATSAM_CONSOLE_USE_INTERRUPTS
@@ -461,6 +465,8 @@ static int atsam_uart_ioctl(
void *buffer
)
{
(void) buffer;
atsam_uart_context *ctx = (atsam_uart_context *) base;
rtems_status_code sc;
@@ -501,6 +507,10 @@ rtems_status_code console_initialize(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
size_t i;
rtems_termios_initialize();

View File

@@ -57,6 +57,8 @@ void atsam_rtc_get_time(rtems_time_of_day *tod)
static void atsam_rtc_device_initialize(int minor)
{
(void) minor;
Rtc *rtc = RTC;
RTC_DisableIt(rtc, 0x1F);
@@ -64,6 +66,8 @@ static void atsam_rtc_device_initialize(int minor)
static int atsam_rtc_device_get_time(int minor, rtems_time_of_day *tod)
{
(void) minor;
atsam_rtc_get_time(tod);
return 0;
@@ -71,6 +75,8 @@ static int atsam_rtc_device_get_time(int minor, rtems_time_of_day *tod)
static int atsam_rtc_device_set_time(int minor, const rtems_time_of_day *tod)
{
(void) minor;
Rtc *rtc = RTC;
uint8_t hour;
uint8_t minute;
@@ -96,6 +102,8 @@ static int atsam_rtc_device_set_time(int minor, const rtems_time_of_day *tod)
static bool atsam_rtc_device_probe(int minor)
{
(void) minor;
return true;
}

View File

@@ -416,6 +416,8 @@ static void atsam_spi_setup_transfer(atsam_spi_bus *bus)
static void atsam_spi_dma_callback(uint32_t ch, void *arg, uint32_t status)
{
(void) ch;
atsam_spi_bus *bus;
uint32_t dma_errors;

View File

@@ -40,6 +40,8 @@ static void atsam_sc16i752_irqs_handler(void *arg)
static void atsam_sc16i752_interrupt(const Pin *pin, void *arg)
{
(void) pin;
atsam_sc16is752_spi_context *ctx = arg;
if(PIO_ItIsActive(&ctx->irq_pin)) {