Skip to content

Commit

Permalink
simplify kernel intptr; always long there
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Wyckoff committed Jan 28, 2008
1 parent a57a123 commit 77dd643
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions include/pvfs2-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,8 @@
#ifdef __KERNEL__
#define strdup(s) kstrdup(s, GFP_KERNEL)
#define assert(x) BUG_ON(!(x))
#if PVFS2_SIZEOF_VOIDP == 32
#ifndef uintptr_t
#define uintptr_t uint32_t
#endif
#ifndef intptr_t
#define intptr_t int32_t
#endif
#elif PVFS2_SIZEOF_VOIDP == 64
#ifndef uintptr_t
#define uintptr_t uint64_t
#endif
#ifndef intptr_t
#define intptr_t int64_t
#endif
#else
#error "Unhandled uintptr size"
#define intptr_t long
#endif
#endif

Expand Down

0 comments on commit 77dd643

Please sign in to comment.