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

From: Masami Hiramatsu
Date: Tue May 11 2021 - 11:02:34 EST


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) <mhiramat@xxxxxxxxxx>