[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1422613549-30681-1-git-send-email-chowdegowda.ms@smartplayin.com>
Date: Fri, 30 Jan 2015 15:55:49 +0530
From: chowdegowda.ms@...rtplayin.com
To: linux-kernel@...r.kernel.org
Cc: pramod.gurav@...rtplayin.com, kiran.padwal@...rtplayin.com,
Chowdegowda <Chowdegowda.MS@...rtplayin.com>
Subject: [PATCH] lustre:include:linux:libcfs:libcfs_private.h:fixes the duplicate case value issue.
From: Chowdegowda <Chowdegowda.MS@...rtplayin.com>
In the expession used in switch statement must be a variable not a
constant integer. Expression for case statement must be constant
of same data type that should not be a variable.
---
drivers/staging/lustre/include/linux/libcfs/libcfs_private.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h
index 2817112..0c222c5 100644
--- a/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h
+++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_private.h
@@ -408,7 +408,7 @@ int cfs_percpt_atomic_summary(atomic_t **refs);
* value after conversion...
*
*/
-#define CLASSERT(cond) do {switch (42) {case (cond): case 0: break; } } while (0)
+#define CLASSERT(cond) do {switch (cond) { case 0: case 1: break;} } while (0)
/* support decl needed both by kernel and liblustre */
int libcfs_isknown_lnd(int type);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists