Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1623812

Re: [PATCH 2/2] kbuild: fix asm-offset generation to work with clang

From Matthias Kaehlcke <mka@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] kbuild: fix asm-offset generation to work with clang
Date 2017-04-14 19:50 +0200
Message-ID <twdw5-404-9@gated-at.bofh.it> (permalink)
References <tw2qZ-5Iz-3@gated-at.bofh.it> <tw2qZ-5Iz-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


El Fri, Apr 14, 2017 at 02:50:03PM +0900 Masahiro Yamada ha dit:

> From: Jeroen Hofstee <jeroen@myspectrum.nl>
> 
> KBuild abuses the asm statement to write to a file and
> clang chokes about these invalid asm statements. Hack it
> even more by fooling this is actual valid asm code.
> 
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> [masahiro:
>  Import Jeroen's work for U-Boot:
>  http://patchwork.ozlabs.org/patch/375026/
>  Tweak sed script a little to drop garbage '#' for GCC case, like
>  #define NR_PAGEFLAGS 23 /* __NR_PAGEFLAGS       # */ ]
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>

I tested with x86 and arm64. Please note that two more changes are
needed to avoid breaking frv and um:

https://patchwork.kernel.org/patch/9660473/
https://patchwork.kernel.org/patch/9660503/

Maybe these should be part of your patch set? I only sent them out
separately to avoid cross posting with my initial patch for this issue
being a RFC.

Cheers

Matthias

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] kbuild: cleanup asm-offset generation, and make it work with clang Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-04-14 08:00 +0200
  [PATCH 2/2] kbuild: fix asm-offset generation to work with clang Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-04-14 08:00 +0200
    Re: [PATCH 2/2] kbuild: fix asm-offset generation to work with clang Matthias Kaehlcke <mka@chromium.org> - 2017-04-14 19:50 +0200

csiph-web