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_types.h"
11 if [ "$SRCARCH" = "x86" ]; then
13 arch/x86/include/asm/nops.h
14 arch/x86/include/asm/inat_types.h
15 arch/x86/include/asm/orc_types.h
16 arch/x86/include/asm/emulate_prefix.h
17 arch/x86/lib/x86-opcode-map.txt
18 arch/x86/tools/gen-insn-attr-x86.awk
19 include/linux/static_call_types.h
23 arch/x86/include/asm/inat.h
24 arch/x86/include/asm/insn.h
37 cmd
="diff $* $file1 $file2 > /dev/null"
41 echo "Warning: Kernel ABI header at '$file1' differs from latest version at '$file2'" >&2
42 echo diff -u $file1 $file2
52 check_2 tools
/$file $file $
*
55 if [ ! -d ..
/..
/kernel
] ||
[ ! -d ..
/..
/tools
] ||
[ ! -d ..
/objtool
]; then
61 while read -r file_entry
; do
62 if [ -z "$file_entry" ]; then
71 if [ "$SRCARCH" = "x86" ]; then
72 for i
in $SYNC_CHECK_FILES; do
73 check
$i '-I "^.*\/\*.*__ignore_sync_check__.*\*\/.*$"'