Re: [PATCH] fs: proc: move linux_proc_banner to where it is used

From: Alexey Dobriyan
Date: Sat Oct 27 2018 - 15:47:54 EST


On Fri, Oct 26, 2018 at 11:20:34PM +0200, Rasmus Villemoes wrote:
> +#include <generated/compile.h>

> +#define linux_proc_banner \
> + "%s version %s" \
> + " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")" \
> + " (" LINUX_COMPILER ") %s\n"

Include doesn't work if compiling from scratch:

rm -rf ../obj
mkdir ../obj
make O=../obj defconfig
make O=../obj fs/proc/version.o

CC fs/proc/version.o
fs/proc/version.c:2:10: fatal error: generated/compile.h: No such file or directory