Skip to content

tools/perf: tools: Fix perf build issues

Masami Hiramatsu lkml 1 version In review

Get series with b4
b4 am 162074534493.289757.1243545574686276554.stgit@devnote2

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf build: Move EXTRA_CFLAGS and EXTRA_WARNINGS at the end of CFLAGStools/perf/Makefile.config+2 -10 replies
2/2tools: Add -Wno-missing-field-initializers to for clangtools/scripts/Makefile.include+4 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchNick Desaulniers
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] tools/perf: tools: Fix perf build issues

Hi,

These are the patches to fix the perf build issues which I reported in the previous email.

https://lore.kernel.org/lkml/162037766527.94840.4323848545957010011.stgit@devnote2/

There are 2 issues I found and are fixed with these patches.

- Since the EXTRA_CLFAGS/WARNINGS are listed before -Wall/-Wextra in CFLAGS, all -Wno-* flags in the EXTRA_CFLAGS/WARNINGS are ignored. This makes EXTRA_WARNINGS ignored and developers can not use EXTRA_CLFAGS for debugging compiler warnings.

- Clang's missing-field-initializers warning is too sensitive compared with GCC. I think "{ NULL }" kind of syntax is allowed for simplify code.

Thank you,

---

Masami Hiramatsu (2):
perf build: Move EXTRA_CFLAGS and EXTRA_WARNINGS at the end of CFLAGS
tools: Add -Wno-missing-field-initializers to for clang

 tools/perf/Makefile.config     |    3 ++-
 tools/scripts/Makefile.include |    4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

--
Masami Hiramatsu (Linaro) <[email protected]>