[lkml]   [1999]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectPATCH physical address typedef

    Attached is a patch against 2.3.23 pre5 which adds 'kphysaddr_t' type.

    The idea is to migrate code to using this type to store physical
    addresses. This will help flag problematic iomap code via a warning --
    since a lot of code uses char* instead of long to store physical
    addresses. Also, IMHO it would be nice if the source code told us it
    was storing a physical address, via the C type system. (same idea as
    kdev_t, etc.)


    JeffIndex: include/asm-i386/types.h
    RCS file: /g/cvslan/linux_2_3/include/asm-i386/types.h,v
    retrieving revision
    diff -u -r1.1.1.1 types.h
    --- include/asm-i386/types.h 1999/10/07 07:42:53
    +++ include/asm-i386/types.h 1999/10/21 10:00:04
    @@ -41,6 +41,8 @@

    #define BITS_PER_LONG 32

    +typedef unsigned long kphysaddr_t;
    #endif /* __KERNEL__ */

     \ /
      Last update: 2005-03-22 13:54    [W:0.018 / U:10.264 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site