From: Greg Kroah-Hartman <gregkh@suse.de>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net, zaitcev@redhat.com,
akpm@osdl.org
Subject: [patch 08/12] USB: usbdevfs_ioctl 32bit fix
Date: Mon, 14 Nov 2005 12:06:00 -0800 [thread overview]
Message-ID: <20051114200600.GI2319@kroah.com> (raw)
In-Reply-To: <20051114200456.GA2319@kroah.com>
[-- Attachment #1: usb-usbdevfs_ioctl-from-32bit-fix.patch --]
[-- Type: text/plain, Size: 1097 bytes --]
From: Andrew Morton <akpm@osdl.org>
drivers/usb/core/devio.c: In function `proc_ioctl_compat':
drivers/usb/core/devio.c:1401: warning: passing arg 1 of `compat_ptr' makes integer from pointer without a cast
NFI if this is correct...
Cc: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
drivers/usb/core/devio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- gregkh-2.6.orig/drivers/usb/core/devio.c 2005-11-02 09:25:03.000000000 -0800
+++ gregkh-2.6/drivers/usb/core/devio.c 2005-11-02 12:02:56.000000000 -0800
@@ -1392,7 +1392,7 @@
}
#ifdef CONFIG_COMPAT
-static int proc_ioctl_compat(struct dev_state *ps, void __user *arg)
+static int proc_ioctl_compat(struct dev_state *ps, compat_uptr_t arg)
{
struct usbdevfs_ioctl32 __user *uioc;
struct usbdevfs_ioctl ctrl;
@@ -1511,7 +1511,7 @@
case USBDEVFS_IOCTL32:
snoop(&dev->dev, "%s: IOCTL\n", __FUNCTION__);
- ret = proc_ioctl_compat(ps, p);
+ ret = proc_ioctl_compat(ps, (compat_uptr_t)(long)p);
break;
#endif
--
next prev parent reply other threads:[~2005-11-14 20:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20051114200100.984523000@press.kroah.org>
2005-11-14 20:04 ` [patch 00/12] USB patches for 2.6.15-rc1 Greg Kroah-Hartman
2005-11-14 20:05 ` [patch 01/12] USB: fix build breakage in dummy_hcd.c Greg Kroah-Hartman
2005-11-14 20:05 ` [patch 02/12] USB Serial: rename ChangeLog.old Greg Kroah-Hartman
2005-11-14 20:05 ` [patch 03/12] USB: add new wacom devices to usb hid-core list Greg Kroah-Hartman
2005-11-14 20:05 ` [patch 04/12] USB: wacom tablet driver update Greg Kroah-Hartman
2005-11-14 20:05 ` [patch 05/12] USB: fix 'unused variable' warning Greg Kroah-Hartman
2005-11-14 20:05 ` [patch 06/12] USB: Delete leftovers from bluetty driver Greg Kroah-Hartman
2005-11-14 20:05 ` [patch 07/12] usbfs: usbfs_dir_inode_operations cleanup Greg Kroah-Hartman
2005-11-14 20:06 ` Greg Kroah-Hartman [this message]
2005-11-14 20:06 ` [patch 09/12] USB: kill unneccessary usb-storage blacklist entries Greg Kroah-Hartman
2005-11-14 20:06 ` [patch 10/12] USB: cp2101.c: Jablotron usb serial interface identification Greg Kroah-Hartman
2005-11-14 20:06 ` [patch 11/12] USB: onetouch doesn't suspend yet Greg Kroah-Hartman
2005-11-14 20:06 ` [patch 12/12] USB: add new anydata usb-serial driver Greg Kroah-Hartman
2005-11-14 20:09 ` [patch 00/12] USB patches for 2.6.15-rc1 Greg Kroah-Hartman
2005-11-15 8:48 ` USB patches for 2.6.15-rc1?? David Kubicek
2005-11-17 0:55 ` Greg KH
2005-11-17 15:28 ` David Kubicek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051114200600.GI2319@kroah.com \
--to=gregkh@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=torvalds@osdl.org \
--cc=zaitcev@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox