Skip to contentSkip to conversation

I2O: fix I2O_CONFIG without Adaptec extension

PATCH New Randy Dunlap 1 participant 1 message Nov 19, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2O: fix I2O_CONFIG without Adaptec extension

From: Randy Dunlap <[email protected]>

With I2O_CONFIG=y and I2O_EXT_ADAPTEC=n, kernel build gets:

drivers/message/i2o/i2o_config.c:1115: error: 'i2o_cfg_compat_ioctl' undeclared here (not in a function)

---
 drivers/message/i2o/i2o_config.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/message/i2o/i2o_config.c +1 -1
@@ -516,7 +516,6 @@ static int i2o_cfg_evt_get(unsigned long
 	return 0;
 }
 
-#ifdef CONFIG_I2O_EXT_ADAPTEC
 #ifdef CONFIG_COMPAT
 static int i2o_cfg_passthru32(struct file *file, unsigned cmnd,
 			      unsigned long arg)
@@ -759,6 +758,7 @@ static long i2o_cfg_compat_ioctl(struct 
 
 #endif
 
+#ifdef CONFIG_I2O_EXT_ADAPTEC
 static int i2o_cfg_passthru(unsigned long arg)
 {
 	struct i2o_cmd_passthru __user *cmd =

---