aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/i2o/i2o_config.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/message/i2o/i2o_config.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/message/i2o/i2o_config.c')
-rw-r--r--drivers/message/i2o/i2o_config.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/message/i2o/i2o_config.c b/drivers/message/i2o/i2o_config.c
index efba7021948a..11073fa3d9f4 100644
--- a/drivers/message/i2o/i2o_config.c
+++ b/drivers/message/i2o/i2o_config.c
@@ -33,6 +33,7 @@
33#include <linux/miscdevice.h> 33#include <linux/miscdevice.h>
34#include <linux/smp_lock.h> 34#include <linux/smp_lock.h>
35#include <linux/compat.h> 35#include <linux/compat.h>
36#include <linux/slab.h>
36 37
37#include <asm/uaccess.h> 38#include <asm/uaccess.h>
38 39
@@ -40,8 +41,7 @@
40 41
41#define SG_TABLESIZE 30 42#define SG_TABLESIZE 30
42 43
43static int i2o_cfg_ioctl(struct inode *, struct file *, unsigned int, 44static long i2o_cfg_ioctl(struct file *, unsigned int, unsigned long);
44 unsigned long);
45 45
46static spinlock_t i2o_config_lock; 46static spinlock_t i2o_config_lock;
47 47
@@ -751,7 +751,7 @@ static long i2o_cfg_compat_ioctl(struct file *file, unsigned cmd,
751 lock_kernel(); 751 lock_kernel();
752 switch (cmd) { 752 switch (cmd) {
753 case I2OGETIOPS: 753 case I2OGETIOPS:
754 ret = i2o_cfg_ioctl(NULL, file, cmd, arg); 754 ret = i2o_cfg_ioctl(file, cmd, arg);
755 break; 755 break;
756 case I2OPASSTHRU32: 756 case I2OPASSTHRU32:
757 ret = i2o_cfg_passthru32(file, cmd, arg); 757 ret = i2o_cfg_passthru32(file, cmd, arg);
@@ -984,11 +984,11 @@ out:
984/* 984/*
985 * IOCTL Handler 985 * IOCTL Handler
986 */ 986 */
987static int i2o_cfg_ioctl(struct inode *inode, struct file *fp, unsigned int cmd, 987static long i2o_cfg_ioctl(struct file *fp, unsigned int cmd, unsigned long arg)
988 unsigned long arg)
989{ 988{
990 int ret; 989 int ret;
991 990
991 lock_kernel();
992 switch (cmd) { 992 switch (cmd) {
993 case I2OGETIOPS: 993 case I2OGETIOPS:
994 ret = i2o_cfg_getiops(arg); 994 ret = i2o_cfg_getiops(arg);
@@ -1044,7 +1044,7 @@ static int i2o_cfg_ioctl(struct inode *inode, struct file *fp, unsigned int cmd,
1044 osm_debug("unknown ioctl called!\n"); 1044 osm_debug("unknown ioctl called!\n");
1045 ret = -EINVAL; 1045 ret = -EINVAL;
1046 } 1046 }
1047 1047 unlock_kernel();
1048 return ret; 1048 return ret;
1049} 1049}
1050 1050
@@ -1118,7 +1118,7 @@ static int cfg_release(struct inode *inode, struct file *file)
1118static const struct file_operations config_fops = { 1118static const struct file_operations config_fops = {
1119 .owner = THIS_MODULE, 1119 .owner = THIS_MODULE,
1120 .llseek = no_llseek, 1120 .llseek = no_llseek,
1121 .ioctl = i2o_cfg_ioctl, 1121 .unlocked_ioctl = i2o_cfg_ioctl,
1122#ifdef CONFIG_COMPAT 1122#ifdef CONFIG_COMPAT
1123 .compat_ioctl = i2o_cfg_compat_ioctl, 1123 .compat_ioctl = i2o_cfg_compat_ioctl,
1124#endif 1124#endif