]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
MIPS: boot: Define __ASSEMBLY__ for its.S build
authorKees Cook <keescook@chromium.org>
Fri, 23 Feb 2018 00:59:26 +0000 (16:59 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 28 Feb 2018 14:47:06 +0000 (08:47 -0600)
commit5300dd411a18199cc9d5407b61b58dc4a59cdb85
tree8d0e3d619e3cbce651aef6dc6acab76c30292df0
parent73fabf907ef7a005cb0a8dd36c378119de1f2fff
MIPS: boot: Define __ASSEMBLY__ for its.S build

BugLink: https://bugs.launchpad.net/bugs/1752317
commit 0f9da844d87796ac31b04e81ee95e155e9043132 upstream.

The MIPS %.its.S compiler command did not define __ASSEMBLY__, which meant
when compiler_types.h was added to kconfig.h, unexpected things appeared
(e.g. struct declarations) which should not have been present. As done in
the general %.S compiler command, __ASSEMBLY__ is now included here too.

The failure was:

    Error: arch/mips/boot/vmlinux.gz.its:201.1-2 syntax error
    FATAL ERROR: Unable to parse input tree
    /usr/bin/mkimage: Can't read arch/mips/boot/vmlinux.gz.itb.tmp: Invalid argument
    /usr/bin/mkimage Can't add hashes to FIT blob

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 28128c61e08e ("kconfig.h: Include compiler types to avoid missed struct attributes")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/mips/boot/Makefile