mirror of
https://github.com/dynup/kpatch
synced 2025-01-02 18:52:02 +00:00
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:
parent
adcd4581cc
commit
a343edcff0
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user