From: Linus Walleij Date: Tue, 27 May 2014 13:15:21 +0000 (+0200) Subject: gpio: pch: add slab include X-Git-Tag: v3.16-rc1~30^2~53^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=349b6c5355964d306d7d957c3af6179f3d6391ed;p=platform%2Fkernel%2Flinux-exynos.git gpio: pch: add slab include After change 3ff35cbcfa4bc7d7dbdd0279e32ea677567ded02 "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 --- diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index 83a1563..d6eac9b 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)