[Skiboot] [PATCH 2/3] hw/lpc: fix compilation error

Nicholas Piggin npiggin at gmail.com
Thu Dec 9 01:15:57 AEDT 2021


Compilation can fail when building tests if the opal-api.h include
is not pulled in via headers. Include it directly.

Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
 hw/lpc-port80h.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/lpc-port80h.c b/hw/lpc-port80h.c
index 0d1fee99e..0d51ad3f6 100644
--- a/hw/lpc-port80h.c
+++ b/hw/lpc-port80h.c
@@ -7,6 +7,7 @@
 
 #define pr_fmt(fmt)	"Port80h: " fmt
 
+#include <opal-api.h>
 #include <lpc.h>
 #include <op-panel.h>
 #include <chip.h>
-- 
2.23.0



More information about the Skiboot mailing list