Re: [PATCH] perf x86: Fix compile of util/tsc.c

2013-08-05 Thread Jiri Olsa
On Mon, Aug 05, 2013 at 11:34:57AM +0300, Adrian Hunter wrote: > On 26/07/13 17:27, David Ahern wrote: > > On Fedora 18, with gcc 4.6.4 compile fails with: > > > > arch/x86/util/tsc.c: In function ‘perf_time_to_tsc’: > > arch/x86/util/tsc.c:13:6: error: declaration of ‘time’ shadows a global > >

Re: [PATCH] perf x86: Fix compile of util/tsc.c

2013-08-05 Thread Adrian Hunter
On 26/07/13 17:27, David Ahern wrote: > On Fedora 18, with gcc 4.6.4 compile fails with: > > arch/x86/util/tsc.c: In function ‘perf_time_to_tsc’: > arch/x86/util/tsc.c:13:6: error: declaration of ‘time’ shadows a global > declaration [-Werror=shadow] > cc1: all warnings being treated as errors >

[PATCH] perf x86: Fix compile of util/tsc.c

2013-07-26 Thread David Ahern
On Fedora 18, with gcc 4.6.4 compile fails with: arch/x86/util/tsc.c: In function ‘perf_time_to_tsc’: arch/x86/util/tsc.c:13:6: error: declaration of ‘time’ shadows a global declaration [-Werror=shadow] cc1: all warnings being treated as errors make: *** [/tmp/junk/arch/x86/util/tsc.o] Error 1 ma