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

From: Hirokazu Takata
Date: Tue Aug 21 2007 - 05:46:14 EST


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 <takata@xxxxxxxxxxxxxx>
---
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 <takata@xxxxxxxxxxxxxx>
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/