[PATCH] mailbox: make mailbox.h self contained

Sascha Hauer s.hauer at pengutronix.de
Wed Nov 6 23:31:14 PST 2024


mailbox.h needs linux/list.h, so include it to make the file self
contained. Also declare of_phandle_args.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 include/mailbox.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/mailbox.h b/include/mailbox.h
index 3be58ec103..9583611da2 100644
--- a/include/mailbox.h
+++ b/include/mailbox.h
@@ -1,6 +1,10 @@
 #ifndef __MAILBOX_H
 #define __MAILBOX_H
 
+#include <linux/list.h>
+
+struct of_phandle_args;
+
 struct mbox_chan {
 	struct mbox_controller *mbox;
 	struct device *dev;
-- 
2.39.5




More information about the barebox mailing list