X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-x86%2Fcurrent_64.h;h=2d368ede2fc1ed715554879d90395ace7cf02445;hb=13a6ddb08e58a1bd344da7898c4e2f13bdf18c2f;hp=bc8adecee66d74abc53ce61e1632112e6e28b941;hpb=547307420931344a868275bd7ea7a30f117a15a9;p=linux-2.6 diff --git a/include/asm-x86/current_64.h b/include/asm-x86/current_64.h index bc8adecee6..2d368ede2f 100644 --- a/include/asm-x86/current_64.h +++ b/include/asm-x86/current_64.h @@ -1,23 +1,23 @@ #ifndef _X86_64_CURRENT_H #define _X86_64_CURRENT_H -#if !defined(__ASSEMBLY__) +#if !defined(__ASSEMBLY__) struct task_struct; #include -static inline struct task_struct *get_current(void) -{ - struct task_struct *t = read_pda(pcurrent); +static inline struct task_struct *get_current(void) +{ + struct task_struct *t = read_pda(pcurrent); return t; -} +} #define current get_current() #else #ifndef ASM_OFFSET_H -#include +#include #endif #define GET_CURRENT(reg) movq %gs:(pda_pcurrent),reg