lkml.org 
[lkml]   [2005]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 08/22] USB: usbdevfs_ioctl 32bit fix
    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(-)

    --- usb-2.6.orig/drivers/usb/core/devio.c
    +++ usb-2.6/drivers/usb/core/devio.c
    @@ -1392,7 +1392,7 @@ static int proc_ioctl_default(struct dev
    }

    #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 @@ static int usbdev_ioctl(struct inode *in

    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

    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-11-17 19:10    [W:0.020 / U:0.808 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site