[PATCH 2.6.23-rc2-mm2] build fix of kernel/sysctl_check.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Include linux/string.h for strcmp() to fix the following build error.
This patch is required for 2.6.23-rc2-mm2.

<--  snip  -->
  CC      kernel/sysctl_check.o
/project/m32r-linux/kernel/linux-2.6.23-rc2-mm2/linux-2.6.23-rc2-mm2/kernel/sysctl_check.c: In function 'sysctl_binary_lookup':
/project/m32r-linux/kernel/linux-2.6.23-rc2-mm2/linux-2.6.23-rc2-mm2/kernel/sysctl_check.c:1303: error: implicit declaration of function 'strcmp'
make[2]: *** [kernel/sysctl_check.o] Error 1
make[1]: *** [kernel] Error 2
make: *** [_all] Error 2
<--  snip  -->

Signed-off-by: Hirokazu Takata <[email protected]>
---
 kernel/sysctl_check.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.23-rc2-mm2/kernel/sysctl_check.c
===================================================================
--- linux-2.6.23-rc2-mm2.orig/kernel/sysctl_check.c
+++ linux-2.6.23-rc2-mm2/kernel/sysctl_check.c
@@ -3,6 +3,7 @@
 #include "../arch/s390/appldata/appldata.h"
 #include "../fs/xfs/linux-2.6/xfs_sysctl.h"
 #include <linux/sunrpc/debug.h>
+#include <linux/string.h>
 #include <net/ip_vs.h>
 
 struct trans_ctl_table {

--
Hirokazu Takata <[email protected]>
Linux/M32R Project:  http://www.linux-m32r.org/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux