[9610] wlbt: Fix Compilation error in scsc_wifilogger (Android P)
authorTarun Karela <t.karela@samsung.com>
Mon, 28 May 2018 16:08:32 +0000 (17:08 +0100)
committerYoungsoo Kim <youngss.kim@samsung.com>
Fri, 15 Jun 2018 22:46:16 +0000 (07:46 +0900)
This is android p patch to fix compilation error
drivers/misc/samsung/scsc/scsc_wifilogger_debugfs.c: In function 'dfs_stats_read':
drivers/misc/samsung/scsc/scsc_wifilogger_debugfs.c:46:3: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
   if (copy_to_user(ubuf, statstr + *f_pos, count))

Change-Id: I3f81cefe4ac5ed447ba7c574f47fcb2be00be295
SCSC-Bug-Id: SSB-40175
Signed-off-by: Tarun Karela <t.karela@samsung.com>
drivers/misc/samsung/scsc/scsc_wifilogger_debugfs.c

index 98b846f2d3344716e57736de2cabce622b790269..daee26dc89149a3e37cc7c0d656a3a57e0e3b580 100644 (file)
@@ -3,6 +3,7 @@
  *   Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
  *
  ******************************************************************************/
+#include <linux/uaccess.h>
 #include "scsc_wifilogger_debugfs.h"
 #include "scsc_wifilogger_ring_pktfate.h"