|
@@ -55,17 +55,26 @@ include/uapi/asm-generic/ioctls.h
|
|
|
include/uapi/asm-generic/mman-common.h
|
|
|
'
|
|
|
|
|
|
-check () {
|
|
|
- file=$1
|
|
|
+check_2 () {
|
|
|
+ file1=$1
|
|
|
+ file2=$2
|
|
|
|
|
|
+ shift
|
|
|
shift
|
|
|
|
|
|
- cmd="diff $* ../$file ../../$file > /dev/null"
|
|
|
+ cmd="diff $* $file1 $file2 > /dev/null"
|
|
|
|
|
|
- test -f ../../$file &&
|
|
|
+ test -f $file2 &&
|
|
|
eval $cmd || echo "Warning: Kernel ABI header at 'tools/$file' differs from latest version at '$file'" >&2
|
|
|
}
|
|
|
|
|
|
+check () {
|
|
|
+ file=$1
|
|
|
+
|
|
|
+ shift
|
|
|
+
|
|
|
+ check_2 ../$file ../../$file $*
|
|
|
+}
|
|
|
|
|
|
# Check if we have the kernel headers (tools/perf/../../include), else
|
|
|
# we're probably on a detached tarball, so no point in trying to check
|