• Nathan Chancellor's avatar
    efi/libstub: Disable some warnings for x86{,_64} · 3db5e0ba
    Nathan Chancellor authored
    When building the kernel with Clang, some disabled warnings appear
    because this Makefile overrides KBUILD_CFLAGS for x86{,_64}. Add them to
    this list so that the build is clean again.
    
    -Wpointer-sign was disabled for the whole kernel before the beginning of Git history.
    
    -Waddress-of-packed-member was disabled for the whole kernel and for
    the early boot code in these commits:
    
      bfb38988 ("kbuild: clang: Disable 'address-of-packed-member' warning")
      20c6c189 ("x86/boot: Disable the address-of-packed-member compiler warning").
    
    -Wgnu was disabled for the whole kernel and for the early boot code in
    these commits:
    
      61163efa ("kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang")
      6c3b56b1 ("x86/boot: Disable Clang warnings about GNU extensions").
    
     [ mingo: Made the changelog more readable. ]
    Tested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
    Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
    Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Reviewed-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Arend van Spriel <arend.vanspriel@broadcom.com>
    Cc: Bhupesh Sharma <bhsharma@redhat.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Dave Hansen <dave.hansen@intel.com>
    Cc: Eric Snowberg <eric.snowberg@oracle.com>
    Cc: Hans de Goede <hdegoede@redhat.com>
    Cc: Joe Perches <joe@perches.com>
    Cc: Jon Hunter <jonathanh@nvidia.com>
    Cc: Julien Thierry <julien.thierry@arm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Matt Fleming <matt@codeblueprint.co.uk>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: YiFei Zhu <zhuyifei1999@gmail.com>
    Cc: linux-efi@vger.kernel.org
    Link: http://lkml.kernel.org/r/20181129171230.18699-8-ard.biesheuvel@linaro.org
    Link: https://github.com/ClangBuiltLinux/linux/issues/112Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    3db5e0ba
Makefile 4.08 KB