[PATCH 00/12] move compat_ioctl handling into drivers

From: Arnd Bergmann
Date: Mon Nov 16 2009 - 04:10:32 EST


This is the second series of patches on compat_ioctl handling,
moving compat handlers into more drivers. Most of these
patches consist on a part that adds a compat_ioctl method
in one driver and another part removing the respective
section from fs/compat_ioctl.c. The fs/compat_ioctl.c
portion depends on other patches[1], but the driver code can
be applied independently.

If some of you feel responsible for the code I patched, please
look at my changes and if they are ok, either take them into
your tree or give me an Acked-by for them.

I have tested the patches for sg, usbdevfs and autofs, which
was easily done in qemu, but I'm lacking test cases for
most of the other ones.

Arnd <><

Cc: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Cc: Alon Bar-Lev <alon.barlev@xxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Cc: Andre Noll <maan@xxxxxxxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: autofs@xxxxxxxxxxxxxxxx
Cc: "Ben Dooks (embedded platforms)" <ben-linux@xxxxxxxxx>
Cc: David S. Miller <davem@xxxxxxxxxxxxx>
Cc: David Vrabel <david.vrabel@xxxxxxx>
Cc: Doug Gilbert <dgilbert@xxxxxxxxxxxx>
Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxx>
Cc: H. Peter Anvin <hpa@xxxxxxxxx>
Cc: Ian Kent <raven@xxxxxxxxxx>
Cc: James E.J. Bottomley <James.Bottomley@xxxxxxx>
Cc: Jan Blunck <jblunck@xxxxxxx>
Cc: "Jean Delvare (PC drivers, core)" <khali@xxxxxxxxxxxx>
Cc: Jeff Dike <jdike@xxxxxxxxxxx>
Cc: Jens Axboe <jens.axboe@xxxxxxxxxx>
Cc: Kay Sievers <kay.sievers@xxxxxxxx>
Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
Cc: linux-i2c@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-raid@xxxxxxxxxxxxxxx
Cc: linux-scsi@xxxxxxxxxxxxxxx
Cc: linux-usb@xxxxxxxxxxxxxxx
Cc: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
Cc: Neil Brown <neilb@xxxxxxx>
Cc: Nick Piggin <npiggin@xxxxxxx>
Cc: Oliver Neukum <oliver@xxxxxxxxxx>
Cc: Paul Clements <Paul.Clements@xxxxxxxxxxxx>
Cc: Pavel Machek <pavel@xxxxxxx>
Cc: Tejun Heo <tj@xxxxxxxxxx>
Cc: user-mode-linux-devel@xxxxxxxxxxxxxxxxxxxxx
Cc: user-mode-linux-user@xxxxxxxxxxxxxxxxxxxxx
Cc: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>

Arnd Bergmann (12):
arch/um: handle compat_ioctl in tty line driver
scsi/sg: move compat_ioctl handling into sg driver
autofs/autofs4: move compat_ioctl handling into fs
raw: partly fix compat_ioctl handling on non-x86
nbd: add compat_ioctl method
smbfs: do compat_ioctl handling in place
i2cdev: move compat_ioctl handling into driver
md: move compat_ioctl handling into md.c
lp: move compat_ioctl handling into lp.c
usbdevfs: move compat_ioctl handling to devio.c
hamradio/mkiss: fix typo in compat_ioctl
compat_ioctl: remove unused handlers

arch/um/drivers/line.c | 6 +
arch/um/drivers/ssl.c | 1 +
arch/um/drivers/stdio_console.c | 1 +
arch/um/include/shared/line.h | 2 +
drivers/block/nbd.c | 7 +-
drivers/char/lp.c | 115 +++++++--
drivers/char/raw.c | 157 ++++++++++---
drivers/i2c/i2c-dev.c | 117 +++++++++
drivers/md/md.c | 23 ++
drivers/net/hamradio/mkiss.c | 2 +-
drivers/scsi/sg.c | 182 ++++++++++++++-
drivers/usb/core/devio.c | 110 ++++++++-
fs/autofs/root.c | 67 +++++-
fs/autofs4/root.c | 69 +++++-
fs/compat_ioctl.c | 504 +--------------------------------------
fs/smbfs/dir.c | 5 +-
fs/smbfs/file.c | 3 +-
fs/smbfs/ioctl.c | 48 ++++-
fs/smbfs/proto.h | 3 +-
include/linux/auto_fs.h | 1 +
include/linux/usbdevice_fs.h | 26 ++
kernel/trace/blktrace.c | 1 +
22 files changed, 856 insertions(+), 594 deletions(-)

[1] http://patchwork.kernel.org/bundle/arnd/compat-ioctl-cleanup/?state=*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/