[PATCH] Driver Core: pm diagnostics update, check for errors
[linux-2.6/verdex.git] / arch / um / sys-x86_64 / util / mk_thread.c
blob15517396e9cf01d17b54cc3c963c3bf24fd5e10b
1 #include <stdio.h>
2 #include <kernel-offsets.h>
4 int main(int argc, char **argv)
6 printf("/*\n");
7 printf(" * Generated by mk_thread\n");
8 printf(" */\n");
9 printf("\n");
10 printf("#ifndef __UM_THREAD_H\n");
11 printf("#define __UM_THREAD_H\n");
12 printf("\n");
13 #ifdef TASK_EXTERN_PID
14 printf("#define TASK_EXTERN_PID(task) *((int *) &(((char *) (task))[%d]))\n",
15 TASK_EXTERN_PID);
16 #endif
17 printf("\n");
18 printf("#endif\n");
19 return(0);