patch-2.4.13 linux/drivers/s390/block/xpram.c

Next file: linux/drivers/s390/char/Makefile
Previous file: linux/drivers/s390/block/dasd_3990_erp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/s390/block/xpram.c linux/drivers/s390/block/xpram.c
@@ -171,7 +171,7 @@
 int xpram_devs, xpram_rahead;
 int xpram_blksize, xpram_hardsect;
 int xpram_mem_avail = 0;
-int xpram_sizes[XPRAM_MAX_DEVS];
+unsigned long xpram_sizes[XPRAM_MAX_DEVS];
 
 
 MODULE_PARM(devs,"i");
@@ -649,7 +649,7 @@
 		/* Return the device size, expressed in sectors */
 		return put_user( 1024* xpram_sizes[MINOR(inode->i_rdev)]
                            / XPRAM_SOFTSECT,
-			   (long *) arg);
+			   (unsigned long *) arg);
 
 	case BLKGETSIZE64:
 		return put_user( (u64)(1024* xpram_sizes[MINOR(inode->i_rdev)]

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)