* [PATCH v3 1/1] minmax: Fix header inclusions
@ 2023-09-12 9:23 Andy Shevchenko
0 siblings, 0 replies; only message in thread
From: Andy Shevchenko @ 2023-09-12 9:23 UTC (permalink / raw)
To: Andy Shevchenko, linux-kernel
Cc: Rasmus Villemoes, Andrew Morton, Herve Codina
BUILD_BUG_ON*() macros are defined in build_bug.h. Include it.
Replace compiler_types.h by compiler.h, which provides the former,
to have a definition of the __UNIQUE_ID().
Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
v3: rebased on top of the latest -mm patches (assumed to go via Andrew)
include/linux/minmax.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/minmax.h b/include/linux/minmax.h
index 69bbe987fa87..ca69abd6151e 100644
--- a/include/linux/minmax.h
+++ b/include/linux/minmax.h
@@ -2,7 +2,8 @@
#ifndef _LINUX_MINMAX_H
#define _LINUX_MINMAX_H
-#include <linux/compiler_types.h>
+#include <linux/build_bug.h>
+#include <linux/compiler.h>
#include <linux/const.h>
#include <linux/types.h>
--
2.40.0.1.gaa8946217a0b
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-12 9:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-12 9:23 [PATCH v3 1/1] minmax: Fix header inclusions Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®