On Tue, Jan 18, 2005 at 12:06:13PM +0100, Andi Kleen wrote: > @@ -3716,6 +3732,9 @@ > .read = st_read, > .write = st_write, > .ioctl = st_ioctl, > +#ifdef CONFIG_COMPAT > + .compat_ioctl = st_compat_ioctl, > +#endif > .open = st_open, > .flush = st_flush, > .release = st_release,
How about having a macro ... .ioctl = st_ioctl, COMPAT_IOCTL_ENTRY(st_compat_ioctl) .open = st_open, which could be defined something like: #ifdef CONFIG_COMPAT #define COMPAT_IOCTL_ENTRY(x) .compat_ioctl = x, #else #define COMPAT_IOCTL_ENTRY(x) /* */ #endif -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html