X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-x86%2Fcurrent_64.h;h=2d368ede2fc1ed715554879d90395ace7cf02445;hb=871d5f8dd0f7647f03facd4cb79485938d1b61ab;hp=bc8adecee66d74abc53ce61e1632112e6e28b941;hpb=55982fd184a065b1c69279d29cbc01dbf424d2f4;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