Skip to contentSkip to conversation

cciss update for 2.6.7-rc1

DISCUSSION Andi Kleen 1 participant 1 message Jun 4, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw

Review static int cciss_release(struct inode *i · line 460

Quoted 11 lines · [email protected] writes:
(quoted diff) +7 -0
@@ -451,6 +451,140 @@ static int cciss_release(struct inode *i
 	return 0;
 }
 
+#ifdef __x86_64__
+/* for AMD 64 bit kernel compatibility with 32-bit userland ioctls */
+#include <linux/syscalls.h>
+extern int 
+register_ioctl32_conversion(unsigned int cmd, int (*handler)(unsigned int,
+      unsigned int, unsigned long, struct file *));
+extern int unregister_ioctl32_conversion(unsigned int cmd);

This should be in CONFIG_COMPAT instead of testing for x86-64 and include <linux/compat.h> for the prototypes. linux/syscalls.h should not be needed.

-Andi