aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch
blob: b248133460ebd3e0b3e8040d998cceaaff05efe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From db112739dc4f608a968b8104b382955dc3d96ca3 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 7 Sep 2015 07:40:10 +0000
Subject: [PATCH] Rectify the function signatures to fix prototype mismatches

clang is less forgiving when it comes to coding standards, correct the
function signatures to reflect the function logic

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 fsync.c      | 7 ++++---
 latencytop.h | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/fsync.c b/fsync.c
index 82dff0e..5cefba9 100644
--- a/fsync.c
+++ b/fsync.c
@@ -51,7 +51,7 @@ struct fsync_files {
 static GList *fsync_data;
 
 
-static chain_file(struct fsync_process *proc, char *filename)
+static void chain_file(struct fsync_process *proc, char *filename)
 {
 	struct fsync_files *file;
 	GList *item;
@@ -75,7 +75,7 @@ static chain_file(struct fsync_process *proc, char *filename)
 	proc->files = g_list_append(proc->files, file);
 }
 
-static report_file(char *process, char *file)
+static void report_file(char *process, char *file)
 {
 	struct fsync_process *proc;
 	GList *item;
@@ -157,9 +157,10 @@ int enable_fsync_tracer(void)
 	write_to_file("/sys/kernel/debug/tracing/current_tracer", "fsync");	
 	write_to_file("/sys/kernel/debug/tracing/iter_ctrl", "ftrace_printk");	
 	write_to_file("/sys/kernel/debug/tracing/tracing_on", "1");
+	return ret;
 }
 
-int disable_fsync_tracer(void)
+void disable_fsync_tracer(void)
 {
 	write_to_file("/sys/kernel/debug/tracing/tracing_on", "0");
 }
diff --git a/latencytop.h b/latencytop.h
index 5394d73..9d107a8 100644
--- a/latencytop.h
+++ b/latencytop.h
@@ -54,5 +54,5 @@ extern char *translate(char *line);
 extern void init_translations(char *filename);
 extern int fsync_display(int duration);
 extern int enable_fsync_tracer(void);
-extern int disable_fsync_tracer(void);
+extern void disable_fsync_tracer(void);
 extern void update_list(void);
-- 
2.5.1