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,
Jeff
--------------B5917F4F93316F79C054B907
Content-Type: text/plain; charset=us-ascii;
name="2.3.23.pre5-kphysaddr_t.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="2.3.23.pre5-kphysaddr_t.patch"
Index: 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
--------------B5917F4F93316F79C054B907--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/