Re: [PATCH 2/8] perf tools: Add gzip decompression support for kernel module

From: Namhyung Kim
Date: Tue Nov 04 2014 - 22:04:48 EST


On Tue, 4 Nov 2014 11:15:08 -0300, Arnaldo Carvalho de Melo wrote:
> Em Tue, Nov 04, 2014 at 10:14:28AM +0900, Namhyung Kim escreveu:
>> Now my Archlinux box shows module symbols correctly.
>
> Now my RHEL6 box doesn't build:
>
>> +++ b/tools/perf/util/dso.c
>> @@ -141,17 +141,13 @@ int dso__read_binary_type_filename(const struct dso *dso,
>> return ret;
>
>> static const struct {
>> const char *fmt;
>> int (*decompress)(const char *input, int output);
>> } compressions[] = {
>> - { "gz", decompress_dummy },
>> +#ifdef HAVE_ZLIB_SUPPORT
>> + { "gz", gzip_decompress_to_file },
>> +#endif
>> { NULL, },
>> };
>
> CC /tmp/build/perf/util/dso.o
> cc1: warnings being treated as errors
> util/dso.c:151: error: missing initializer
> util/dso.c:151: error: (near initialization for
> âcompressions[1].decompressâ)
> make[1]: *** [/tmp/build/perf/util/dso.o] Error 1
> make: Leaving directory `/home/gita/perf-3.18.0-rc1/tools/perf'
> make: *** [install] Error 2
> [acme@zoo linux]$
>
> Will try and fix it, nevermind :-)

Also fixed and pushed to perf/vmlinux-v7 branch.

Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/