From c410a1228d85cda29c9c1eae8e48785d2a038f83 Mon Sep 17 00:00:00 2001 From: Ivan Priest Date: Thu, 21 Feb 2019 11:14:38 +0000 Subject: [PATCH] [RAMEN9610-12700][Common] wlbt: remove needless inlining in scsc_log_collector.c Some functions are needlessly static inline. Change-Id: I1da206bfef24687717f95fbe9cae46cb700454e8 SCSC-Bug-Id: SSB-49743 Signed-off-by: Ivan Priest --- drivers/misc/samsung/scsc/scsc_log_collector.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/misc/samsung/scsc/scsc_log_collector.c b/drivers/misc/samsung/scsc/scsc_log_collector.c index a6a79ce37034..76347ce4da40 100644 --- a/drivers/misc/samsung/scsc/scsc_log_collector.c +++ b/drivers/misc/samsung/scsc/scsc_log_collector.c @@ -258,7 +258,7 @@ unsigned char *scsc_log_collector_get_buffer(void) return log_status.buf; } -static inline int __scsc_log_collector_write_to_ram(char __user *buf, size_t count, u8 align) +static int __scsc_log_collector_write_to_ram(char __user *buf, size_t count, u8 align) { if (!log_status.in_collection || !log_status.buf) return -EIO; @@ -277,7 +277,7 @@ static inline int __scsc_log_collector_write_to_ram(char __user *buf, size_t cou return 0; } -static inline int __scsc_log_collector_write_to_file(char __user *buf, size_t count, u8 align) +static int __scsc_log_collector_write_to_file(char __user *buf, size_t count, u8 align) { int ret = 0; @@ -308,15 +308,10 @@ int scsc_log_collector_write(char __user *buf, size_t count, u8 align) } EXPORT_SYMBOL(scsc_log_collector_write); -static inline int __scsc_log_collector_collect_to_ram(enum scsc_log_reason reason) -{ - return 0; -} - #define align_chunk(ppos) (((ppos) + (SCSC_LOG_CHUNK_ALIGN - 1)) & \ ~(SCSC_LOG_CHUNK_ALIGN - 1)) -static inline int __scsc_log_collector_collect(enum scsc_log_reason reason, u16 reason_code, u8 buffer) +static int __scsc_log_collector_collect(enum scsc_log_reason reason, u16 reason_code, u8 buffer) { struct scsc_log_client *lc, *next; mm_segment_t old_fs; -- 2.20.1