[PATCH] riscv: fix build with binutils 2.38

Linus Torvalds torvalds at linux-foundation.org
Thu Mar 31 11:16:53 PDT 2022


On Thu, Mar 31, 2022 at 3:51 AM Marc Kleine-Budde <mkl at pengutronix.de> wrote:
>
> Cc += linux-sparse, Uwe, Luc Van Oostenryck
>
> tl;dr:
>
> A recent change in the kernel regarding the riscv -march handling breaks
> current sparse.

Gaah. Normally sparse doesn't even look at the -march flag, but for
riscv it does, because it's meaningful for the predefined macros.

Maybe that 'die()' shouldn't be so fatal. And maybe add a few more
extensions (but ignore them) to the parsing.

Something ENTIRELY UNTESTED like the attached.

               Linus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 1074 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20220331/d9c5c982/attachment.bin>


More information about the linux-riscv mailing list