summaryrefslogtreecommitdiffstats
path: root/include/linux/modsetver.h
blob: 7d0b9d37195b15d15aab89d2805ca0f26c22f033 (plain)
1
2
3
4
5
6
7
8
9
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