diff options
| author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-09-11 04:31:50 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-09-14 11:24:27 -0400 |
| commit | 8308c54d7e312f7a03e2ce2057d0837e6fe3843f (patch) | |
| tree | 452b32a3d2182c4d150d632f243e31f16b2ac0ce /include/linux | |
| parent | 947d0496cf3e12ebfa70b3eaf561c25403247ce9 (diff) | |
generic: redefine resource_size_t as phys_addr_t
There's no good reason why a resource_size_t shouldn't just be a
physical address, so simply redefine it in terms of phys_addr_t.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/types.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/types.h b/include/linux/types.h index 022c668496da..f24f7beb47df 100644 --- a/include/linux/types.h +++ b/include/linux/types.h | |||
| @@ -191,18 +191,14 @@ typedef __u32 __bitwise __wsum; | |||
| 191 | #ifdef __KERNEL__ | 191 | #ifdef __KERNEL__ |
| 192 | typedef unsigned __bitwise__ gfp_t; | 192 | typedef unsigned __bitwise__ gfp_t; |
| 193 | 193 | ||
| 194 | #ifdef CONFIG_RESOURCES_64BIT | ||
| 195 | typedef u64 resource_size_t; | ||
| 196 | #else | ||
| 197 | typedef u32 resource_size_t; | ||
| 198 | #endif | ||
| 199 | |||
| 200 | #ifdef CONFIG_PHYS_ADDR_T_64BIT | 194 | #ifdef CONFIG_PHYS_ADDR_T_64BIT |
| 201 | typedef u64 phys_addr_t; | 195 | typedef u64 phys_addr_t; |
| 202 | #else | 196 | #else |
| 203 | typedef u32 phys_addr_t; | 197 | typedef u32 phys_addr_t; |
| 204 | #endif | 198 | #endif |
| 205 | 199 | ||
| 200 | typedef phys_addr_t resource_size_t; | ||
| 201 | |||
| 206 | struct ustat { | 202 | struct ustat { |
| 207 | __kernel_daddr_t f_tfree; | 203 | __kernel_daddr_t f_tfree; |
| 208 | __kernel_ino_t f_tinode; | 204 | __kernel_ino_t f_tinode; |
