x86, ds: fix compiler warning
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 3 Apr 2009 14:43:42 +0000 (16:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 7 Apr 2009 11:36:23 +0000 (13:36 +0200)
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>
arch/x86/kernel/ds_selftest.c

index e5a263c8a14cda4119c8ee9046a2e4e173d343c8..e1ba5101b57653b8fdab4265eb94b848142a3c17 100644 (file)
@@ -87,7 +87,7 @@ static int ds_selftest_bts_read(struct bts_tracer *tracer,
        /* Now to the test itself. */
        for (at = from; (void *)at < to; at += trace->ds.size) {
                struct bts_struct bts;
-               size_t index;
+               unsigned long index;
                int error;
 
                if (((void *)at - trace->ds.begin) % trace->ds.size) {