|
Dan Horák |
8bfefa |
From 4de98eb0e68314ba36fcfc2722a1c9b3bc5d3318 Mon Sep 17 00:00:00 2001
|
|
Dan Horák |
8bfefa |
From: Jens Axboe <axboe@kernel.dk>
|
|
Dan Horák |
8bfefa |
Date: Tue, 1 Jan 2013 10:59:04 +0100
|
|
Dan Horák |
8bfefa |
Subject: [PATCH] Move 'tsc_reliable' outside of ARCH_HAVE_CPU_CLOCK
|
|
Dan Horák |
8bfefa |
MIME-Version: 1.0
|
|
Dan Horák |
8bfefa |
Content-Type: text/plain; charset=UTF-8
|
|
Dan Horák |
8bfefa |
Content-Transfer-Encoding: 8bit
|
|
Dan Horák |
8bfefa |
|
|
Dan Horák |
8bfefa |
Otherwise we fail building on architectures that do not define
|
|
Dan Horák |
8bfefa |
it, as reported by Dan:
|
|
Dan Horák |
8bfefa |
|
|
Dan Horák |
8bfefa |
cc -o gettime.o -c -std=gnu99 -Wwrite-strings -Wall -O3 -g -O2 -g -pipe
|
|
Dan Horák |
8bfefa |
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
|
|
Dan Horák |
8bfefa |
--param=ssp-buffer-size=4 -m31 -march=z9-109 -mtune=z10
|
|
Dan Horák |
8bfefa |
-DFIO_VERSION='"fio-2.0.12.2"' -D_GNU_SOURCE -D_LARGEFILE_SOURCE
|
|
Dan Horák |
8bfefa |
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DFIO_INC_DEBUG gettime.c
|
|
Dan Horák |
8bfefa |
gettime.c: In function 'fio_clock_init':
|
|
Dan Horák |
8bfefa |
gettime.c:317:6: error: 'tsc_reliable' undeclared (first use in this function)
|
|
Dan Horák |
8bfefa |
gettime.c:317:6: note: each undeclared identifier is reported only once for each function it appears in
|
|
Dan Horák |
8bfefa |
make: *** [gettime.o] Error 1
|
|
Dan Horák |
8bfefa |
|
|
Dan Horák |
8bfefa |
Reported-by: Dan Horák <dan@danny.cz>
|
|
Dan Horák |
8bfefa |
Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
|
Dan Horák |
8bfefa |
---
|
|
Dan Horák |
8bfefa |
gettime.c | 2 +-
|
|
Dan Horák |
8bfefa |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Dan Horák |
8bfefa |
|
|
Dan Horák |
8bfefa |
diff -up fio-2.0.12.2/gettime.c.no-arch-cpu-clock fio-2.0.12.2/gettime.c
|
|
Dan Horák |
8bfefa |
--- fio-2.0.12.2/gettime.c.no-arch-cpu-clock 2012-12-20 15:19:57.000000000 +0100
|
|
Dan Horák |
8bfefa |
+++ fio-2.0.12.2/gettime.c 2013-01-01 11:40:29.000000000 +0100
|
|
Dan Horák |
8bfefa |
@@ -15,8 +15,8 @@
|
|
Dan Horák |
8bfefa |
|
|
Dan Horák |
8bfefa |
#ifdef ARCH_HAVE_CPU_CLOCK
|
|
Dan Horák |
8bfefa |
static unsigned long cycles_per_usec;
|
|
Dan Horák |
8bfefa |
-int tsc_reliable = 0;
|
|
Dan Horák |
8bfefa |
#endif
|
|
Dan Horák |
8bfefa |
+int tsc_reliable = 0;
|
|
Dan Horák |
8bfefa |
|
|
Dan Horák |
8bfefa |
struct tv_valid {
|
|
Dan Horák |
8bfefa |
struct timeval last_tv;
|