[PATCH 1/2] Stringify "name" in __RWSEM_INITIALIZER

From: John Kacur
Date: Tue May 15 2012 - 12:25:06 EST


This fixes compile errors of the type:
error: initializer element is not constant

Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
---
include/linux/rwsem_rt.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/rwsem_rt.h b/include/linux/rwsem_rt.h
index cd0c812..dba3b50 100644
--- a/include/linux/rwsem_rt.h
+++ b/include/linux/rwsem_rt.h
@@ -37,7 +37,7 @@ struct rw_semaphore {

#ifdef CONFIG_DEBUG_LOCK_ALLOC
#define __RWSEM_INITIALIZER(_name) \
- { .name = _name }
+ { .name = #_name }
#else
#define __RWSEM_INITIALIZER(name) \
{ }
--
1.7.2.3