public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] tools/perf: tools: Fix perf build issues
@ 2021-05-11 15:02 Masami Hiramatsu
  2021-05-11 15:02 ` [PATCH 1/2] perf build: Move EXTRA_CFLAGS and EXTRA_WARNINGS at the end of CFLAGS Masami Hiramatsu
  2021-05-11 15:02 ` [PATCH 2/2] tools: Add -Wno-missing-field-initializers to for clang Masami Hiramatsu
  0 siblings, 2 replies; 4+ messages in thread
From: Masami Hiramatsu @ 2021-05-11 15:02 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Anders Roxell, Leo Yan, linux-kernel, Nathan Chancellor,
	Nick Desaulniers

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@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-11 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-11 15:02 [PATCH 0/2] tools/perf: tools: Fix perf build issues Masami Hiramatsu
2021-05-11 15:02 ` [PATCH 1/2] perf build: Move EXTRA_CFLAGS and EXTRA_WARNINGS at the end of CFLAGS Masami Hiramatsu
2021-05-11 15:02 ` [PATCH 2/2] tools: Add -Wno-missing-field-initializers to for clang Masami Hiramatsu
2021-05-11 18:23   ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox