Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib/halfmd4.c: simplify includes

We only need EXPORT_SYMBOL, so compiler.h and export.h suffice. This
means linux/types.h is no longer implicitly included, so add an include of
uapi/linux/types.h to linux/cryptohash.h for __u32. Other users of
cryptohash.h cannot be affected, since they must already have been
including uapi/linux/types.h in order for gcc not to complain about
unknown types.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Rasmus Villemoes and committed by
Linus Torvalds
3248340d 565ac23b

+3 -1
+2
include/linux/cryptohash.h
··· 1 1 #ifndef __CRYPTOHASH_H 2 2 #define __CRYPTOHASH_H 3 3 4 + #include <uapi/linux/types.h> 5 + 4 6 #define SHA_DIGEST_WORDS 5 5 7 #define SHA_MESSAGE_BYTES (512 /*bits*/ / 8) 6 8 #define SHA_WORKSPACE_WORDS 16
+1 -1
lib/halfmd4.c
··· 1 - #include <linux/kernel.h> 1 + #include <linux/compiler.h> 2 2 #include <linux/export.h> 3 3 #include <linux/cryptohash.h> 4 4