[Skiboot] [PATCH] Move include lock.h to fsp-console.h from console.h

Stewart Smith stewart at linux.ibm.com
Fri Jun 8 14:47:51 AEST 2018


It's only used there, let's minimise our needed includes.

Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
 hw/fsp/fsp-console.c | 1 +
 include/console.h    | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/fsp/fsp-console.c b/hw/fsp/fsp-console.c
index 2c6151da2518..9d9b7ab47441 100644
--- a/hw/fsp/fsp-console.c
+++ b/hw/fsp/fsp-console.c
@@ -27,6 +27,7 @@
 #include <device.h>
 #include <fsp-sysparam.h>
 #include <errorlog.h>
+#include <lock.h>
 
 DEFINE_LOG_ENTRY(OPAL_RC_CONSOLE_HANG, OPAL_PLATFORM_ERR_EVT, OPAL_CONSOLE,
 		 OPAL_PLATFORM_FIRMWARE,
diff --git a/include/console.h b/include/console.h
index 708b696bf03e..94138af308dc 100644
--- a/include/console.h
+++ b/include/console.h
@@ -18,7 +18,6 @@
 #define __CONSOLE_H
 
 #include "unistd.h"
-#include <lock.h>
 
 /*
  * Our internal console uses the format of BML new-style in-memory
-- 
2.17.1



More information about the Skiboot mailing list