summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2025-10-17 12:05:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-29 16:01:15 +0300
commitc71e6f548317a5da3cd6a892ae4bad0c09380c60 (patch)
tree516aa2e6a10ef1d0688cde77e25392de89c65a7f /include
parentd712c9d1247ba1bbe7acb3a45463d500c535f3b0 (diff)
downloadlinux-c71e6f548317a5da3cd6a892ae4bad0c09380c60.tar.xz
minmax: fix header inclusions
[ Upstream commit f6e9d38f8eb00ac8b52e6d15f6aa9bcecacb081b ] 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(). Link: https://lkml.kernel.org/r/20230912092355.79280-1-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Herve Codina <herve.codina@bootlin.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Eliav Farber <farbere@amazon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/minmax.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/minmax.h b/include/linux/minmax.h
index c813c1187510..2a197f54fe05 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>