powerpc/asm: Use OFFSET macro in asm-offsets.c
authorRashmica Gupta <rashmicy@gmail.com>
Wed, 15 Feb 2017 10:41:20 +0000 (21:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Feb 2017 10:42:19 +0000 (21:42 +1100)
commit454656155110603e88b83eec847d5293a30bb96e
tree3d55a5ee6b7c459cb6bb8f3a1b8062c0de210142
parent7d7be3aa08fa338e84eb235805ee18f2fab85a46
powerpc/asm: Use OFFSET macro in asm-offsets.c

A lot of entries in asm-offests.c look like this:

  DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));

But there is a common macro, OFFSET, which makes this cleaner:

  OFFSET(TI_flags, thread_info, flags)

So use it.

Signed-off-by: Rashmica Gupta <rashmicy@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/asm-offsets.c