[Letux-kernel] [BUG] Add missing <linux/string.h> include for strcmp.

Sam James sam at gentoo.org
Mon Nov 28 22:27:04 CET 2022



> On 28 Nov 2022, at 21:25, Andrew Morton <akpm at linux-foundation.org> wrote:
> 
> On Mon, 28 Nov 2022 18:15:55 +0100 "H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> 
>> starting with v6.1-rc7 I can't build my tree any more:
>> 
>>  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.
>> 
>> Bisect did show your patch as the first bad one:
>> 
>> commit 50c697215a8c "Add missing <linux/string.h> include for strcmp."
>> 
>> Reverting it makes compile succeed.
> 
> Thanks.  I queued a reversion patch.

Thanks, I can't look into it properly right now so this is the best course of action. I'll test cross and the like then submit a fixed one in a few days.


More information about the Letux-kernel mailing list