triage: fix fp by providing a macro definition

This commit is contained in:
Daniel Marjamäki 2015-01-06 16:25:07 +01:00
parent 34b9387727
commit 3404bc9ab0
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@
const typeof( ((type *)0)->member ) *__mptr = (ptr); \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );}) (type *)( (char *)__mptr - offsetof(type,member) );})
#define __get_user(x, ptr) ((x) = somevalue + sizeof(*ptr))
void panic(const char *fmt, ...) __attribute__((noreturn)); void panic(const char *fmt, ...) __attribute__((noreturn));