]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01528732a5c6fbc2557b7dc42275214deb89f556
tree805defc9561a14868994d7dbcad4a7c73b18613f
parentb81ec73f6855105f330561113dcdd3abc043a31e
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