patch-2.1.21 linux/include/linux/modsetver.h

Next file: linux/include/linux/module.h
Previous file: linux/include/linux/in6.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.20/linux/include/linux/modsetver.h linux/include/linux/modsetver.h
@@ -0,0 +1,10 @@
+/* Symbol versioning nastiness.  */
+
+#define __SYMBOL_VERSION(x)       __ver_ ## x
+#define __VERSIONED_SYMBOL2(x,v)  x ## _R ## v
+#define __VERSIONED_SYMBOL1(x,v)  __VERSIONED_SYMBOL2(x,v)
+#define __VERSIONED_SYMBOL(x)     __VERSIONED_SYMBOL1(x,__SYMBOL_VERSION(x))
+
+#ifndef _set_ver
+#define _set_ver(x)		  __VERSIONED_SYMBOL(x)
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov