kvmtool: Copy some helper header files from the Linux tree

Copy some non-Linux specific header files over to the kvmtool
directory. This includes generic helpers like stringify and list
definitions.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
This commit is contained in:
Andre Przywara
2015-06-01 16:40:11 +01:00
committed by Will Deacon
parent 17725a8d8f
commit 7e841c883d
3 changed files with 825 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
#ifndef __LINUX_STRINGIFY_H
#define __LINUX_STRINGIFY_H
/* Indirect stringification. Doing two levels allows the parameter to be a
* macro itself. For example, compile with -DFOO=bar, __stringify(FOO)
* converts to "bar".
*/
#define __stringify_1(x...) #x
#define __stringify(x...) __stringify_1(x)
#endif /* !__LINUX_STRINGIFY_H */