1*1f5207b7SJohn Levon #define __percpu __attribute__((noderef, address_space(3)))
2*1f5207b7SJohn Levon 
3*1f5207b7SJohn Levon /* Turn v back into a normal var. */
4*1f5207b7SJohn Levon #define convert(v) \
5*1f5207b7SJohn Levon        (*(typeof(v) __attribute__((address_space(0), force)) *)(&v))
6*1f5207b7SJohn Levon 
main(int argc,char * argv)7*1f5207b7SJohn Levon int main(int argc, char *argv)
8*1f5207b7SJohn Levon {
9*1f5207b7SJohn Levon        unsigned int __percpu x;
10*1f5207b7SJohn Levon 
11*1f5207b7SJohn Levon        convert(x) = 0;
12*1f5207b7SJohn Levon        return 0;
13*1f5207b7SJohn Levon }
14*1f5207b7SJohn Levon /*
15*1f5207b7SJohn Levon  * check-name: Rusty Russell's typeof attribute casting.
16*1f5207b7SJohn Levon  */
17