objtool: Move kernel headers/code sync check to a script
authorJosh Poimboeuf <jpoimboe@redhat.com>
Mon, 6 Nov 2017 13:21:51 +0000 (07:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Dec 2017 16:53:42 +0000 (17:53 +0100)
commit2845aee45c363e15c1e677b1f4d0043f361c102b
tree93aee959f70fc638c3130471c861e4f3753788ff
parent62c37437a110cfec0d2b46f5d28113a631187978
objtool: Move kernel headers/code sync check to a script

commit 3bd51c5a371de917e4e7401c9df006b5998579df upstream.

Replace the nasty diff checks in the objtool Makefile with a clean bash
script, and make the warnings more specific.

Heavily inspired by tools/perf/check-headers.sh.

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/ab015f15ccd8c0c6008493c3c6ee3d495eaf2927.1509974346.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/objtool/Makefile
tools/objtool/sync-check.sh [new file with mode: 0755]