Skip to content
Snippets Groups Projects
Commit 1f0ec7b4 authored by girish's avatar girish
Browse files

Cleanup compile warnings. (Patch by Andreas)

b=15981
i=rread
i=girish
parent 2475a817
No related branches found
No related tags found
No related merge requests found
...@@ -372,18 +372,12 @@ extern int lwt_snapshot (cycles_t *now, int *ncpu, int *total_size, ...@@ -372,18 +372,12 @@ extern int lwt_snapshot (cycles_t *now, int *ncpu, int *total_size,
#define _LWORDSIZE __WORDSIZE #define _LWORDSIZE __WORDSIZE
#endif #endif
#if (defined(__x86_64__) && (defined(__KERNEL__) || defined(CRAY_XT3))) || defined(HAVE_U64_LONG_LONG) #if defined(HAVE_U64_LONG_LONG)
/* x86_64 defines __u64 as "long" in userspace, but "long long" in the kernel */
# define LPU64 "%Lu" # define LPU64 "%Lu"
# define LPD64 "%Ld" # define LPD64 "%Ld"
# define LPX64 "%#Lx" # define LPX64 "%#Lx"
# define LPF64 "L" # define LPF64 "L"
#elif (_LWORDSIZE == 32) #else
# define LPU64 "%Lu"
# define LPD64 "%Ld"
# define LPX64 "%#Lx"
# define LPF64 "L"
#elif (_LWORDSIZE == 64)
# define LPU64 "%lu" # define LPU64 "%lu"
# define LPD64 "%ld" # define LPD64 "%ld"
# define LPX64 "%#lx" # define LPX64 "%#lx"
......
...@@ -151,7 +151,7 @@ struct ptldebug_header { ...@@ -151,7 +151,7 @@ struct ptldebug_header {
#define __CHECK_STACK(file, func, line) \ #define __CHECK_STACK(file, func, line) \
do { \ do { \
unsigned long _stack = CDEBUG_STACK(); \ unsigned int _stack = CDEBUG_STACK(); \
\ \
if (_stack > 3*THREAD_SIZE/4 && _stack > libcfs_stack) { \ if (_stack > 3*THREAD_SIZE/4 && _stack > libcfs_stack) { \
libcfs_stack = _stack; \ libcfs_stack = _stack; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment