kpatch-elf: convert functions to static

These functions are only called locally, convert them to static.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
Josh Poimboeuf 2022-05-11 16:57:12 -07:00
parent 0c5a1e7753
commit 3b63456817
2 changed files with 3 additions and 6 deletions

View File

@ -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;

View File

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