From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752152AbZKPJKS (ORCPT ); Mon, 16 Nov 2009 04:10:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752004AbZKPJKR (ORCPT ); Mon, 16 Nov 2009 04:10:17 -0500 Received: from moutng.kundenserver.de ([212.227.126.171]:62448 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751999AbZKPJKQ (ORCPT ); Mon, 16 Nov 2009 04:10:16 -0500 From: Arnd Bergmann To: linux-kernel@vger.kernel.org Subject: [PATCH 00/12] move compat_ioctl handling into drivers Date: Mon, 16 Nov 2009 09:10:20 +0000 Message-Id: <1258362620-2328-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.6.3.3 X-Provags-ID: V01U2FsdGVkX1/gqkSYL7TCfKvdEitC+Kmjug0tmLdHoVVjOdo MQleWkom6u1OJ6cdgmkQoWVgZD3Tn8a0yJbGhT+bj2Es0aV+Kl etM63bEGYClNSJCmJjrTA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Alexey Dobriyan Cc: Alon Bar-Lev Cc: Al Viro Cc: Andre Noll Cc: Andrew Morton Cc: autofs@linux.kernel.org Cc: "Ben Dooks (embedded platforms)" Cc: David S. Miller Cc: David Vrabel Cc: Doug Gilbert Cc: FUJITA Tomonori Cc: Greg Kroah-Hartman Cc: H. Peter Anvin Cc: Ian Kent Cc: James E.J. Bottomley Cc: Jan Blunck Cc: "Jean Delvare (PC drivers, core)" Cc: Jeff Dike Cc: Jens Axboe Cc: Kay Sievers Cc: KOSAKI Motohiro Cc: linux-i2c@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-raid@vger.kernel.org Cc: linux-scsi@vger.kernel.org Cc: linux-usb@vger.kernel.org Cc: Martin K. Petersen Cc: Neil Brown Cc: Nick Piggin Cc: Oliver Neukum Cc: Paul Clements Cc: Pavel Machek Cc: Tejun Heo Cc: user-mode-linux-devel@lists.sourceforge.net Cc: user-mode-linux-user@lists.sourceforge.net Cc: Wolfram Sang 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=*