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

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


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

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

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

---

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

diff --git a/c/src/lib/libbsp/mips/hurricane/console/console.c b/c/src/lib/libbsp/mips/hurricane/console/console.c
index ccc6f93..219cc96 100644
--- a/c/src/lib/libbsp/mips/hurricane/console/console.c
+++ b/c/src/lib/libbsp/mips/hurricane/console/console.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/hurricane/include/bsp.h b/c/src/lib/libbsp/mips/hurricane/include/bsp.h
index cc227e6..fd80433 100644
--- a/c/src/lib/libbsp/mips/hurricane/include/bsp.h
+++ b/c/src/lib/libbsp/mips/hurricane/include/bsp.h
@@ -21,7 +21,6 @@
 
 #include <rtems.h>
 #include <rtems/iosupp.h>
-#include <rtems/console.h>
 #include <libcpu/rm5231.h>
 
 #ifdef __cplusplus



More information about the vc mailing list