From 81c250dcf973e72d5047d3bc5ceb9a0b7a52dec4 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Fri, 22 Jul 2011 10:56:23 -0400 Subject: [PATCH] arm: fix implicit usage of string.h in kernel/leds.c The use of these string ops was implicitly hidden by the use of module.h, but that is going away shortly. When it does, this will break as follows: arch/arm/kernel/leds.c: In function 'leds_store': arch/arm/kernel/leds.c:40: error: implicit declaration of function 'strcspn' arch/arm/kernel/leds.c:40: warning: incompatible implicit declaration of built-in function 'strcspn' arch/arm/kernel/leds.c:45: error: implicit declaration of function 'strncmp' arch/arm/kernel/leds.c:55: error: implicit declaration of function 'strlen' arch/arm/kernel/leds.c:55: warning: incompatible implicit declaration of built-in function 'strlen' arch/arm/mach-omap2/clockdomain.c: In function '_clkdm_lookup': arch/arm/mach-omap2/clockdomain.c:52: error: implicit declaration of function 'strcmp' Signed-off-by: Paul Gortmaker --- arch/arm/kernel/leds.c | 1 + arch/arm/mach-omap2/clockdomain.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/kernel/leds.c b/arch/arm/kernel/leds.c index 0f107dcb0347..09b9fe224992 100644 --- a/arch/arm/kernel/leds.c +++ b/arch/arm/kernel/leds.c @@ -11,6 +11,7 @@ #include #include #include +#include #include diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index ab7db083f97f..764666f9c547 100644 --- a/arch/arm/mach-omap2/clockdomain.c +++ b/arch/arm/mach-omap2/clockdomain.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include -- 2.39.5