Re: [PATCH] x86: Let AS_WRUSS depend on X86_64

From: Jiri Slaby
Date: Tue Oct 31 2023 - 09:59:48 EST


On 31. 10. 23, 14:34, Borislav Petkov wrote:
On Tue, Oct 31, 2023 at 09:20:33PM +0900, Masahiro Yamada wrote:
Please note "depends on X86_64" cannot prevent gcc
from running here.

$(as-instr,wrussq %rax$(comma)(%rbx)) is replaced with 'y'
while parsing the Kconfig files.

Then what is this fixing?
> Jiri, what openSUSE kernel build issues were you referring to on IRC?

As I wrote, we have a config which maintainers feed through oldconfig when updating the kernel. This time we got WRUSS=y. It was stored in git and later passed to build the kernel. And we received a different config from the build (WRUSS=n).

We diff the two and error out if the built kernel differs from the passed configuration. Which is the case here.

hth,
--
js