aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2009-04-03 10:43:42 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-07 07:36:23 -0400
commit353afeea24cc51aafc0ff21a72ec740b6f0af50c (patch)
treed623b40b11cb5d3a1b5a879201f5f63acfd2b5e4 /arch/x86/kernel
parent4d657e51dfc042216febd4a007c6f36881f9256d (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')
-rw-r--r--arch/x86/kernel/ds_selftest.c2
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) {