From: Thomas Meyer <thomas@m3y3r.de>
To: masahiroy@kernel.org
Cc: linux-kbuild@vger.kernel.org
Subject: [PATCH] kconfig: use memcmp instead of deprecated bcmp
Date: Tue, 24 Sep 2024 20:47:22 +0200 [thread overview]
Message-ID: <rxsikukdh39.fsf@localhost.mail-host-address-is-not-set> (raw)
Make build succeed on systems whose c library doesn't provided the deprecated bcmp function.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
scripts/kconfig/confdata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 76193ce5a792..18e229bf3d3e 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -76,7 +76,7 @@ static bool is_same(const char *file1, const char *file2)
if (map2 == MAP_FAILED)
goto close2;
- if (bcmp(map1, map2, st1.st_size))
+ if (memcmp(map1, map2, st1.st_size))
goto close2;
ret = true;
--
2.46.1
============================================================
next reply other threads:[~2024-09-24 19:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-24 18:47 Thomas Meyer [this message]
2024-09-24 20:49 ` [PATCH] kconfig: use memcmp instead of deprecated bcmp Miguel Ojeda
2024-09-26 15:33 ` Masahiro Yamada
2024-09-27 18:53 ` Thomas Meyer
2024-09-30 15:26 ` Masahiro Yamada
2025-06-15 16:08 ` Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rxsikukdh39.fsf@localhost.mail-host-address-is-not-set \
--to=thomas@m3y3r.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=masahiroy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).