lkml.org 
[lkml]   [2012]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/30] aio: Use __kernel_ulong_t to define aio_context_t
    Date
    From: "H. Peter Anvin" <hpa@zytor.com>

    Rather than using "unsigned long" which is ABI-dependent, use
    __kernel_ulong_t to define the externally visible type aio_context_t.

    Note: the change in this form will cause unsigned long/unsigned int
    differences on existing ABIs. If that is unacceptable we may have to
    define a new type.

    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
    Cc: Benjamin LaHaise <bcrl@kvack.org>
    ---
    include/linux/aio_abi.h | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/include/linux/aio_abi.h b/include/linux/aio_abi.h
    index 2c87316..86fa7a7 100644
    --- a/include/linux/aio_abi.h
    +++ b/include/linux/aio_abi.h
    @@ -30,7 +30,7 @@
    #include <linux/types.h>
    #include <asm/byteorder.h>

    -typedef unsigned long aio_context_t;
    +typedef __kernel_ulong_t aio_context_t;

    enum {
    IOCB_CMD_PREAD = 0,
    --
    1.7.6.5


    \
     
     \ /
      Last update: 2012-02-20 01:17    [W:0.020 / U:2.520 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site