From 092a7c9ebfdb0441d776ace66eec95b0871f1648 Mon Sep 17 00:00:00 2001 From: Tarun Karela Date: Mon, 28 May 2018 17:39:20 +0100 Subject: [PATCH] [9610] wlbt: Fix compilation error in platform_mif.c drivers/misc/samsung/scsc/platform_mif.c: In function 'platform_mif_map_region': drivers/misc/samsung/scsc/platform_mif.c:1501:2: error: implicit declaration of function 'kmalloc' [-Werror=implicit-function-declaration] pages = kmalloc((size >> PAGE_SHIFT) * sizeof(*pages), GFP_KERNEL); ^ drivers/misc/samsung/scsc/platform_mif.c:1501:8: warning: assignment makes pointer from integer without a cast pages = kmalloc((size >> PAGE_SHIFT) * sizeof(*pages), GFP_KERNEL); ^ drivers/misc/samsung/scsc/platform_mif.c:1513:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] kfree(pages); Change-Id: I633d0e41aa929a510bdd510f928a2f9479239b11 SCSC-Bug-Id: SSB-40175 Signed-off-by: Tarun Karela --- drivers/misc/samsung/scsc/platform_mif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/misc/samsung/scsc/platform_mif.c b/drivers/misc/samsung/scsc/platform_mif.c index a072069927c9..4c29262209d6 100755 --- a/drivers/misc/samsung/scsc/platform_mif.c +++ b/drivers/misc/samsung/scsc/platform_mif.c @@ -13,9 +13,11 @@ #include #include #include +#include #include #include #include +#include #include #ifndef CONFIG_SOC_EXYNOS7570 #include -- 2.20.1