mirror of https://github.com/dynup/kpatch
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:
parent
0c5a1e7753
commit
3b63456817
|
@ -164,7 +164,7 @@ int offset_of_string(struct list_head *list, char *name)
|
||||||
return index;
|
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;
|
int index = 0, skip = 0;
|
||||||
struct rela *rela;
|
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;
|
Elf_Scn *scn = NULL;
|
||||||
struct section *sec;
|
struct section *sec;
|
||||||
|
@ -277,7 +277,7 @@ void kpatch_create_section_list(struct kpatch_elf *kelf)
|
||||||
ERROR("expected NULL");
|
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 section *symtab;
|
||||||
struct symbol *sym;
|
struct symbol *sym;
|
||||||
|
|
|
@ -160,9 +160,6 @@ int offset_of_string(struct list_head *list, char *name);
|
||||||
/*************
|
/*************
|
||||||
* Functions
|
* 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);
|
struct kpatch_elf *kpatch_elf_open(const char *name);
|
||||||
void kpatch_dump_kelf(struct kpatch_elf *kelf);
|
void kpatch_dump_kelf(struct kpatch_elf *kelf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue