trace: ramdump: comment out not used functions
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 28 Sep 2016 15:39:28 +0000 (00:39 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:53:02 +0000 (13:53 +0900)
This patch comments out not used functions to remove following
warnings.

   drivers/trace/exynos-ss.c:593:21: warning: 'exynos_ss_get_core_panic_stat' defined but not used [-Wunused-function]
    static unsigned int exynos_ss_get_core_panic_stat(unsigned cpu)
                        ^
   drivers/trace/exynos-ss.c:1047:13: warning: 'exynos_ss_dump_task_info' defined but not used [-Wunused-function]
    static void exynos_ss_dump_task_info(void)
                ^

Change-Id: I267ad6128ea33ceb4cc476c0aa5aa0a6c4da6f95
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/trace/exynos-ss.c

index ad83c8b..cb74544 100644 (file)
@@ -590,10 +590,12 @@ static unsigned int exynos_ss_get_core_power_stat(unsigned cpu)
        return __raw_readl(S5P_VA_SS_CORE_POWER_STAT + cpu * 4);
 }
 
+#if 0
 static unsigned int exynos_ss_get_core_panic_stat(unsigned cpu)
 {
        return __raw_readl(S5P_VA_SS_CORE_PANIC_STAT + cpu * 4);
 }
+#endif
 
 static void exynos_ss_set_core_panic_stat(unsigned int val, unsigned cpu)
 {
@@ -990,6 +992,7 @@ static inline void exynos_ss_hook_logbuf(const char *buf, size_t size)
 }
 #endif
 
+#if 0
 static void exynos_ss_dump_one_task_info(struct task_struct *tsk, bool is_main)
 {
        char state_array[] = {'R', 'S', 'D', 'T', 't', 'Z', 'X', 'x', 'K', 'W'};
@@ -1082,6 +1085,7 @@ static void exynos_ss_dump_task_info(void)
        }
        pr_info(" ----------------------------------------------------------------------------------------------------------------------------\n");
 }
+#endif
 
 static int exynos_ss_reboot_handler(struct notifier_block *nb,
                                    unsigned long l, void *p)