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

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

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

---

 c/src/lib/libbsp/m68k/gen68340/console/console.c | 12 +++++++-----
 c/src/lib/libbsp/m68k/gen68340/include/bsp.h     |  1 -
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/gen68340/console/console.c b/c/src/lib/libbsp/m68k/gen68340/console/console.c
index 2cd7fb2..dd38559 100644
--- a/c/src/lib/libbsp/m68k/gen68340/console/console.c
+++ b/c/src/lib/libbsp/m68k/gen68340/console/console.c
@@ -21,16 +21,18 @@
  */
 
 #include <termios.h>
-#include <bsp.h>
-#include <rtems/libio.h>
-#include <m68340.h>
-#include <m340uart.h>
-#include <m340timer.h>
 
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
+
+#include <bsp.h>
+#include <rtems/libio.h>
 #include <rtems/termiostypes.h>
+#include <rtems/console.h>
+#include <m68340.h>
+#include <m340uart.h>
+#include <m340timer.h>
 
 #define CONSOLE_VECTOR 121
 #define CONSOLE_IRQ_LEVEL 3
diff --git a/c/src/lib/libbsp/m68k/gen68340/include/bsp.h b/c/src/lib/libbsp/m68k/gen68340/include/bsp.h
index d01ca6c..37a1d07 100644
--- a/c/src/lib/libbsp/m68k/gen68340/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/gen68340/include/bsp.h
@@ -32,7 +32,6 @@
 #include <bsp/default-initial-extension.h>
 
 #include <rtems.h>
-#include <rtems/console.h>
 #include <rtems/iosupp.h>
 
 #ifdef __cplusplus




More information about the vc mailing list