2 # SPDX-License-Identifier: GPL-2.0
4 if [ -z "$SRCARCH" ]; then
5 echo 'sync-check.sh: error: missing $SRCARCH environment variable' >&2
9 FILES
="include/linux/objtool.h"
11 if [ "$SRCARCH" = "x86" ]; then
13 arch/x86/include/asm/inat_types.h
14 arch/x86/include/asm/orc_types.h
15 arch/x86/include/asm/emulate_prefix.h
16 arch/x86/lib/x86-opcode-map.txt
17 arch/x86/tools/gen-insn-attr-x86.awk
18 include/linux/static_call_types.h
19 arch/x86/include/asm/inat.h -I '^#include [\"<]\(asm/\)*inat_types.h[\">]'
20 arch/x86/include/asm/insn.h -I '^#include [\"<]\(asm/\)*inat.h[\">]'
21 arch/x86/lib/inat.c -I '^#include [\"<]\(../include/\)*asm/insn.h[\">]'
22 arch/x86/lib/insn.c -I '^#include [\"<]\(../include/\)*asm/in\(at\|sn\).h[\">]' -I '^#include [\"<]\(../include/\)*asm/emulate_prefix.h[\">]'
33 cmd
="diff $* $file1 $file2 > /dev/null"
37 echo "Warning: Kernel ABI header at '$file1' differs from latest version at '$file2'" >&2
38 echo diff -u $file1 $file2
48 check_2 tools
/$file $file $
*
51 if [ ! -d ..
/..
/kernel
] ||
[ ! -d ..
/..
/tools
] ||
[ ! -d ..
/objtool
]; then
57 while read -r file_entry
; do
58 if [ -z "$file_entry" ]; then