* [PATCH] poweroff: make header self-contained
@ 2025-12-15 8:50 Ahmad Fatoum
2025-12-15 9:14 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-12-15 8:50 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
Make LSP happy and allow including the file as first header by making it
self-contained.
Signed-off-by: Ahmad Fatoum <a.fatoum@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] poweroff: make header self-contained
2025-12-15 8:50 [PATCH] poweroff: make header self-contained Ahmad Fatoum
@ 2025-12-15 9:14 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-12-15 9:14 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Mon, 15 Dec 2025 09:50:38 +0100, Ahmad Fatoum wrote:
> Make LSP happy and allow including the file as first header by making it
> self-contained.
>
>
Applied, thanks!
[1/1] poweroff: make header self-contained
https://git.pengutronix.de/cgit/barebox/commit/?id=36bfe12fdec2 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-15 9:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-15 8:50 [PATCH] poweroff: make header self-contained Ahmad Fatoum
2025-12-15 9:14 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox