Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools headers: Update the linux/unaligned.h copy with the kernel sources

To pick up the changes in:

7f053812dab3946c ("random: vDSO: minimize and simplify header includes")

That required adding a copy of include/vdso/unaligned.h and its checking
in tools/perf/check-headers.h.

Addressing this perf tools build warning:

Warning: Kernel ABI header differences:
diff -u tools/include/linux/unaligned.h include/linux/unaligned.h

Please see tools/include/uapi/README for further details.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Ian Rogers <irogers@google.com>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/Zx-uHvAbPAESofEN@x1
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+17 -10
+1 -10
tools/include/linux/unaligned.h
··· 9 9 #pragma GCC diagnostic push 10 10 #pragma GCC diagnostic ignored "-Wpacked" 11 11 #pragma GCC diagnostic ignored "-Wattributes" 12 - 13 - #define __get_unaligned_t(type, ptr) ({ \ 14 - const struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \ 15 - __pptr->x; \ 16 - }) 17 - 18 - #define __put_unaligned_t(type, val, ptr) do { \ 19 - struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \ 20 - __pptr->x = (val); \ 21 - } while (0) 12 + #include <vdso/unaligned.h> 22 13 23 14 #define get_unaligned(ptr) __get_unaligned_t(typeof(*(ptr)), (ptr)) 24 15 #define put_unaligned(val, ptr) __put_unaligned_t(typeof(*(ptr)), (val), (ptr))
+15
tools/include/vdso/unaligned.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __VDSO_UNALIGNED_H 3 + #define __VDSO_UNALIGNED_H 4 + 5 + #define __get_unaligned_t(type, ptr) ({ \ 6 + const struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \ 7 + __pptr->x; \ 8 + }) 9 + 10 + #define __put_unaligned_t(type, val, ptr) do { \ 11 + struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \ 12 + __pptr->x = (val); \ 13 + } while (0) 14 + 15 + #endif /* __VDSO_UNALIGNED_H */
+1
tools/perf/check-headers.sh
··· 22 22 "include/vdso/bits.h" 23 23 "include/linux/const.h" 24 24 "include/vdso/const.h" 25 + "include/vdso/unaligned.h" 25 26 "include/linux/hash.h" 26 27 "include/linux/list-sort.h" 27 28 "include/uapi/linux/hw_breakpoint.h"