Skip to content

Commit f6e9d38

Browse files
andy-shevakpm00
authored andcommitted
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/[email protected] Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Herve Codina <[email protected]> Cc: Rasmus Villemoes <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 2d57792 commit f6e9d38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/minmax.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#ifndef _LINUX_MINMAX_H
33
#define _LINUX_MINMAX_H
44

5-
#include <linux/compiler_types.h>
5+
#include <linux/build_bug.h>
6+
#include <linux/compiler.h>
67
#include <linux/const.h>
78
#include <linux/types.h>
89

0 commit comments

Comments
 (0)