Skip to content

tools perf: fix build warnings

Yanteng Si linux-perf-users 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 9 repliesIn review
  2. v117 of 18 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* Drop <tools arch s390: Sync the ptrace headers with the kernel sources> Because ptrace.h has been fixed in other tree, detail see:
selftests/bpf: Remove not used headers
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f265d2aea0d
tools headers: Remove s390 ptrace.h in check-headers.sh
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed4da0d3de1e

* BTW, I made these patches in the next tree, so most of the warnings haven't appeared in the perf tree yet. :)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17tools headers UAPI: Sync the linux/in.h with the kernel sourcestools/include/uapi/linux/in.h+1 -00 replies
2/17tools headers UAPI: Sync the linux/prctl.h with the kernel sourcestools/include/uapi/linux/prctl.h+2 -00 replies
3/17tools headers UAPI: Sync the drm/drm.h with the kernel sourcestools/include/uapi/drm/drm.h+55 -20 replies
4/17tools headers UAPI: Sync the i915_drm.h with the kernel sourcestools/include/uapi/drm/i915_drm.h+24 -10 replies
5/17tools headers UAPI: Sync the coresight-pmu headers copy with the kernel sourcestools/include/linux/coresight-pmu.h+0 -132 replies
6/17tools headers UAPI: Sync the linux/const.h with the kernel headerstools/include/uapi/linux/const.h+1 -10 replies
7/17tools headers UAPI: Sync the linux/perf_event.h with the kernel headerstools/include/uapi/linux/perf_event.h+1 -21 reply
8/17tools include UAPI: Sync the sound/asound.h copy with the kernel sourcestools/include/uapi/sound/asound.h+10 -40 replies
9/17tools headers UAPI: Sync the linux/mman.h with the kernel sourcestools/include/uapi/linux/mman.h+14 -00 replies
10/17tools headers UAPI: Sync the unistd with the kernel sourcestools/include/uapi/asm-generic/unistd.h tools/perf/arch/s390/entry/syscalls/syscall.tbl tools/perf/arch/x86/entry/syscalls/syscall_64.tbl+7 -20 replies
11/17tools headers kvm: Sync uapi/{asm/linux} kvm.h headers with the kernel sourcestools/arch/arm64/include/uapi/asm/kvm.h tools/arch/x86/include/uapi/asm/kvm.h tools/include/uapi/linux/kvm.h+49 -20 replies
12/17tools arch x86: Sync the disabled-features with the kernel sourcestools/arch/x86/include/asm/disabled-features.h+21 -30 replies
13/17tools arch x86: Sync the memcpy_64 with the kernel sourcestools/arch/x86/lib/memcpy_64.S tools/arch/x86/lib/memset_64.S+22 -601 reply
14/17tools arch x86: Sync the cpufeatures with the kernel sourcestools/arch/x86/include/asm/cpufeatures.h+23 -50 replies
15/17tools arch x86: Sync the msr-index.h copy with the kernel sourcestools/arch/x86/include/asm/msr-index.h+2 -00 replies
16/17tools arch x86: Sync the prctl headers with the kernel sourcestools/arch/x86/include/uapi/asm/prctl.h+20 -00 replies
17/17tools arch arm64: Sync the perf_regs headers with the kernel sourcestools/arch/arm64/include/uapi/asm/perf_regs.h+6 -43 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/17] tools perf: fix build warnings

v2:

* Drop <tools arch s390: Sync the ptrace headers with the kernel sources> Because ptrace.h has been fixed in other tree, detail see:
selftests/bpf: Remove not used headers
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f265d2aea0d
tools headers: Remove s390 ptrace.h in check-headers.sh
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed4da0d3de1e

* BTW, I made these patches in the next tree, so most of the warnings haven't appeared in the perf tree yet. :)

v1:
* When I try to build perf, a lot of warnings are output, let's fix them.

Yanteng Si (17):
tools headers UAPI: Sync the linux/in.h with the kernel sources tools headers UAPI: Sync the linux/prctl.h with the kernel sources tools headers UAPI: Sync the drm/drm.h with the kernel sources tools headers UAPI: Sync the i915_drm.h with the kernel sources tools headers UAPI: Sync the coresight-pmu headers copy with the
kernel sources
tools headers UAPI: Sync the linux/const.h with the kernel headers tools headers UAPI: Sync the linux/perf_event.h with the kernel
headers
tools include UAPI: Sync the sound/asound.h copy with the kernel
sources
tools headers UAPI: Sync the linux/mman.h with the kernel sources tools headers UAPI: Sync the unistd with the kernel sources tools headers kvm: Sync uapi/{asm/linux} kvm.h headers with the kernel
sources
tools arch x86: Sync the disabled-features with the kernel sources tools arch x86: Sync the memcpy_64 with the kernel sources tools arch x86: Sync the cpufeatures with the kernel sources tools arch x86: Sync the msr-index.h copy with the kernel sources tools arch x86: Sync the prctl headers with the kernel sources tools arch arm64: Sync the perf_regs headers with the kernel sources

 tools/arch/arm64/include/uapi/asm/kvm.h       | 36 ++++++++++++
 tools/arch/arm64/include/uapi/asm/perf_regs.h | 10 ++--
 tools/arch/x86/include/asm/cpufeatures.h      | 28 +++++++--
 .../arch/x86/include/asm/disabled-features.h  | 24 +++++++-
 tools/arch/x86/include/asm/msr-index.h        |  2 +
 tools/arch/x86/include/uapi/asm/kvm.h         |  3 +
 tools/arch/x86/include/uapi/asm/prctl.h       | 20 +++++++
 tools/arch/x86/lib/memcpy_64.S                | 35 ++++--------
 tools/arch/x86/lib/memset_64.S                | 47 ++++-----------
 tools/include/linux/coresight-pmu.h           | 13 -----
 tools/include/uapi/asm-generic/unistd.h       |  5 +-
 tools/include/uapi/drm/drm.h                  | 57 ++++++++++++++++++-
 tools/include/uapi/drm/i915_drm.h             | 25 +++++++-
 tools/include/uapi/linux/const.h              |  2 +-
 tools/include/uapi/linux/in.h                 |  1 +
 tools/include/uapi/linux/kvm.h                | 12 +++-
 tools/include/uapi/linux/mman.h               | 14 +++++
 tools/include/uapi/linux/perf_event.h         |  3 +-
 tools/include/uapi/linux/prctl.h              |  2 +
 tools/include/uapi/sound/asound.h             | 14 +++--
 .../perf/arch/s390/entry/syscalls/syscall.tbl |  2 +-
 .../arch/x86/entry/syscalls/syscall_64.tbl    |  2 +
 22 files changed, 258 insertions(+), 99 deletions(-)
Signature · 1 line
2.31.4