Re: x86/include/asm/arch_hweight.h:49:15: error: invalid input size for constraint 'D'

Nathan Chancellor
2023-02-07T16:29:09Z

Hi Naresh,

On Tue, Feb 07, 2023 at 01:27:05PM +0530, Naresh Kamboju wrote:
> Following Build regressions warnings / errors noticed on Linux next-20230207.
>
> Regressions found on x86_64:
>
> - build/clang-15-lkftconfig-compat
> - build/clang-nightly-lkftconfig
> - build/clang-15-lkftconfig
> - build/clang-15-lkftconfig-kcsan
> - build/clang-lkftconfig
>
> In file included from arch/x86/entry/vdso/vdso32/vgetcpu.c:2:
> In file included from arch/x86/entry/vdso/vdso32/../vgetcpu.c:8:
> In file included from include/linux/kernel.h:22:
> In file included from include/linux/bitops.h:68:
> In file included from arch/x86/include/asm/bitops.h:420:
> arch/x86/include/asm/arch_hweight.h:49:15: error: invalid input size
> for constraint 'D'
> : REG_IN (w));
> ^
> In file included from arch/x86/entry/vdso/vdso32/vgetcpu.c:2:
> In file included from arch/x86/entry/vdso/vdso32/../vgetcpu.c:8:
> In file included from include/linux/kernel.h:25:
> In file included from include/linux/math.h:6:
> arch/x86/include/asm/div64.h:85:34: error: invalid output size for
> constraint '=a'
> asm ("mulq %2; divq %3" : "=a" (q)
> ^
> 2 errors generated.
>
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Thanks a lot for the report as always! Looks like there is a fix pending
on the list:

https://lore.kernel.org/Y+IsCWQdXEr8d9Vy@linutronix.de/

Cheers,
Nathan