• Maciej W. Rozycki's avatar
    [PATCH] 32-bit compatibility HDIO IOCTLs · 39484e53
    Maciej W. Rozycki authored
    A couple of HDIO IOCTLs are not yet handled and a few others are marked
    as using a pointer rather than an unsigned long.  The formers include:
    
    HDIO_GET_WCACHE, HDIO_GET_ACOUSTIC, HDIO_GET_ADDRESS and
    HDIO_GET_BUSSTATE.  The latters are: HDIO_SET_MULTCOUNT,
    HDIO_SET_UNMASKINTR, HDIO_SET_KEEPSETTINGS, HDIO_SET_32BIT,
    HDIO_SET_NOWERR, HDIO_SET_DMA, HDIO_SET_PIO_MODE and HDIO_SET_NICE.
    
    Additionally 0x330 used to be HDIO_GETGEO_BIG and may be issued by 32-bit
    `hdparm' run on a 64-bit kernel making Linux complain loudly.
    
    This is a fix for these issues.
    Signed-off-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    39484e53
compat_ioctl.c 71.6 KB