[9610] wlbt: Fix compilation error in platform_mif.c
authorTarun Karela <t.karela@samsung.com>
Mon, 28 May 2018 16:39:20 +0000 (17:39 +0100)
committerYoungsoo Kim <youngss.kim@samsung.com>
Fri, 15 Jun 2018 22:46:35 +0000 (07:46 +0900)
commit092a7c9ebfdb0441d776ace66eec95b0871f1648
tree6e003d8695cd4d648fcc6819a1cce8463538bf19
parent8d365bf8fe59876e710b316bc70105c3331bf4fb
[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 <t.karela@samsung.com>
drivers/misc/samsung/scsc/platform_mif.c