4.0-rc1 perf build error "builtin-kmem.c:322: error: declaration of âstatâ shadows a global declaration"
From: Vinson Lee
Date: Thu Apr 23 2015 - 20:38:55 EST
Hi.
4.0-rc1 commit 0d68bc92c48167130b61b449f08be27dc862dba2 "perf kmem:
Analyze page allocator events also" introduced a build error with
older toolchains.
For example, this build errors occurs on CentOS 6.
CC builtin-kmem.o
cc1: warnings being treated as errors
builtin-kmem.c: In function âsearch_page_alloc_statâ:
builtin-kmem.c:322: error: declaration of âstatâ shadows a global declaration
/usr/include/sys/stat.h:455: error: shadowed declaration is here
builtin-kmem.c: In function âperf_evsel__process_page_alloc_eventâ:
builtin-kmem.c:378: error: declaration of âstatâ shadows a global declaration
/usr/include/sys/stat.h:455: error: shadowed declaration is here
builtin-kmem.c: In function âperf_evsel__process_page_free_eventâ:
builtin-kmem.c:431: error: declaration of âstatâ shadows a global declaration
/usr/include/sys/stat.h:455: error: shadowed declaration is here
Cheers,
Vinson
--
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/