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
This commit is contained in:
Jessica Yu 2016-07-10 09:56:42 -07:00
parent adcd4581cc
commit a343edcff0

View File

@ -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) &&