include: pe.h: allow for use in assembly
authorMark Rutland <mark.rutland@arm.com>
Thu, 23 Mar 2017 19:00:44 +0000 (19:00 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 Apr 2017 16:49:26 +0000 (17:49 +0100)
commit65c2e69b3ccaa359032cfc35c4dbb8d235f63e5b
tree5f0946840c7e8815d4106da2e51c0bd9ce26b363
parent214fad550772929d97fb90a6a2637ebf5a796c11
include: pe.h: allow for use in assembly

Some of the definitions in include/linux/pe.h would be useful for the
EFI stub headers, where values are currently open-coded. Unfortunately
they cannot be used as some structures are also defined in pe.h without
!__ASSEMBLY__ guards.

This patch moves the structure definitions into an #ifdef __ASSEMBLY__
block, so that the common value definitions can be used from assembly.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
include/linux/pe.h