Re: [Y2038] [PATCH v2 21/27] compat_ioctl: move cdrom commands into cdrom.c

2019-12-19 Thread Arnd Bergmann
On Wed, Dec 18, 2019 at 9:11 PM Ben Hutchings wrote: > > On Tue, 2019-12-17 at 23:17 +0100, Arnd Bergmann wrote: > [...] > > @@ -1710,6 +1711,38 @@ static int idecd_ioctl(struct block_device *bdev, > > fmode_t mode, > > return ret; > > } > > > > +#ifdef CONFIG_COMPAT > > +static int idecd_

Re: [Y2038] [PATCH v2 21/27] compat_ioctl: move cdrom commands into cdrom.c

2019-12-18 Thread Ben Hutchings
On Tue, 2019-12-17 at 23:17 +0100, Arnd Bergmann wrote: [...] > @@ -1710,6 +1711,38 @@ static int idecd_ioctl(struct block_device *bdev, > fmode_t mode, > return ret; > } > > +#ifdef CONFIG_COMPAT > +static int idecd_locked_compat_ioctl(struct block_device *bdev, fmode_t mode, > +

[Y2038] [PATCH v2 21/27] compat_ioctl: move cdrom commands into cdrom.c

2019-12-17 Thread Arnd Bergmann
There is no need for the special cases for the cdrom ioctls any more now, so make sure that each cdrom driver has a .compat_ioctl() callback and calls cdrom_compat_ioctl() directly there. Signed-off-by: Arnd Bergmann --- block/compat_ioctl.c | 45 -- dri