[PATCH] poweroff: make header self-contained
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Dec 15 00:50:38 PST 2025
Make LSP happy and allow including the file as first header by making it
self-contained.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/poweroff.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/poweroff.h b/include/poweroff.h
index df2d3125a98d..3e86003563a9 100644
--- a/include/poweroff.h
+++ b/include/poweroff.h
@@ -2,6 +2,9 @@
#ifndef __INCLUDE_POWEROFF_H
#define __INCLUDE_POWEROFF_H
+#include <linux/compiler.h>
+#include <linux/types.h>
+
void __noreturn poweroff_machine(unsigned long poweroff_flags);
struct poweroff_handler {
@@ -19,6 +22,7 @@ int poweroff_handler_register_fn(void (*poweroff_fn)(struct poweroff_handler *,
#define POWEROFF_DEFAULT_PRIORITY 100
#define POWEROFF_DEFAULT_NAME "default"
+struct device_node;
unsigned int of_get_poweroff_priority(struct device_node *node);
#endif /* __INCLUDE_POWEROFF_H */
--
2.47.3
More information about the barebox
mailing list