patch-2.4.13 linux/drivers/block/paride/pd.c

Next file: linux/drivers/block/paride/pf.c
Previous file: linux/drivers/block/paride/pcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.12/linux/drivers/block/paride/pd.c linux/drivers/block/paride/pd.c
@@ -478,9 +478,9 @@
                 return 0;
             case BLKGETSIZE:
                 if (!arg) return -EINVAL;
-                err = verify_area(VERIFY_WRITE,(long *) arg,sizeof(long));
+                err = verify_area(VERIFY_WRITE,(unsigned long *) arg,sizeof(unsigned long));
                 if (err) return (err);
-                put_user(pd_hd[dev].nr_sects,(long *) arg);
+                put_user(pd_hd[dev].nr_sects,(unsigned long *) arg);
                 return (0);
             case BLKGETSIZE64:
                 return put_user((u64)pd_hd[dev].nr_sects << 9, (u64 *)arg);
@@ -586,8 +586,7 @@
 }
 
 void    cleanup_module(void)
-
-{       struct gendisk **gdp;
+{
 	int unit;
 
         devfs_unregister_blkdev(MAJOR_NR,name);
@@ -1069,3 +1068,4 @@
 
 /* end of pd.c */
 
+MODULE_LICENSE("GPL");

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