summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-10-17 09:09:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-10-27 11:13:29 +0200
commit1c32f4eb396c20af8031df10b3239b32d3b64005 (patch)
tree1792105a50d23f72898acab57e396ac0fcdab282
parent8b6338227e06a0ca2b31a974a99e81bae084ffe4 (diff)
downloadbarebox-1c32f4eb396c20af8031df10b3239b32d3b64005.tar.gz
barebox-1c32f4eb396c20af8031df10b3239b32d3b64005.tar.xz
restart: make restart.h header self-contained
Code may fail compile depending on include order. Fix this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20221017071000.1458292-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/restart.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/restart.h b/include/restart.h
index 2d15c7598a..27fab1b80d 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);