Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / drivers / s390 / block / dasd_ioctl.c
index 8fed360..b8c80d2 100644 (file)
@@ -9,6 +9,7 @@
  *
  * i/o controls for the dasd driver.
  */
+#include <linux/config.h>
 #include <linux/interrupt.h>
 #include <linux/major.h>
 #include <linux/fs.h>
@@ -89,10 +90,10 @@ static int
 dasd_ioctl_quiesce(struct dasd_device *device)
 {
        unsigned long flags;
-
+       
        if (!capable (CAP_SYS_ADMIN))
                return -EACCES;
-
+       
        DEV_MESSAGE (KERN_DEBUG, device, "%s",
                     "Quiesce IO on device");
        spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags);
@@ -109,13 +110,13 @@ static int
 dasd_ioctl_resume(struct dasd_device *device)
 {
        unsigned long flags;
-
-       if (!capable (CAP_SYS_ADMIN))
+       
+       if (!capable (CAP_SYS_ADMIN)) 
                return -EACCES;
 
        DEV_MESSAGE (KERN_DEBUG, device, "%s",
                     "resume IO on device");
-
+       
        spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags);
        device->stopped &= ~DASD_STOPPED_QUIESCE;
        spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags);
@@ -286,7 +287,7 @@ dasd_ioctl_information(struct dasd_device *device,
        dasd_info->open_count = atomic_read(&device->open_count);
        if (!device->bdev)
                dasd_info->open_count++;
-
+       
        /*
         * check if device is really formatted
         * LDL / CDL was returned by 'fill_info'
@@ -345,7 +346,7 @@ dasd_ioctl_set_ro(struct block_device *bdev, void __user *argp)
        if (bdev != bdev->bd_contains)
                // ro setting is not allowed for partitions
                return -EINVAL;
-       if (get_user(intval, (int __user *)argp))
+       if (get_user(intval, (int *)argp))
                return -EFAULT;
 
        set_disk_ro(bdev->bd_disk, intval);