[PATCH 1/8] restart: make restart.h header self-contained

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Oct 17 00:09:53 PDT 2022


Code may fail compile depending on include order. Fix this.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 include/restart.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/restart.h b/include/restart.h
index 2d15c7598acc..27fab1b80dfb 100644
--- a/include/restart.h
+++ b/include/restart.h
@@ -2,6 +2,11 @@
 #ifndef __INCLUDE_RESTART_H
 #define __INCLUDE_RESTART_H
 
+#include <linux/compiler.h>
+#include <linux/types.h>
+
+struct device_node;
+
 void restart_handlers_print(void);
 void __noreturn restart_machine(void);
 struct restart_handler *restart_handler_get_by_name(const char *name);
-- 
2.30.2




More information about the barebox mailing list