kconfig: include <strings.h> to fix bcmp build error on Clang

From: Z-Script Zs
Date: Sun Jun 15 2025 - 09:59:59 EST


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.

Best regards,  
Abhigyan Ghosh  
zscript.team.zs@xxxxxxxxx
From 8b17ff5fe0916050a3fe279befb301899bef83b0 Mon Sep 17 00:00:00 2001
From: Abhigyan Ghosh <zscript.team.zs@xxxxxxxxx>
Date: Sun, 15 Jun 2025 18:51:21 +0530
Subject: [PATCH] kconfig: include <strings.h> to fix bcmp build error on Clang

Fixes build failure when compiling with Clang in strict C99 environments
such as Termux or Android, where 'bcmp' is not declared unless
<strings.h> is included.

Signed-off-by: Abhigyan Ghosh <zscript.team.zs@xxxxxxxxx>
---
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 ac95661a1..06a6cd77c 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -2,7 +2,7 @@
/*
* Copyright (C) 2002 Roman Zippel <zippel@xxxxxxxxxxxxxx>
*/
-
+#include <strings.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
--
2.49.0