Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2017 12:27:49 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316606 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201704071227.v37CRnfl037333@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Apr  7 12:27:49 2017
New Revision: 316606
URL: https://svnweb.freebsd.org/changeset/base/316606

Log:
  The __stringify() macro in the LinuxKPI should expand any macros
  before stringifying.
  
  MFC after:		1 week
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/compiler.h

Modified: head/sys/compat/linuxkpi/common/include/linux/compiler.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/compiler.h	Fri Apr  7 10:45:28 2017	(r316605)
+++ head/sys/compat/linuxkpi/common/include/linux/compiler.h	Fri Apr  7 12:27:49 2017	(r316606)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704071227.v37CRnfl037333>