Skip to content

Commit d390490

Browse files
committed
outlib: Make ol_add_sym_to being static
Otherwise getting building problem > output/outlib.c:197:6: error: no previous prototype for ‘ol_add_sym_to’ [-Werror=missing-prototypes] > 197 | void ol_add_sym_to(struct ol_symlist *syml, struct ol_symhead *head, > | ^~~~~~~~~~~~~ Signed-off-by: Cyrill Gorcunov <[email protected]>
1 parent 1b50fec commit d390490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

output/outlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ int32_t _ol_new_subsection(struct ol_sect *sect)
194194
* Insert a symbol into a list; need to use upcasting using container_of()
195195
* to walk the list later.
196196
*/
197-
void ol_add_sym_to(struct ol_symlist *syml, struct ol_symhead *head,
198-
uint64_t offset)
197+
static void ol_add_sym_to(struct ol_symlist *syml, struct ol_symhead *head,
198+
uint64_t offset)
199199
{
200200
syml->tree.key = offset;
201201
head->tree = rb_insert(head->tree, &syml->tree);

0 commit comments

Comments
 (0)