From 99e690772adbcb78c9e8441bedcf1913d72ea72f Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Fri, 7 Apr 2017 12:27:49 +0000 Subject: [PATCH] The __stringify() macro in the LinuxKPI should expand any macros before stringifying. MFC after: 1 week Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/linux/compiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h index b523c7af176d..e09168499504 100644 --- a/sys/compat/linuxkpi/common/include/linux/compiler.h +++ b/sys/compat/linuxkpi/common/include/linux/compiler.h @@ -56,7 +56,8 @@ #define __devexit #define __exit #define __rcu -#define __stringify(x) #x +#define ___stringify(...) #__VA_ARGS__ +#define __stringify(...) ___stringify(__VA_ARGS__) #define __attribute_const__ __attribute__((__const__)) #undef __always_inline #define __always_inline inline