diff options
Diffstat (limited to '0005-tools-objtool-makefile-don-t-assume-sync-check.sh-is-executable.patch')
-rw-r--r-- | 0005-tools-objtool-makefile-don-t-assume-sync-check.sh-is-executable.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/0005-tools-objtool-makefile-don-t-assume-sync-check.sh-is-executable.patch b/0005-tools-objtool-makefile-don-t-assume-sync-check.sh-is-executable.patch new file mode 100644 index 000000000000..313daf40ebb9 --- /dev/null +++ b/0005-tools-objtool-makefile-don-t-assume-sync-check.sh-is-executable.patch @@ -0,0 +1,36 @@ +From 0f908ccbeca99ddf0ad60afa710e72aded4a5ea7 Mon Sep 17 00:00:00 2001 +From: Andrew Morton <akpm@linux-foundation.org> +Date: Fri, 12 Jan 2018 16:53:17 -0800 +Subject: tools/objtool/Makefile: don't assume sync-check.sh is executable + +From: Andrew Morton <akpm@linux-foundation.org> + +commit 0f908ccbeca99ddf0ad60afa710e72aded4a5ea7 upstream. + +patch(1) loses the x bit. So if a user follows our patching +instructions in Documentation/admin-guide/README.rst, their kernel will +not compile. + +Fixes: 3bd51c5a371de ("objtool: Move kernel headers/code sync check to a script") +Reported-by: Nicolas Bock <nicolasbock@gentoo.org> +Reported-by Joakim Tjernlund <Joakim.Tjernlund@infinera.com> +Cc: Ingo Molnar <mingo@kernel.org> +Cc: Josh Poimboeuf <jpoimboe@redhat.com> +Signed-off-by: Andrew Morton <akpm@linux-foundation.org> +Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> +Cc: Holger Hoffstätte <holger@applied-asynchrony.com> +Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> + +--- + tools/objtool/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/tools/objtool/Makefile ++++ b/tools/objtool/Makefile +@@ -46,7 +46,7 @@ $(OBJTOOL_IN): fixdep FORCE + @$(MAKE) $(build)=objtool + + $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) +- @./sync-check.sh ++ @$(CONFIG_SHELL) ./sync-check.sh + $(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@ |