diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-09-07 07:45:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-12 22:48:39 +0100 |
commit | 3d8fd2f0ec1778aa36cb95194c474e57dae455e4 (patch) | |
tree | 409fe298a5b458fe26a614e632eafe43be5cc44d /meta/recipes-kernel/latencytop/latencytop-0.5 | |
parent | c8f4822c4d46fb0e222913edeabc33e4bc6d4166 (diff) | |
download | poky-3d8fd2f0ec1778aa36cb95194c474e57dae455e4.tar.gz |
latencytop: Fix build with clang
Clang is stricter with syntax checking and flags the functions return
values if they dont match with function signatures, Fixed thusly
(From OE-Core rev: 91b8c2900570720d56a123a90e927f49a6a6095f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/latencytop/latencytop-0.5')
-rw-r--r-- | meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch b/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch new file mode 100644 index 0000000000..b248133460 --- /dev/null +++ b/meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch | |||
@@ -0,0 +1,64 @@ | |||
1 | From db112739dc4f608a968b8104b382955dc3d96ca3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 7 Sep 2015 07:40:10 +0000 | ||
4 | Subject: [PATCH] Rectify the function signatures to fix prototype mismatches | ||
5 | |||
6 | clang is less forgiving when it comes to coding standards, correct the | ||
7 | function signatures to reflect the function logic | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | fsync.c | 7 ++++--- | ||
14 | latencytop.h | 2 +- | ||
15 | 2 files changed, 5 insertions(+), 4 deletions(-) | ||
16 | |||
17 | diff --git a/fsync.c b/fsync.c | ||
18 | index 82dff0e..5cefba9 100644 | ||
19 | --- a/fsync.c | ||
20 | +++ b/fsync.c | ||
21 | @@ -51,7 +51,7 @@ struct fsync_files { | ||
22 | static GList *fsync_data; | ||
23 | |||
24 | |||
25 | -static chain_file(struct fsync_process *proc, char *filename) | ||
26 | +static void chain_file(struct fsync_process *proc, char *filename) | ||
27 | { | ||
28 | struct fsync_files *file; | ||
29 | GList *item; | ||
30 | @@ -75,7 +75,7 @@ static chain_file(struct fsync_process *proc, char *filename) | ||
31 | proc->files = g_list_append(proc->files, file); | ||
32 | } | ||
33 | |||
34 | -static report_file(char *process, char *file) | ||
35 | +static void report_file(char *process, char *file) | ||
36 | { | ||
37 | struct fsync_process *proc; | ||
38 | GList *item; | ||
39 | @@ -157,9 +157,10 @@ int enable_fsync_tracer(void) | ||
40 | write_to_file("/sys/kernel/debug/tracing/current_tracer", "fsync"); | ||
41 | write_to_file("/sys/kernel/debug/tracing/iter_ctrl", "ftrace_printk"); | ||
42 | write_to_file("/sys/kernel/debug/tracing/tracing_on", "1"); | ||
43 | + return ret; | ||
44 | } | ||
45 | |||
46 | -int disable_fsync_tracer(void) | ||
47 | +void disable_fsync_tracer(void) | ||
48 | { | ||
49 | write_to_file("/sys/kernel/debug/tracing/tracing_on", "0"); | ||
50 | } | ||
51 | diff --git a/latencytop.h b/latencytop.h | ||
52 | index 5394d73..9d107a8 100644 | ||
53 | --- a/latencytop.h | ||
54 | +++ b/latencytop.h | ||
55 | @@ -54,5 +54,5 @@ extern char *translate(char *line); | ||
56 | extern void init_translations(char *filename); | ||
57 | extern int fsync_display(int duration); | ||
58 | extern int enable_fsync_tracer(void); | ||
59 | -extern int disable_fsync_tracer(void); | ||
60 | +extern void disable_fsync_tracer(void); | ||
61 | extern void update_list(void); | ||
62 | -- | ||
63 | 2.5.1 | ||
64 | |||