[rtems commit] mips/rbtx4925: Remove include of <rtems/console.h> from < bsp.h> and fix warnings

Joel Sherrill joel at rtems.org
Tue Mar 29 20:29:11 UTC 2016


Module:    rtems
Branch:    master
Commit:    75cd8399af8f0d657cb890b8d08e71f3e8bf225a
Changeset: http://git.rtems.org/rtems/commit/?id=75cd8399af8f0d657cb890b8d08e71f3e8bf225a

Author:    Joel Sherrill <joel at rtems.org>
Date:      Tue Mar 29 13:10:51 2016 -0500

mips/rbtx4925: Remove include of <rtems/console.h> from <bsp.h> and fix warnings

---

 c/src/lib/libbsp/mips/rbtx4925/console/console-io.c | 6 ++++--
 c/src/lib/libbsp/mips/rbtx4925/include/bsp.h        | 1 -
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/mips/rbtx4925/console/console-io.c b/c/src/lib/libbsp/mips/rbtx4925/console/console-io.c
index da04957..75cca1e 100644
--- a/c/src/lib/libbsp/mips/rbtx4925/console/console-io.c
+++ b/c/src/lib/libbsp/mips/rbtx4925/console/console-io.c
@@ -28,10 +28,12 @@
  *  http://www.rtems.org/license/LICENSE.
  */
 
-#include <bsp.h>
-#include <rtems/libio.h>
 #include <ctype.h>
 
+#include <rtems/console.h>
+#include <rtems/libio.h>
+#include <bsp.h>
+
 /* PMON entry points */
 int mon_read(int fd, char *buf, int cnt);    /* stdin is fd=0 */
 int mon_write(int fd, char *buf, int cnt);    /* stdout is fd=1 */
diff --git a/c/src/lib/libbsp/mips/rbtx4925/include/bsp.h b/c/src/lib/libbsp/mips/rbtx4925/include/bsp.h
index 30d5471..5100272 100644
--- a/c/src/lib/libbsp/mips/rbtx4925/include/bsp.h
+++ b/c/src/lib/libbsp/mips/rbtx4925/include/bsp.h
@@ -23,7 +23,6 @@
 
 #include <rtems.h>
 #include <rtems/iosupp.h>
-#include <rtems/console.h>
 #include <libcpu/tx4925.h>
 
 #ifdef __cplusplus




More information about the vc mailing list