Message ID | 20190304175016.40538-1-ndesaulniers@google.com |
---|---|
State | Superseded |
Headers | show |
Series | [v2] x86/boot: clean up headers | expand |
Hi Nick, On Mon, 4 Mar 2019 09:50:16 -0800 Nick Desaulniers <ndesaulniers@google.com> wrote: > > Changes V1 -> V2: > * Add Reviewed, Tested, Suggested tags. > * Drop linux/types.h; it's included in linux/limits.h. > > My original intention was to unsort the headers (sorted in V1), but if > we drop the out of place linux/types.h, then we can insert the two more > specific headers in alphabetic order. I don't understand why you care about the include file ordering. Also, since this file uses things from linux/types.h, I would argue that we need the explicit include of linux/types.h. Just imagine if someone at a later date reomves the linux/types.h include from linux/limits.h (however unlikely that is). Just do your bug fix. -- Cheers, Stephen Rothwell
diff --git a/arch/x86/boot/string.c b/arch/x86/boot/string.c index 315a67b8896b..597589cafb45 100644 --- a/arch/x86/boot/string.c +++ b/arch/x86/boot/string.c @@ -12,9 +12,9 @@ * Very basic string functions */ -#include <linux/types.h> -#include <linux/kernel.h> +#include <linux/compiler.h> #include <linux/errno.h> +#include <linux/limits.h> #include <asm/asm.h> #include "ctype.h" #include "string.h"