kconfig: use memcmp instead of deprecated bcmp
authorThomas Meyer <thomas@m3y3r.de>
Tue, 24 Sep 2024 18:47:22 +0000 (20:47 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 18 Jun 2025 01:11:15 +0000 (10:11 +0900)
commit0a1eab129fedb4281e65c845b04be02b53c99f9c
tree577eb6e75e65a7461ed8c3b527b816978b9f313e
parente04c78d86a9699d136910cfc0bdcf01087e3267e
kconfig: use memcmp instead of deprecated bcmp

bcmp() was removed in POSIX.1-2008.

This commit replaces bcmp() with memcmp(). This allows Kconfig to link
with C libraries that do not provide bcmp(), such as Android bionic
libc.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Reported-by: Abhigyan Ghosh <zscript.team.zs@gmail.com>
[masahiro: update commit description]
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c