From d0f5de8360e732a0dc7b7cdd4fac3042ad2c87d5 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Tue, 27 May 2014 15:15:21 +0200 Subject: [PATCH] gpio: pch: add slab include After change dd9f8322ef04821674fc90b6a4cdbcca7cfeda99 "gpio-pch: Fix Kconfig dependencies" which enabled COMPILE_TEST as an alternative for the PCH driver, we get build failures like this: drivers/gpio/gpio-pch.c: In function 'pch_gpio_probe': drivers/gpio/gpio-pch.c:359:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration] drivers/gpio/gpio-pch.c:359:7: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/gpio/gpio-pch.c:442:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] Fix this by including explicitly. Cc: Jean Delvare Signed-off-by: Linus Walleij --- drivers/gpio/gpio-pch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index 83a1563974741..d6eac9b17db9e 100644 --- a/drivers/gpio/gpio-pch.c +++ b/drivers/gpio/gpio-pch.c @@ -20,6 +20,7 @@ #include #include #include +#include #define PCH_EDGE_FALLING 0 #define PCH_EDGE_RISING BIT(0) -- 2.39.5