lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNASYnS26EEuHobFRSXE8JMGmD-xKAbebJKf_H+zi6d8K3w@mail.gmail.com>
Date: Mon, 16 Jun 2025 01:05:18 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Z-Script Zs <zscript.team.zs@...il.com>
Cc: linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: kconfig: include <strings.h> to fix bcmp build error on Clang

On Sun, Jun 15, 2025 at 10:59 PM Z-Script Zs <zscript.team.zs@...il.com> wrote:
>
> Hi,
>
> This patch fixes a build error caused by missing <strings.h> when compiling
> with Clang in strict ISO C environments such as Termux or Android.
>
> The function 'bcmp' is used in scripts/kconfig/confdata.c, but without
> including <strings.h>, the build fails under strict C99 rules due to an
> implicit declaration.
>
> I'm 12 years old and just starting to learn Linux kernel development.
> This is my first patch submission. I'd be very grateful for any feedback or corrections.
>
> Thank you for your time and for maintaining this incredible project.

Congratulations for your first patch submission, but
I prefer replacing bcmp() with memcmp() because
"man bcmp" recommends doing so:


SYNOPSIS
       #include <strings.h>

       [[deprecated]] int bcmp(const void s1[.n], const void s2[.n], size_t n);

DESCRIPTION
       bcmp() is identical to memcmp(3); use the latter instead.



The patch already exists:
https://lore.kernel.org/linux-kbuild/rxsikukdh39.fsf@localhost.mail-host-address-is-not-set/


When I communicated last time, I did not get v2 somehow.

I will apply that, updating the commit description myself.

Thanks.





--
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ