On Tue, May 18, 2010 at 05:45:37PM +0100, David Howells wrote: > Reduce get_current() to the asm-generic implementation where possible to remove > duplicate cases. > > Note that this will lose the const attribute on get_current() for ARM and > MN10300. This will be added back in a later patch for all architectures. > Acked-by: Kyle McMartin <kyle@xxxxxxxxxxx> > diff --git a/arch/parisc/include/asm/current.h b/arch/parisc/include/asm/current.h > index 0fb9338..4c51401 100644 > --- a/arch/parisc/include/asm/current.h > +++ b/arch/parisc/include/asm/current.h > @@ -1,15 +1 @@ > -#ifndef _PARISC_CURRENT_H > -#define _PARISC_CURRENT_H > - > -#include <linux/thread_info.h> > - > -struct task_struct; > - > -static inline struct task_struct * get_current(void) > -{ > - return current_thread_info()->task; > -} > - > -#define current get_current() > - > -#endif /* !(_PARISC_CURRENT_H) */ > +#include <asm-generic/current.h> -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html