[rtems commit] m68k/mcf52235: 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:    878d634197a701a472bca7336cda9e291ef58b73
Changeset: http://git.rtems.org/rtems/commit/?id=878d634197a701a472bca7336cda9e291ef58b73

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

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

---

 c/src/lib/libbsp/m68k/mcf52235/console/console.c | 8 +++++---
 c/src/lib/libbsp/m68k/mcf52235/include/bsp.h     | 1 -
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/mcf52235/console/console.c b/c/src/lib/libbsp/m68k/mcf52235/console/console.c
index 0b508c5..4ebd504 100644
--- a/c/src/lib/libbsp/m68k/mcf52235/console/console.c
+++ b/c/src/lib/libbsp/m68k/mcf52235/console/console.c
@@ -6,12 +6,14 @@
 
 #include <stdio.h>
 #include <fcntl.h>
-#include <rtems/libio.h>
-#include <rtems/termiostypes.h>
 #include <termios.h>
-#include <bsp.h>
 #include <malloc.h>
+
+#include <rtems/libio.h>
+#include <rtems/console.h>
+#include <rtems/termiostypes.h>
 #include <rtems/mw_uid.h>
+#include <bsp.h>
 
 #include <rtems/bspIo.h>
 
diff --git a/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h b/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h
index d892929..fc6c74e 100644
--- a/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mcf52235/include/bsp.h
@@ -17,7 +17,6 @@
 #include <bsp/default-initial-extension.h>
 #include <rtems.h>
 #include <rtems/iosupp.h>
-#include <rtems/console.h>
 #include <rtems/iosupp.h>
 #include <rtems/bspIo.h>
 




More information about the vc mailing list