Re: [PATCH V6 1/8] perf tools: validate kcore module addresses

From: Arnaldo Carvalho de Melo
Date: Fri Oct 11 2013 - 14:28:55 EST


Em Wed, Oct 09, 2013 at 03:01:11PM +0300, Adrian Hunter escreveu:
> -static bool kcore_filename_from_kallsyms_filename(char *kcore_filename,
> - const char *kallsyms_filename)
> +static bool filename_from_kallsyms_filename(char *filename,
> + const char *basename,
> + const char *kallsyms_filename)

In Fedora12:

CC /tmp/build/perf/util/symbol.o
cc1: warnings being treated as errors
util/symbol.c: In function âfilename_from_kallsyms_filenameâ:
util/symbol.c:937: error: declaration of â__xpg_basenameâ shadows a
global declaration
/usr/include/libgen.h:35: error: shadowed declaration is here
make[1]: *** [/tmp/build/perf/util/symbol.o] Error 1
make: *** [install] Error 2
make: Leaving directory `/home/acme/git/linux/tools/perf'
[acme@fedora12 linux]$

Fixing it up renaming it to base_name,


Oops, one more:

CC /tmp/build/perf/util/symbol-elf.o
cc1: warnings being treated as errors
util/symbol-elf.c: In function âkcore__add_phdrâ:
util/symbol-elf.c:1167: error: declaration of âindexâ shadows a global
declaration
/usr/include/string.h:487: error: shadowed declaration is here
util/symbol-elf.c: In function âkcore_extract__createâ:
util/symbol-elf.c:1202: error: declaration of âindexâ shadows a global
declaration
/usr/include/string.h:487: error: shadowed declaration is here
make[1]: *** [/tmp/build/perf/util/symbol-elf.o] Error 1
make: *** [install] Error 2
make: Leaving directory `/home/acme/git/linux/tools/perf'
[acme@fedora12 linux]$

Will switch to 'idx'.

- Arnaldo

----- End forwarded message -----
--
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/