[PATCH 47/54] libbsp/i386/shared/comm: Fix warnings
Joel Sherrill
joel.sherrill at oarcorp.com
Mon Oct 13 15:37:31 UTC 2014
---
c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c | 6 +++---
c/src/lib/libbsp/i386/shared/comm/i386-stub.c | 4 ++--
c/src/lib/libbsp/i386/shared/comm/uart.c | 4 ++--
c/src/lib/libbsp/i386/shared/comm/uart.h | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c b/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c
index 228b99b..121eef1 100644
--- a/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c
+++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub-glue.c
@@ -49,17 +49,17 @@ i386_stub_glue_init(int uart)
BSP_uart_init(uart, 115200, CHR_8_BITS, 0, 0, 0);
}
-void BSP_uart_on(const rtems_raw_irq_connect_data* used)
+static void BSP_uart_on(const rtems_raw_irq_connect_data* used)
{
BSP_irq_enable_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
}
-void BSP_uart_off(const rtems_raw_irq_connect_data* used)
+static void BSP_uart_off(const rtems_raw_irq_connect_data* used)
{
BSP_irq_disable_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
}
-int BSP_uart_isOn(const rtems_raw_irq_connect_data* used)
+static int BSP_uart_isOn(const rtems_raw_irq_connect_data* used)
{
return BSP_irq_enabled_at_i8259s(used->idtIndex - BSP_IRQ_VECTOR_BASE);
}
diff --git a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
index 20e3592..d4c5eee 100644
--- a/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
+++ b/c/src/lib/libbsp/i386/shared/comm/i386-stub.c
@@ -452,7 +452,7 @@ _returnFromException (void)
return_to_prog ();
}
-int
+static int
hex (char ch)
{
if ((ch >= 'a') && (ch <= 'f'))
@@ -597,7 +597,7 @@ get_char (char *addr)
return *addr;
}
-void
+static void
set_char (char *addr, int val)
{
*addr = val;
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.c b/c/src/lib/libbsp/i386/shared/comm/uart.c
index 6946492..a211188 100644
--- a/c/src/lib/libbsp/i386/shared/comm/uart.c
+++ b/c/src/lib/libbsp/i386/shared/comm/uart.c
@@ -632,7 +632,7 @@ BSP_uart_termios_write_com2(int minor, const char *buf, size_t len)
}
void
-BSP_uart_termios_isr_com1(void)
+BSP_uart_termios_isr_com1(void *ignored)
{
unsigned char buf[40];
unsigned char val;
@@ -728,7 +728,7 @@ BSP_uart_termios_isr_com1(void)
}
void
-BSP_uart_termios_isr_com2(void)
+BSP_uart_termios_isr_com2(void *ignored)
{
unsigned char buf[40];
unsigned char val;
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.h b/c/src/lib/libbsp/i386/shared/comm/uart.h
index c23ebc5..96e4a31 100644
--- a/c/src/lib/libbsp/i386/shared/comm/uart.h
+++ b/c/src/lib/libbsp/i386/shared/comm/uart.h
@@ -39,8 +39,8 @@ int BSP_uart_termios_read_com1(int uart);
int BSP_uart_termios_read_com2(int uart);
ssize_t BSP_uart_termios_write_com1(int minor, const char *buf, size_t len);
ssize_t BSP_uart_termios_write_com2(int minor, const char *buf, size_t len);
-void BSP_uart_termios_isr_com1();
-void BSP_uart_termios_isr_com2();
+void BSP_uart_termios_isr_com1(void *);
+void BSP_uart_termios_isr_com2(void *);
void BSP_uart_dbgisr_com1(void);
void BSP_uart_dbgisr_com2(void);
extern int BSP_poll_char_via_serial(void);
--
1.9.3
More information about the devel
mailing list