From 7a71f5ddf588878e06d9faac6ace0dc3c9e0e532 Mon Sep 17 00:00:00 2001 From: scjody Date: Wed, 2 May 2007 22:54:30 +0000 Subject: [PATCH] Branch b1_4 Fix compiler warnings related to CDEBUG_ENABLED and CDEBUG_ENTRY_EXIT on Cray XT3. Original patch by walter. b=12146 i=scjody i=adilger --- lnet/include/libcfs/libcfs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnet/include/libcfs/libcfs.h b/lnet/include/libcfs/libcfs.h index 5f3e1b8..341d3ca 100644 --- a/lnet/include/libcfs/libcfs.h +++ b/lnet/include/libcfs/libcfs.h @@ -169,7 +169,7 @@ typedef struct { #ifdef __KERNEL__ -#if CDEBUG_ENABLED +#ifdef CDEBUG_ENABLED #define __CDEBUG(cdls, mask, format, a...) \ do { \ CHECK_STACK(); \ @@ -234,7 +234,7 @@ do { \ #define LCONSOLE_ERROR(format, a...) CDEBUG_LIMIT(D_CONSOLE | D_ERROR, format, ## a) #define LCONSOLE_EMERG(format, a...) CDEBUG(D_CONSOLE | D_EMERG, format, ## a) -#if CDEBUG_ENABLED +#ifdef CDEBUG_ENABLED #define GOTO(label, rc) \ do { \ @@ -251,7 +251,7 @@ do { \ /* Controlled via configure key */ /* #define CDEBUG_ENTRY_EXIT (1) */ -#if CDEBUG_ENTRY_EXIT +#ifdef CDEBUG_ENTRY_EXIT /* * if rc == NULL, we need to code as RETURN((void *)NULL), otherwise -- 1.8.3.1