lkml.org 
[lkml]   [2022]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 02/16] tools/include: Add phys_addr_t to types.h
    Date
    Update types.h file to include phys_addr_t typedef so it can
    be used in testing.

    Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
    ---
    tools/include/linux/types.h | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h
    index 6e14a533ab4e..35cedaf191e8 100644
    --- a/tools/include/linux/types.h
    +++ b/tools/include/linux/types.h
    @@ -64,6 +64,12 @@ typedef __u64 __bitwise __be64;
    typedef __u16 __bitwise __sum16;
    typedef __u32 __bitwise __wsum;

    +#ifdef CONFIG_PHYS_ADDR_T_64BIT
    +typedef u64 phys_addr_t;
    +#else
    +typedef u32 phys_addr_t;
    +#endif
    +
    typedef struct {
    int counter;
    } atomic_t;
    --
    2.30.2
    \
     
     \ /
      Last update: 2022-02-02 12:04    [W:4.043 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site