blob: 88469fb3313782a10cbb5a137d80702242f6d644 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 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