Re: [PATCH] x86: simplify task_pt_regs() macro definition

2015-03-13 Thread Steven Rostedt
On Fri, 13 Mar 2015 15:09:03 +0100 Denys Vlasenko wrote: > Before this change, task_pt_regs() was using KSTK_TOP(), > and it was the only use of that macro. In turn, KSTK_TOP used > THREAD_SIZE_LONGS, and it was the only use of that macro too. > > Fold these macros into task_pt_regs(). Tweak com

[PATCH] x86: simplify task_pt_regs() macro definition

2015-03-13 Thread Denys Vlasenko
Before this change, task_pt_regs() was using KSTK_TOP(), and it was the only use of that macro. In turn, KSTK_TOP used THREAD_SIZE_LONGS, and it was the only use of that macro too. Fold these macros into task_pt_regs(). Tweak comment about "- 8" - we now use a symbolic constant, not literal 8. Si