path: root/lib/hexdump.c
diff options
authorAndy Shevchenko <>2020-10-15 20:10:21 -0700
committerLinus Torvalds <>2020-10-16 11:11:19 -0700
commitb296a6d53339a79082c1d2c1761e948e8b3def69 (patch)
tree3690c09dcb43d2f3d823d5b1f6aabbc1fbf79cb0 /lib/hexdump.c
parentce9bebe683a131b86be986c3b6a741a520327679 (diff)
kernel.h: split out min()/max() et al. helpers
kernel.h is being used as a dump for all kinds of stuff for a long time. Here is the attempt to start cleaning it up by splitting out min()/max() et al. helpers. At the same time convert users in header and lib folder to use new header. Though for time being include new header back to kernel.h to avoid twisted indirected includes for other existing users. Signed-off-by: Andy Shevchenko <> Signed-off-by: Andrew Morton <> Cc: "Rafael J. Wysocki" <> Cc: Steven Rostedt <> Cc: Rasmus Villemoes <> Cc: Joe Perches <> Cc: Linus Torvalds <> Link: Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'lib/hexdump.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hexdump.c b/lib/hexdump.c
index 147133f8eb2f..9301578f98e8 100644
--- a/lib/hexdump.c
+++ b/lib/hexdump.c
@@ -7,6 +7,7 @@
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/kernel.h>
+#include <linux/minmax.h>
#include <linux/export.h>
#include <asm/unaligned.h>