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

objtool: Make sync-check consider the target architecture

Do not take into account outdated headers unrelated to the build of the
current architecture.

[ jpoimboe: use $SRCARCH directly ]

Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Julien Thierry <jthierry@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>

authored by

Julien Thierry and committed by
Josh Poimboeuf
bb090fdb 3890b8d9

+7
+7
tools/objtool/sync-check.sh
··· 1 1 #!/bin/sh 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 + if [ -z "$SRCARCH" ]; then 5 + echo 'sync-check.sh: error: missing $SRCARCH environment variable' >&2 6 + exit 1 7 + fi 8 + 9 + if [ "$SRCARCH" = "x86" ]; then 4 10 FILES=" 5 11 arch/x86/include/asm/inat_types.h 6 12 arch/x86/include/asm/orc_types.h ··· 19 13 arch/x86/lib/inat.c -I '^#include [\"<]\(../include/\)*asm/insn.h[\">]' 20 14 arch/x86/lib/insn.c -I '^#include [\"<]\(../include/\)*asm/in\(at\|sn\).h[\">]' -I '^#include [\"<]\(../include/\)*asm/emulate_prefix.h[\">]' 21 15 " 16 + fi 22 17 23 18 check_2 () { 24 19 file1=$1