From 98b83e59ea15caec2a044d25c84adf996c6f7584 Mon Sep 17 00:00:00 2001 From: adilger <adilger> Date: Tue, 29 May 2007 19:40:54 +0000 Subject: [PATCH] Branch b1_6 Fix /proc/fs/lustre/devices on PPC systems. b=12234 i=nathan i=scjody --- lustre/obdclass/linux/linux-module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/linux/linux-module.c b/lustre/obdclass/linux/linux-module.c index 3c8b2b4173..e8e3d1fb86 100644 --- a/lustre/obdclass/linux/linux-module.c +++ b/lustre/obdclass/linux/linux-module.c @@ -323,7 +323,7 @@ struct lprocfs_vars lprocfs_base[] = { #endif /* LPROCFS */ #ifdef __KERNEL__ -static void *obd_device_list_seq_start(struct seq_file *p, loff_t*pos) +static void *obd_device_list_seq_start(struct seq_file *p, loff_t *pos) { if (*pos >= class_devno_max()) return NULL; @@ -346,7 +346,7 @@ static void *obd_device_list_seq_next(struct seq_file *p, void *v, loff_t *pos) static int obd_device_list_seq_show(struct seq_file *p, void *v) { - int index = *(int*)v; + int index = *(loff_t *)v; struct obd_device *obd = class_num2obd(index); char *status; -- GitLab