The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v1 1/1] util_macros.h: Make the header more resilient
@ 2025-04-28  7:27 Andy Shevchenko
  2025-04-28  9:32 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2025-04-28  7:27 UTC (permalink / raw)
  To: Andy Shevchenko, Alexandru Ardelean, linux-kernel; +Cc: Andrew Morton

Add missing header inclusions and protect against double inclusion.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 include/linux/util_macros.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/util_macros.h b/include/linux/util_macros.h
index 7b64fb597f85..8239a7748f49 100644
--- a/include/linux/util_macros.h
+++ b/include/linux/util_macros.h
@@ -2,7 +2,10 @@
 #ifndef _LINUX_HELPER_MACROS_H_
 #define _LINUX_HELPER_MACROS_H_
 
+#include <linux/compiler_attributes.h>
 #include <linux/math.h>
+#include <linux/typecheck.h>
+#include <linux/stddef.h>
 
 /**
  * for_each_if - helper for handling conditionals in various for_each macros
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-28 21:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28  7:27 [PATCH v1 1/1] util_macros.h: Make the header more resilient Andy Shevchenko
2025-04-28  9:32 ` Andrew Morton
2025-04-28 10:06   ` Andy Shevchenko
2025-04-28 21:36     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox