From: Paul Gortmaker Date: Fri, 22 Jul 2011 14:56:23 +0000 (-0400) Subject: arm: fix implicit usage of string.h in kernel/leds.c X-Git-Tag: next-20110812~2^2~164 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=68d42873fc16a78fb4edce206350fbbece5c79b4;p=karo-tx-linux.git 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 --- 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