[patch 09/18] x86, ds: fix compiler warning

markus.t.metzger
2009-04-02T14:59:58Z

[-- Attachment #1: tip.master.ds_selftest.printk.patch --]
[-- Type: text/plain, Size: 728 bytes --]

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>
---
arch/x86/kernel/ds_selftest.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/arch/x86/kernel/ds_selftest.c
===================================================================
--- 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 b
/* 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) {