Skip to contentSkip to conversation

kvm tool: Remove the __stringify* defination from the util.h

PATCH Superseded Prasad Joshi 2 participants 2 messages Apr 16, 2011 KVM

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 kvm tool: Remove the __stringify* defination from the util.h

Include the Linux kernel header file linux/stringify.h file instead of redefining the __stringify* macros

---
 tools/kvm/include/kvm/util.h |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
tools/kvm/include/kvm/util.h +2 -3
index ae033cc..fc222c3 100644
@@ -1,3 +1,5 @@
+#include <linux/stringify.h>
+
 #ifndef KVM__UTIL_H
 #define KVM__UTIL_H
 
@@ -27,9 +29,6 @@
 #endif
 #endif
 
-#define __stringify_1(x)	#x
-#define __stringify(x)		__stringify_1(x)
-
 extern void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));
 extern void die_perror(const char *s) NORETURN;
 extern int error(const char *err, ...) __attribute__((format (printf, 1, 2)));
Signature · 1 line
1.7.1
#1 lore raw
Quoted 4 lines · Prasad Joshi

Include the Linux kernel header file linux/stringify.h file instead of redefining the __stringify* macros

Small title nit, please do something like:

- Remove the __stringify*() defination from the util.h
+ Remove the __stringify*() definitions from util.h

Thanks,

Ingo