tools build: Enable warnings through HOSTCFLAGS
John Garry authored
The tools build system uses KBUILD_HOSTCFLAGS symbol for obvious purposes.

However this is not set for anything under tools/

As such, host tools apps built have no compiler warnings enabled.

Declare HOSTCFLAGS for perf tools build, and also use that symbol in
declaration of host_c_flags. HOSTCFLAGS comes from EXTRA_WARNINGS, which
is independent of target platform/arch warning flags.
Suggested-by: default avatarJiri Olsa <jolsa@redhat.com>
Signed-off-by: default avatarJohn Garry <john.garry@huawei.com>
Acked-by: default avatarJiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Laura Abbott <labbott@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/1635525041-151876-1-git-send-email-john.garry@huawei.com

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
c77a78c2
Name Last commit Last update
..
Documentation perf arm-spe: Update --switch-events docs in 'perf record'
arch tools headers UAPI: Sync powerpc syscall table file changed by new futex_waitv syscall
bench Revert "perf bench: Fix two memory leaks detected with ASan"
dlfilters perf dlfilter: Add dlfilter-show-cycles
examples/bpf perf tools: Fix various typos in comments
include perf build: Move perf_dlfilters.h in the source tree
jvmti perf tools: Fix various typos in comments
pmu-events perf vendor events power10: Add metric events JSON file for power10 platform
python tweewide: Fix most Shebang lines
scripts perf scripts python: Fix passing arguments to stackcollapse report
tests perf test sigtrap: Print errno string when failing
trace perf beauty: Add socket level scnprintf that handles ARCH specific SOL_SOCKET
ui perf hist: Fix memory leak of a perf_hpp_fmt
util perf bpf_skel: Do not use typedef to avoid error on old clang
.gitignore Add 'tools/perf/libbpf/' to ignored files
Build perf daemon: Add daemon command
CREDITS perf_counter tools: Add CREDITS file for Git contributors
MANIFEST perf MANIFEST: Add bpftool files to allow building with BUILD_BPF_SKEL=1
Makefile perf tools: Add a build-test variant to use in builds from a tarball
Makefile.config tools build: Enable warnings through HOSTCFLAGS
Makefile.perf tools build: Enable warnings through HOSTCFLAGS
builtin-annotate.c perf tools: Check vmlinux/kallsyms arguments in all tools
builtin-bench.c perf bench: Add benchmark for evlist open/close operations
builtin-buildid-cache.c perf tools: Remove repipe argument from perf_session__new()
builtin-buildid-list.c perf tools: Remove repipe argument from perf_session__new()
builtin-c2c.c
builtin-config.c
builtin-daemon.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
builtin-help.c
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c
builtin-report.c
builtin-sched.c
builtin-script.c
builtin-stat.c
builtin-timechart.c
builtin-top.c
builtin-trace.c
builtin-version.c
builtin.h
check-headers.sh
command-list.txt
design.txt
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h