From a343edcff09ab8886ec7200a7fdf5b658768da4b Mon Sep 17 00:00:00 2001 From: Jessica Yu Date: Sun, 10 Jul 2016 09:56:42 -0700 Subject: [PATCH] kpatch-elf: make is_bundleable() a static function Since is_bundleable() is only called once by kpatch_create_symbol_list(), and no other kpatch-build tool will need to call this function, we can simply make it static and local to kpatch-elf.c --- kpatch-build/kpatch-elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/kpatch-elf.c b/kpatch-build/kpatch-elf.c index 7c714ce..6e3bb3e 100644 --- a/kpatch-build/kpatch-elf.c +++ b/kpatch-build/kpatch-elf.c @@ -245,7 +245,7 @@ void kpatch_create_section_list(struct kpatch_elf *kelf) ERROR("expected NULL"); } -int is_bundleable(struct symbol *sym) +static int is_bundleable(struct symbol *sym) { if (sym->type == STT_FUNC && !strncmp(sym->sec->name, ".text.",6) &&