lkml.org 
[lkml]   [2012]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 02/21] posix_types: Make it possible to override __kernel_fsid_t
    Date
    From: "H. Peter Anvin" <hpa@zytor.com>

    __kernel_fsid_t has members of type "long" on at least one
    architecture (MIPS32), so make it possible to override the definition.

    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    ---
    include/asm-generic/posix_types.h | 10 ++++++----
    1 files changed, 6 insertions(+), 4 deletions(-)

    diff --git a/include/asm-generic/posix_types.h b/include/asm-generic/posix_types.h
    index ac83f6b..ac21760 100644
    --- a/include/asm-generic/posix_types.h
    +++ b/include/asm-generic/posix_types.h
    @@ -73,6 +73,12 @@ typedef long __kernel_ptrdiff_t;
    #endif
    #endif

    +#ifndef __kernel_fsid_t
    +typedef struct {
    + int val[2];
    +} __kernel_fsid_t;
    +#endif
    +
    /*
    * anything below here should be completely generic
    */
    @@ -86,10 +92,6 @@ typedef char * __kernel_caddr_t;
    typedef unsigned short __kernel_uid16_t;
    typedef unsigned short __kernel_gid16_t;

    -typedef struct {
    - int val[2];
    -} __kernel_fsid_t;
    -
    #ifdef __KERNEL__

    #undef __FD_SET
    --
    1.7.6.5


    \
     
     \ /
      Last update: 2012-02-08 06:17    [W:0.022 / U:0.296 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site