Messages in this thread Patch in this message | | | Date | Thu, 21 Oct 1999 06:04:16 -0400 | From | Jeff Garzik <> | Subject | PATCH 2.3.23.5: physical address typedef |
| |
Linus,
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.)
Regards,
JeffIndex: include/asm-i386/types.h =================================================================== RCS file: /g/cvslan/linux_2_3/include/asm-i386/types.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 types.h --- include/asm-i386/types.h 1999/10/07 07:42:53 1.1.1.1 +++ 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__ */ #endif | |