From: Tarun Karela Date: Mon, 28 May 2018 16:39:20 +0000 (+0100) Subject: [9610] wlbt: Fix compilation error in platform_mif.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=092a7c9ebfdb0441d776ace66eec95b0871f1648;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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