From a2ba004a04c95216feddd9bb9cd32203f552639f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 16 Mar 2015 19:31:04 +0100 Subject: bsp/mbx8xx: Fix warnings --- c/src/lib/libbsp/powerpc/mbx8xx/console/console.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/console/console.c') diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c index 0639436c58..6c7d593b9f 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c +++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c @@ -82,11 +82,7 @@ #include #include -static int _EPPCBug_pollRead( int minor ); -static ssize_t _EPPCBug_pollWrite( int minor, const char *buf, size_t len ); static void _BSP_output_char( char c ); -static rtems_status_code do_poll_read( rtems_device_major_number major, rtems_device_minor_number minor, void * arg); -static rtems_status_code do_poll_write( rtems_device_major_number major, rtems_device_minor_number minor, void * arg); static void _BSP_null_char( char c ) {return;} static void serial_putchar(const char c); @@ -97,6 +93,7 @@ BSP_polling_getchar_function_type BSP_poll_char = NULL; extern volatile m8xx_t m8xx; extern struct rtems_termios_tty *ttyp[]; +#if UARTS_IO_MODE == 2 || NVRAM_CONFIGURE == 1 /* * _EPPCBug_pollRead * @@ -200,7 +197,9 @@ static int _EPPCBug_pollRead( _ISR_Enable( level ); return retval; } +#endif /* UARTS_IO_MODE == 2 || NVRAM_CONFIGURE == 1 */ +#if PRINTK_IO_MODE == 2 || UARTS_IO_MODE == 2 || NVRAM_CONFIGURE == 1 /* * _EPPCBug_pollWrite * @@ -320,7 +319,9 @@ error: _ISR_Enable( level ); return -1; } +#endif /* PRINTK_IO_MODE == 2 || UARTS_IO_MODE == 2 || NVRAM_CONFIGURE == 1 */ +#if UARTS_USE_TERMIOS != 1 || NVRAM_CONFIGURE == 1 /* * do_poll_read * @@ -453,6 +454,7 @@ static rtems_status_code do_poll_write( #endif } +#endif /* UARTS_USE_TERMIOS != 1 || NVRAM_CONFIGURE == 1 */ /* * Print functions prototyped in bspIo.h -- cgit v1.2.3