Re: [Ocf-linux-users] [PATCH] Linux 2.6.36 compatibility
Brought to you by:
david-m
From: David M. <dav...@mc...> - 2010-09-06 04:00:10
|
Jivin Pavel Roskin lays it down ... > 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. Applied, thanks :-) Cheers, Davidm -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |