summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/sysprof/files/0001-callgraph-Use-U64_TO_POINTER.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/sysprof/files/0001-callgraph-Use-U64_TO_POINTER.patch')
-rw-r--r--meta/recipes-kernel/sysprof/files/0001-callgraph-Use-U64_TO_POINTER.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-kernel/sysprof/files/0001-callgraph-Use-U64_TO_POINTER.patch b/meta/recipes-kernel/sysprof/files/0001-callgraph-Use-U64_TO_POINTER.patch
new file mode 100644
index 0000000000..ac1384c9b0
--- /dev/null
+++ b/meta/recipes-kernel/sysprof/files/0001-callgraph-Use-U64_TO_POINTER.patch
@@ -0,0 +1,29 @@
1From 05816e6f9cd65b2624bb04de65fdf61031c7017f Mon Sep 17 00:00:00 2001
2From: Jussi Kukkonen <jussi.kukkonen@intel.com>
3Date: Fri, 10 Jun 2016 14:01:54 +0300
4Subject: [PATCH] callgraph: Use U64_TO_POINTER
5
6This fixes a "cast to pointer from integer of different size" on i586.
7
8Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
9Upstream-Status: Pending
10---
11 lib/sp-callgraph-view.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/lib/sp-callgraph-view.c b/lib/sp-callgraph-view.c
15index 02cc17b..58315b0 100644
16--- a/lib/sp-callgraph-view.c
17+++ b/lib/sp-callgraph-view.c
18@@ -135,7 +135,7 @@ build_functions_store (StackNode *node,
19
20 gtk_list_store_append (state->store, &iter);
21 gtk_list_store_set (state->store, &iter,
22- COLUMN_NAME, (const gchar *)node->data,
23+ COLUMN_NAME, U64_TO_POINTER(node->data),
24 COLUMN_SELF, 100.0 * size / state->profile_size,
25 COLUMN_TOTAL, 100.0 * total / state->profile_size,
26 COLUMN_POINTER, node,
27--
282.1.4
29