diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2009-04-03 10:43:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-07 07:36:23 -0400 |
commit | 353afeea24cc51aafc0ff21a72ec740b6f0af50c (patch) | |
tree | d623b40b11cb5d3a1b5a879201f5f63acfd2b5e4 /arch/x86/kernel/ds_selftest.c | |
parent | 4d657e51dfc042216febd4a007c6f36881f9256d (diff) |
x86, ds: fix compiler warning
Size_t is defined differently on i386 and x86_64.
Change type to avoid compiler warning.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Cc: roland@redhat.com
Cc: eranian@googlemail.com
Cc: oleg@redhat.com
Cc: juan.villacis@intel.com
Cc: ak@linux.jf.intel.com
LKML-Reference: <20090403144557.523964000@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/ds_selftest.c')
-rw-r--r-- | arch/x86/kernel/ds_selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ds_selftest.c b/arch/x86/kernel/ds_selftest.c index e5a263c8a14c..e1ba5101b576 100644 --- a/arch/x86/kernel/ds_selftest.c +++ b/arch/x86/kernel/ds_selftest.c | |||
@@ -87,7 +87,7 @@ static int ds_selftest_bts_read(struct bts_tracer *tracer, | |||
87 | /* Now to the test itself. */ | 87 | /* Now to the test itself. */ |
88 | for (at = from; (void *)at < to; at += trace->ds.size) { | 88 | for (at = from; (void *)at < to; at += trace->ds.size) { |
89 | struct bts_struct bts; | 89 | struct bts_struct bts; |
90 | size_t index; | 90 | unsigned long index; |
91 | int error; | 91 | int error; |
92 | 92 | ||
93 | if (((void *)at - trace->ds.begin) % trace->ds.size) { | 93 | if (((void *)at - trace->ds.begin) % trace->ds.size) { |