diff --git a/kpatch-build/kpatch-elf.c b/kpatch-build/kpatch-elf.c index c6ef6f1..1de8613 100644 --- a/kpatch-build/kpatch-elf.c +++ b/kpatch-build/kpatch-elf.c @@ -164,7 +164,7 @@ int offset_of_string(struct list_head *list, char *name) return index; } -void kpatch_create_rela_list(struct kpatch_elf *kelf, struct section *sec) +static void kpatch_create_rela_list(struct kpatch_elf *kelf, struct section *sec) { int index = 0, skip = 0; struct rela *rela; @@ -223,7 +223,7 @@ void kpatch_create_rela_list(struct kpatch_elf *kelf, struct section *sec) } } -void kpatch_create_section_list(struct kpatch_elf *kelf) +static void kpatch_create_section_list(struct kpatch_elf *kelf) { Elf_Scn *scn = NULL; struct section *sec; @@ -277,7 +277,7 @@ void kpatch_create_section_list(struct kpatch_elf *kelf) ERROR("expected NULL"); } -void kpatch_create_symbol_list(struct kpatch_elf *kelf) +static void kpatch_create_symbol_list(struct kpatch_elf *kelf) { struct section *symtab; struct symbol *sym; diff --git a/kpatch-build/kpatch-elf.h b/kpatch-build/kpatch-elf.h index abc6efd..fbaa703 100644 --- a/kpatch-build/kpatch-elf.h +++ b/kpatch-build/kpatch-elf.h @@ -160,9 +160,6 @@ int offset_of_string(struct list_head *list, char *name); /************* * Functions * **********/ -void kpatch_create_rela_list(struct kpatch_elf *kelf, struct section *sec); -void kpatch_create_section_list(struct kpatch_elf *kelf); -void kpatch_create_symbol_list(struct kpatch_elf *kelf); struct kpatch_elf *kpatch_elf_open(const char *name); void kpatch_dump_kelf(struct kpatch_elf *kelf);