mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-28 02:09:04 +08:00
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:
committed by
Gedare Bloom
parent
ddceaeaacb
commit
dbff120b09
@@ -357,6 +357,8 @@ static bool atsam_uart_first_open(
|
|||||||
rtems_libio_open_close_args_t *args
|
rtems_libio_open_close_args_t *args
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) args;
|
||||||
|
|
||||||
atsam_uart_context *ctx = (atsam_uart_context *) base;
|
atsam_uart_context *ctx = (atsam_uart_context *) base;
|
||||||
Uart *regs = ctx->regs;
|
Uart *regs = ctx->regs;
|
||||||
#ifdef ATSAM_CONSOLE_USE_INTERRUPTS
|
#ifdef ATSAM_CONSOLE_USE_INTERRUPTS
|
||||||
@@ -394,6 +396,8 @@ static void atsam_uart_last_close(
|
|||||||
rtems_libio_open_close_args_t *args
|
rtems_libio_open_close_args_t *args
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) args;
|
||||||
|
|
||||||
atsam_uart_context *ctx = (atsam_uart_context *) base;
|
atsam_uart_context *ctx = (atsam_uart_context *) base;
|
||||||
|
|
||||||
#ifdef ATSAM_CONSOLE_USE_INTERRUPTS
|
#ifdef ATSAM_CONSOLE_USE_INTERRUPTS
|
||||||
@@ -461,6 +465,8 @@ static int atsam_uart_ioctl(
|
|||||||
void *buffer
|
void *buffer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) buffer;
|
||||||
|
|
||||||
atsam_uart_context *ctx = (atsam_uart_context *) base;
|
atsam_uart_context *ctx = (atsam_uart_context *) base;
|
||||||
rtems_status_code sc;
|
rtems_status_code sc;
|
||||||
|
|
||||||
@@ -501,6 +507,10 @@ rtems_status_code console_initialize(
|
|||||||
void *arg
|
void *arg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
(void) minor;
|
||||||
|
(void) arg;
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
rtems_termios_initialize();
|
rtems_termios_initialize();
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ void atsam_rtc_get_time(rtems_time_of_day *tod)
|
|||||||
|
|
||||||
static void atsam_rtc_device_initialize(int minor)
|
static void atsam_rtc_device_initialize(int minor)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
Rtc *rtc = RTC;
|
Rtc *rtc = RTC;
|
||||||
|
|
||||||
RTC_DisableIt(rtc, 0x1F);
|
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)
|
static int atsam_rtc_device_get_time(int minor, rtems_time_of_day *tod)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
atsam_rtc_get_time(tod);
|
atsam_rtc_get_time(tod);
|
||||||
|
|
||||||
return 0;
|
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)
|
static int atsam_rtc_device_set_time(int minor, const rtems_time_of_day *tod)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
Rtc *rtc = RTC;
|
Rtc *rtc = RTC;
|
||||||
uint8_t hour;
|
uint8_t hour;
|
||||||
uint8_t minute;
|
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)
|
static bool atsam_rtc_device_probe(int minor)
|
||||||
{
|
{
|
||||||
|
(void) minor;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
static void atsam_spi_dma_callback(uint32_t ch, void *arg, uint32_t status)
|
||||||
{
|
{
|
||||||
|
(void) ch;
|
||||||
|
|
||||||
atsam_spi_bus *bus;
|
atsam_spi_bus *bus;
|
||||||
uint32_t dma_errors;
|
uint32_t dma_errors;
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ static void atsam_sc16i752_irqs_handler(void *arg)
|
|||||||
|
|
||||||
static void atsam_sc16i752_interrupt(const Pin *pin, void *arg)
|
static void atsam_sc16i752_interrupt(const Pin *pin, void *arg)
|
||||||
{
|
{
|
||||||
|
(void) pin;
|
||||||
|
|
||||||
atsam_sc16is752_spi_context *ctx = arg;
|
atsam_sc16is752_spi_context *ctx = arg;
|
||||||
|
|
||||||
if(PIO_ItIsActive(&ctx->irq_pin)) {
|
if(PIO_ItIsActive(&ctx->irq_pin)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user