summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/libcomps/libcomps/0001-Make-__comps_objmrtree_all-static-inline.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/libcomps/libcomps/0001-Make-__comps_objmrtree_all-static-inline.patch')
-rw-r--r--meta/recipes-devtools/libcomps/libcomps/0001-Make-__comps_objmrtree_all-static-inline.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libcomps/libcomps/0001-Make-__comps_objmrtree_all-static-inline.patch b/meta/recipes-devtools/libcomps/libcomps/0001-Make-__comps_objmrtree_all-static-inline.patch
new file mode 100644
index 0000000000..88469fb331
--- /dev/null
+++ b/meta/recipes-devtools/libcomps/libcomps/0001-Make-__comps_objmrtree_all-static-inline.patch
@@ -0,0 +1,35 @@
1From 91a324f8771818b81017fdf4daaad0c8c4b6987c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 20 Mar 2017 11:38:54 -0700
4Subject: [PATCH] Make __comps_objmrtree_all() static inline
5
6This helps compilers to scope the symbol correctly
7and apply the inlining optimizations, clang e.g.
8emits the functions and calls in code which is
9suboptimal, therefore give a little help to compiler
10this function is not used anywhere else to have
11a global scope.
12
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 libcomps/src/comps_objmradix.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/libcomps/src/comps_objmradix.c b/libcomps/src/comps_objmradix.c
21index 9be6648..55f7793 100644
22--- a/libcomps/src/comps_objmradix.c
23+++ b/libcomps/src/comps_objmradix.c
24@@ -604,7 +604,7 @@ inline void comps_objmrtree_pair_destroy_v(void * pair) {
25 free(pair);
26 }
27
28-inline COMPS_HSList* __comps_objmrtree_all(COMPS_ObjMRTree * rt, char keyvalpair) {
29+static inline COMPS_HSList* __comps_objmrtree_all(COMPS_ObjMRTree * rt, char keyvalpair) {
30 COMPS_HSList *to_process, *ret;
31 COMPS_HSListItem *hsit, *oldit;
32 size_t x;
33--
342.12.0
35