]> git.baikalelectronics.ru Git - kernel.git/commit
tools headers: Synchronize linux/bits.h with the kernel sources
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Apr 2020 13:27:39 +0000 (10:27 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 14 Apr 2020 14:40:05 +0000 (11:40 -0300)
commit476873bc6a2a846e41d90cb8f4b26d604c573e24
tree7c4738852288d3843f2bb7cc89ba988eeea07ed0
parent24b06ba175b35d011b9f632c43537296ce79ffb9
tools headers: Synchronize linux/bits.h with the kernel sources

To pick up the changes in these csets:

  1a37409b8ed1 ("linux/bits.h: add compile time sanity check of GENMASK inputs")
  015d5cd67d16 ("linux/bits.h: Extract common header for vDSO")

To address this tools/perf build warning:

  Warning: Kernel ABI header at 'tools/include/linux/bits.h' differs from latest version at 'include/linux/bits.h'
  diff -u tools/include/linux/bits.h include/linux/bits.h

This clashes with usage of userspace's static_assert(), that, at least
on glibc, is guarded by a ifnded/endif pair, do the same to our copy of
build_bug.h and avoid that diff in check_headers.sh so that we continue
checking for drifts with the kernel sources master copy.

This will all be tested with the set of build containers that includes
uCLibc, musl libc, lots of glibc versions in lots of distros and cross
build environments.

The tools/objtool, tools/bpf, etc were tested as well.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/linux/bits.h
tools/include/linux/build_bug.h [new file with mode: 0644]
tools/include/linux/kernel.h
tools/include/vdso/bits.h [new file with mode: 0644]
tools/perf/check-headers.sh