diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-09-12 11:23:55 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-10-04 19:41:57 +0200 |
commit | f6e9d38f8eb00ac8b52e6d15f6aa9bcecacb081b (patch) | |
tree | d3132712aa5b60f9e0df20b3199fe03b8e138480 | |
parent | pid: pid_ns_ctl_handler: remove useless comment (diff) | |
download | linux-f6e9d38f8eb00ac8b52e6d15f6aa9bcecacb081b.tar.xz linux-f6e9d38f8eb00ac8b52e6d15f6aa9bcecacb081b.zip |
minmax: fix header inclusions
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>
-rw-r--r-- | include/linux/minmax.h | 3 |
1 files changed, 2 insertions, 1 deletions
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> |