diff options
Diffstat (limited to 'meta/recipes-kernel/latencytop')
-rw-r--r-- | meta/recipes-kernel/latencytop/latencytop-0.5/0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch | 64 | ||||
-rw-r--r-- | meta/recipes-kernel/latencytop/latencytop_0.5.bb | 6 |
2 files changed, 68 insertions, 2 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 | |||
diff --git a/meta/recipes-kernel/latencytop/latencytop_0.5.bb b/meta/recipes-kernel/latencytop/latencytop_0.5.bb index cb0a3c5ed1..f31f1bb7ab 100644 --- a/meta/recipes-kernel/latencytop/latencytop_0.5.bb +++ b/meta/recipes-kernel/latencytop/latencytop_0.5.bb | |||
@@ -10,7 +10,9 @@ PR = "r3" | |||
10 | 10 | ||
11 | SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BP}.tar.gz/73bb3371c6ee0b0e68e25289027e865c/${BP}.tar.gz \ | 11 | SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/${BPN}/${BP}.tar.gz/73bb3371c6ee0b0e68e25289027e865c/${BP}.tar.gz \ |
12 | file://latencytop-makefile.patch \ | 12 | file://latencytop-makefile.patch \ |
13 | file://latencytop-fsync.patch" | 13 | file://latencytop-fsync.patch \ |
14 | file://0001-Rectify-the-function-signatures-to-fix-prototype-mis.patch \ | ||
15 | " | ||
14 | 16 | ||
15 | SRC_URI[md5sum] = "73bb3371c6ee0b0e68e25289027e865c" | 17 | SRC_URI[md5sum] = "73bb3371c6ee0b0e68e25289027e865c" |
16 | SRC_URI[sha256sum] = "9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef" | 18 | SRC_URI[sha256sum] = "9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef" |
@@ -21,7 +23,7 @@ PACKAGECONFIG[x11] = ",,gtk+" | |||
21 | 23 | ||
22 | EXTRA_OEMAKE_X = "${@bb.utils.contains('PACKAGECONFIG', 'x11', 'HAS_GTK_GUI=1', '', d)}" | 24 | EXTRA_OEMAKE_X = "${@bb.utils.contains('PACKAGECONFIG', 'x11', 'HAS_GTK_GUI=1', '', d)}" |
23 | 25 | ||
24 | CFLAGS += "${LDFLAGS}" | 26 | #CFLAGS += "${LDFLAGS}" |
25 | 27 | ||
26 | do_install() { | 28 | do_install() { |
27 | oe_runmake install DESTDIR=${D} ${EXTRA_OEMAKE_X} | 29 | oe_runmake install DESTDIR=${D} ${EXTRA_OEMAKE_X} |