diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-11-03 07:18:37 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-11-04 04:27:46 -0400 |
| commit | fb7df12d645cfba6a76a45fdcc7e3f7fbbcda661 (patch) | |
| tree | 80d5ef6917f88e8c7fb91625d094bf756432535b /tools/include/uapi/linux | |
| parent | 294cbd05e32990c3b1a62be27441fc719edebbab (diff) | |
tools/headers: Synchronize kernel ABI headers
After the SPDX license tags were added a number of tooling headers got out of
sync with their kernel variants, generating lots of build warnings.
Sync them:
- tools/arch/x86/include/asm/disabled-features.h,
tools/arch/x86/include/asm/required-features.h,
tools/include/linux/hash.h:
Remove the SPDX tag where the kernel version does not have it.
- tools/include/asm-generic/bitops/__fls.h,
tools/include/asm-generic/bitops/arch_hweight.h,
tools/include/asm-generic/bitops/const_hweight.h,
tools/include/asm-generic/bitops/fls.h,
tools/include/asm-generic/bitops/fls64.h,
tools/include/uapi/asm-generic/ioctls.h,
tools/include/uapi/asm-generic/mman-common.h,
tools/include/uapi/sound/asound.h,
tools/include/uapi/linux/kvm.h,
tools/include/uapi/linux/perf_event.h,
tools/include/uapi/linux/sched.h,
tools/include/uapi/linux/vhost.h,
tools/include/uapi/sound/asound.h:
Add the SPDX tag of the respective kernel header.
- tools/include/uapi/linux/bpf_common.h,
tools/include/uapi/linux/fcntl.h,
tools/include/uapi/linux/hw_breakpoint.h,
tools/include/uapi/linux/mman.h,
tools/include/uapi/linux/stat.h,
Change the tag to the kernel header version:
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Also sync other header details:
- include/uapi/sound/asound.h:
Fix pointless end of line whitespace noise the header grew in this cycle.
- tools/arch/x86/lib/memcpy_64.S:
Sync the code and add tools/include/asm/export.h with dummy wrappers
to support building the kernel side code in a tooling header environment.
- tools/include/uapi/asm-generic/mman.h,
tools/include/uapi/linux/bpf.h:
Sync other details that don't impact tooling's use of the ABIs.
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/include/uapi/linux')
| -rw-r--r-- | tools/include/uapi/linux/bpf.h | 4 | ||||
| -rw-r--r-- | tools/include/uapi/linux/bpf_common.h | 2 | ||||
| -rw-r--r-- | tools/include/uapi/linux/fcntl.h | 2 | ||||
| -rw-r--r-- | tools/include/uapi/linux/hw_breakpoint.h | 2 | ||||
| -rw-r--r-- | tools/include/uapi/linux/kvm.h | 1 | ||||
| -rw-r--r-- | tools/include/uapi/linux/mman.h | 2 | ||||
| -rw-r--r-- | tools/include/uapi/linux/perf_event.h | 1 | ||||
| -rw-r--r-- | tools/include/uapi/linux/sched.h | 1 | ||||
| -rw-r--r-- | tools/include/uapi/linux/stat.h | 2 | ||||
| -rw-r--r-- | tools/include/uapi/linux/vhost.h | 1 |
10 files changed, 11 insertions, 7 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 01cc7ba39924..30f2ce76b517 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 1 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com | 2 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com |
| 2 | * | 3 | * |
| 3 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
| @@ -569,10 +570,9 @@ union bpf_attr { | |||
| 569 | * @flags: reserved for future use | 570 | * @flags: reserved for future use |
| 570 | * Return: 0 on success or negative error code | 571 | * Return: 0 on success or negative error code |
| 571 | * | 572 | * |
| 572 | * int bpf_sk_redirect_map(skb, map, key, flags) | 573 | * int bpf_sk_redirect_map(map, key, flags) |
| 573 | * Redirect skb to a sock in map using key as a lookup key for the | 574 | * Redirect skb to a sock in map using key as a lookup key for the |
| 574 | * sock in map. | 575 | * sock in map. |
| 575 | * @skb: pointer to skb | ||
| 576 | * @map: pointer to sockmap | 576 | * @map: pointer to sockmap |
| 577 | * @key: key to lookup sock in map | 577 | * @key: key to lookup sock in map |
| 578 | * @flags: reserved for future use | 578 | * @flags: reserved for future use |
diff --git a/tools/include/uapi/linux/bpf_common.h b/tools/include/uapi/linux/bpf_common.h index 64ba734aba80..18be90725ab0 100644 --- a/tools/include/uapi/linux/bpf_common.h +++ b/tools/include/uapi/linux/bpf_common.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
| 2 | #ifndef _UAPI__LINUX_BPF_COMMON_H__ | 2 | #ifndef _UAPI__LINUX_BPF_COMMON_H__ |
| 3 | #define _UAPI__LINUX_BPF_COMMON_H__ | 3 | #define _UAPI__LINUX_BPF_COMMON_H__ |
| 4 | 4 | ||
diff --git a/tools/include/uapi/linux/fcntl.h b/tools/include/uapi/linux/fcntl.h index b6705247afe8..6448cdd9a350 100644 --- a/tools/include/uapi/linux/fcntl.h +++ b/tools/include/uapi/linux/fcntl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
| 2 | #ifndef _UAPI_LINUX_FCNTL_H | 2 | #ifndef _UAPI_LINUX_FCNTL_H |
| 3 | #define _UAPI_LINUX_FCNTL_H | 3 | #define _UAPI_LINUX_FCNTL_H |
| 4 | 4 | ||
diff --git a/tools/include/uapi/linux/hw_breakpoint.h b/tools/include/uapi/linux/hw_breakpoint.h index 6394ea9d5524..965e4d8606d8 100644 --- a/tools/include/uapi/linux/hw_breakpoint.h +++ b/tools/include/uapi/linux/hw_breakpoint.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
| 2 | #ifndef _UAPI_LINUX_HW_BREAKPOINT_H | 2 | #ifndef _UAPI_LINUX_HW_BREAKPOINT_H |
| 3 | #define _UAPI_LINUX_HW_BREAKPOINT_H | 3 | #define _UAPI_LINUX_HW_BREAKPOINT_H |
| 4 | 4 | ||
diff --git a/tools/include/uapi/linux/kvm.h b/tools/include/uapi/linux/kvm.h index 838887587411..7e99999d6236 100644 --- a/tools/include/uapi/linux/kvm.h +++ b/tools/include/uapi/linux/kvm.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 1 | #ifndef __LINUX_KVM_H | 2 | #ifndef __LINUX_KVM_H |
| 2 | #define __LINUX_KVM_H | 3 | #define __LINUX_KVM_H |
| 3 | 4 | ||
diff --git a/tools/include/uapi/linux/mman.h b/tools/include/uapi/linux/mman.h index 64d2b4e556e5..bfd5938fede6 100644 --- a/tools/include/uapi/linux/mman.h +++ b/tools/include/uapi/linux/mman.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
| 2 | #ifndef _UAPI_LINUX_MMAN_H | 2 | #ifndef _UAPI_LINUX_MMAN_H |
| 3 | #define _UAPI_LINUX_MMAN_H | 3 | #define _UAPI_LINUX_MMAN_H |
| 4 | 4 | ||
diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index 140ae638cfd6..362493a2f950 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 1 | /* | 2 | /* |
| 2 | * Performance events: | 3 | * Performance events: |
| 3 | * | 4 | * |
diff --git a/tools/include/uapi/linux/sched.h b/tools/include/uapi/linux/sched.h index e2a6c7b3510b..30a9e51bbb1e 100644 --- a/tools/include/uapi/linux/sched.h +++ b/tools/include/uapi/linux/sched.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 1 | #ifndef _UAPI_LINUX_SCHED_H | 2 | #ifndef _UAPI_LINUX_SCHED_H |
| 2 | #define _UAPI_LINUX_SCHED_H | 3 | #define _UAPI_LINUX_SCHED_H |
| 3 | 4 | ||
diff --git a/tools/include/uapi/linux/stat.h b/tools/include/uapi/linux/stat.h index 9eac599afd91..7b35e98d3c58 100644 --- a/tools/include/uapi/linux/stat.h +++ b/tools/include/uapi/linux/stat.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
| 2 | #ifndef _UAPI_LINUX_STAT_H | 2 | #ifndef _UAPI_LINUX_STAT_H |
| 3 | #define _UAPI_LINUX_STAT_H | 3 | #define _UAPI_LINUX_STAT_H |
| 4 | 4 | ||
diff --git a/tools/include/uapi/linux/vhost.h b/tools/include/uapi/linux/vhost.h index 60180c0b5dc6..c51f8e5cc608 100644 --- a/tools/include/uapi/linux/vhost.h +++ b/tools/include/uapi/linux/vhost.h | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 1 | #ifndef _LINUX_VHOST_H | 2 | #ifndef _LINUX_VHOST_H |
| 2 | #define _LINUX_VHOST_H | 3 | #define _LINUX_VHOST_H |
| 3 | /* Userspace interface for in-kernel virtio accelerators. */ | 4 | /* Userspace interface for in-kernel virtio accelerators. */ |
