4.2-rc2 perf build error builtin-stat.c:346: error: declaration of âcloseâ shadows a global declaration
From: Vinson Lee
Date: Tue Jul 07 2015 - 14:01:36 EST
Hi.
4.2-rc1 commit 106a94a0f8c207ef4113ce7e32f34a00b3b174e7 "perf stat:
Introduce read_counters function" introduced a build error with older
toolchains.
This is the build error on CentOS 6.
CC builtin-stat.o
cc1: warnings being treated as errors
builtin-stat.c: In function âread_countersâ:
builtin-stat.c:346: error: declaration of âcloseâ shadows a global declaration
/usr/include/unistd.h:350: 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/