powerpc/asm: Define STACK_PT_REGS_OFFSET macro in asm-offsets.c
authorRashmica Gupta <rashmicy@gmail.com>
Thu, 2 Jun 2016 04:29:47 +0000 (14:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Feb 2017 10:47:51 +0000 (21:47 +1100)
commit10d4cf188ab26a4ebeee4c914e82acd5edd9f0ff
tree805defc9561a14868994d7dbcad4a7c73b18613f
parent454656155110603e88b83eec847d5293a30bb96e
powerpc/asm: Define STACK_PT_REGS_OFFSET macro in asm-offsets.c

There are quite a few entries in asm-offests.c which look like:

  DEFINE(REG, STACK_FRAME_OVERHEAD+offsetof(struct pt_regs, reg));

So define a macro to do it once.

Signed-off-by: Rashmica Gupta <rashmicy@gmail.com>
[mpe: Rename to STACK_PT_REGS_OFFSET for excruciating explicitness]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/asm-offsets.c