diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-06-18 17:59:16 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-26 09:10:29 +0200 |
commit | 3c0f17e28504bdcd243c656a09c674ebee4dfe9b (patch) | |
tree | 5d39824b1c4e5f6f2484605f8c1f9a6ee3326389 /tools | |
parent | 38bded12152dfd85e98528940bf3e1f46544bf89 (diff) | |
download | linux-stable-3c0f17e28504bdcd243c656a09c674ebee4dfe9b.tar.gz linux-stable-3c0f17e28504bdcd243c656a09c674ebee4dfe9b.tar.bz2 linux-stable-3c0f17e28504bdcd243c656a09c674ebee4dfe9b.zip |
tools build: Fix the zstd test in the test-all.c common case feature test
[ Upstream commit 3469fa84c1631face938efc42b3f488a2c2504e0 ]
We were renanimg 'main' to 'main_zstd' but then using 'main_libzstd();'
in the main() for test-all.c, causing this:
$ cat /tmp/build/perf/feature/test-all.make.output
test-all.c: In function ‘main’:
test-all.c:236:2: error: implicit declaration of function ‘main_test_libzstd’; did you mean ‘main_test_zstd’? [-Werror=implicit-function-declaration]
main_test_libzstd();
^~~~~~~~~~~~~~~~~
main_test_zstd
cc1: all warnings being treated as errors
$
I.e. what was supposed to be the fast path feature test was _always_
failing, duh, fix it.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Fixes: 3b1c5d965971 ("tools build: Implement libzstd feature check, LIBZSTD_DIR and NO_LIBZSTD defines")
Link: https://lkml.kernel.org/n/tip-ma4abk0utroiw4mwpmvnjlru@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build/feature/test-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/feature/test-all.c b/tools/build/feature/test-all.c index a59c53705093..939ac2fcc783 100644 --- a/tools/build/feature/test-all.c +++ b/tools/build/feature/test-all.c @@ -182,7 +182,7 @@ # include "test-disassembler-four-args.c" #undef main -#define main main_test_zstd +#define main main_test_libzstd # include "test-libzstd.c" #undef main |