]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools check_headers.sh: Add check variant that excludes some hunks
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 30 Sep 2024 20:07:28 +0000 (17:07 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 2 Oct 2024 17:50:44 +0000 (14:50 -0300)
commitcd46ea5ab48667e9522608533b9a24e3028fa368
tree744c6736d15c1583d3550e8778f8d7cf87bdc930
parentd1648688799dd14075c43e2d091be815c794f331
tools check_headers.sh: Add check variant that excludes some hunks

With 6d74e1e371d43a7b ("tools/lib/list_sort: remove redundant code for
cond_resched handling") we end up with a multi-line variation in the
merge_final() implementation, one that the simple line based exceptions
we had so far can't cope.

Thus this check has been failing:

  Warning: Kernel ABI header differences:
    diff -u tools/lib/list_sort.c lib/list_sort.c

So add a new check routine that uses grep -vf to exclude some hunks that
we store in the tools/perf/check-header_ignore_hunks/ directory.

This first patch is just the new check routine, the next one will use it
to check lib/list_sort.c.

Acked-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/lkml/20240930202136.16904-2-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/check-headers.sh