Skip to content

Commit ca64d84

Browse files
committed
tools headers: Update linux/vdso.h and grab a copy of vdso/const.h
To get in line with: 8165b57 ("linux/const.h: Extract common header for vDSO") And silence this tools/perf/ build warning: Warning: Kernel ABI header at 'tools/include/linux/const.h' differs from latest version at 'include/linux/const.h' diff -u tools/include/linux/const.h include/linux/const.h Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vincenzo Frascino <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 8358f69 commit ca64d84

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

tools/include/linux/const.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#ifndef _LINUX_CONST_H
22
#define _LINUX_CONST_H
33

4-
#include <uapi/linux/const.h>
5-
6-
#define UL(x) (_UL(x))
7-
#define ULL(x) (_ULL(x))
4+
#include <vdso/const.h>
85

96
#endif /* _LINUX_CONST_H */

tools/include/vdso/const.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef __VDSO_CONST_H
3+
#define __VDSO_CONST_H
4+
5+
#include <uapi/linux/const.h>
6+
7+
#define UL(x) (_UL(x))
8+
#define ULL(x) (_ULL(x))
9+
10+
#endif /* __VDSO_CONST_H */

tools/perf/check-headers.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ include/uapi/linux/vhost.h
2323
include/uapi/sound/asound.h
2424
include/linux/bits.h
2525
include/linux/const.h
26+
include/vdso/const.h
2627
include/linux/hash.h
2728
include/uapi/linux/hw_breakpoint.h
2829
arch/x86/include/asm/disabled-features.h

0 commit comments

Comments
 (0)