Re: [BUG] Add missing <linux/string.h> include for strcmp.

From: H. Nikolaus Schaller
Date: Thu Feb 02 2023 - 03:55:26 EST


Hi Sam,

> Am 02.02.2023 um 00:37 schrieb Sam James <sam@xxxxxxxxxx>:
>
> Finally getting back to this. Thanks for reporting the problem (we reverted it as a result, obviously).
>
> Would you mind sharing a preprocessed version of the failing file please?
>
> (Passing -save-temps to CC can do this, the relevant files should be xx.i)

Build v6.1-rc7 with ARCH=arm V=2 clean omap2plus_defconfig uImage

...
SYSTBL arch/arm/include/generated/calls-oabi.S - due to calls-oabi.S not in $(targets)
SYSTBL arch/arm/include/generated/calls-eabi.S - due to calls-eabi.S not in $(targets)
HOSTCC scripts/mod/mk_elfconfig - due to missing .cmd file
CC scripts/mod/empty.o - due to target missing
MKELF scripts/mod/elfconfig.h - due to: scripts/mod/empty.o scripts/mod/mk_elfconfig
HOSTCC scripts/mod/modpost.o - due to target missing
In file included from include/linux/string.h:5,
from scripts/mod/../../include/linux/license.h:5,
from scripts/mod/modpost.c:24:
include/linux/compiler.h:246:10: fatal error: asm/rwonce.h: No such file or directory
246 | #include <asm/rwonce.h>
| ^~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:128: recipe for target 'scripts/mod/modpost.o' failed
make[2]: *** [scripts/mod/modpost.o] Error 1
Makefile:1269: recipe for target 'prepare0' failed
make[1]: *** [prepare0] Error 2
Makefile:362: recipe for target '__build_one_by_one' failed
make: *** [__build_one_by_one] Error 2

Attached is the modpost.i
After the failed #include it is apparently incomplete.

BR and thanks,
Nikolaus

Attachment: modpost.i
Description: Binary data