[Ocf-linux-users] [PATCH] Linux 2.6.36 compatibility
Brought to you by:
david-m
From: Pavel R. <pr...@gn...> - 2010-09-03 20:26:21
|
Hello! There is no ioctl field in struct file_operations in Linux 2.6.36-rc3. Therefore, following patch is needed to fix compilation: --- cryptodev.c +++ cryptodev.c @@ -1015,7 +1015,9 @@ static struct file_operations cryptodev_ .owner = THIS_MODULE, .open = cryptodev_open, .release = cryptodev_release, +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) .ioctl = cryptodev_ioctl, +#endif #ifdef HAVE_UNLOCKED_IOCTL .unlocked_ioctl = cryptodev_unlocked_ioctl, #endif The crypto device functionality is still functional with this patch applied. -- Regards, Pavel Roskin |