Whamcloud - gitweb
Branch b1_6
authoradilger <adilger>
Tue, 29 May 2007 19:40:54 +0000 (19:40 +0000)
committeradilger <adilger>
Tue, 29 May 2007 19:40:54 +0000 (19:40 +0000)
Fix /proc/fs/lustre/devices on PPC systems.
b=12234
i=nathan
i=scjody

lustre/obdclass/linux/linux-module.c

index 3c8b2b4..e8e3d1f 100644 (file)
@@ -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;