lkml.org 
[lkml]   [1999]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH 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
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.371 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site