[2/3] powerpc/asm: Define STACK_OFFSET macro in asm-offsets.c

Michael Ellerman patch-notifications at ellerman.id.au
Thu Feb 16 16:59:45 AEDT 2017


On Thu, 2016-06-02 at 04:29:47 UTC, Rashmica Gupta wrote:
> There are quite a few entries in asm-offests.c look like this:
> DEFINE(REG, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, reg));
> 
> So define a local MACRO to clean this up:
> STACK_OFFSET(sym, val) DEFINE(sym, STACK_FRAME_OVERHEAD + \
>                offsetof(struct pt_regs, val))
> 
> Signed-off-by: Rashmica Gupta <rashmicy at gmail.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/10d4cf188ab26a4ebeee4c914e82ac

cheers


More information about the Linuxppc-dev mailing list