From 9b038039ddaf4b1b3536dfa1b1bb57991233be2e Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Tue, 15 Apr 2014 16:48:41 -0500 Subject: [PATCH] create-diff-object: removed unused function kpatch_find_changed_functions isn't called by anybody, so remove it. --- kpatch-build/create-diff-object.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/kpatch-build/create-diff-object.c b/kpatch-build/create-diff-object.c index c5a8712..f4dd7eb 100644 --- a/kpatch-build/create-diff-object.c +++ b/kpatch-build/create-diff-object.c @@ -738,26 +738,6 @@ void kpatch_verify_patchability(struct kpatch_elf *kelf) DIFF_FATAL("changed section %s not selected for inclusion", sec->name); } -int kpatch_find_changed_functions(struct kpatch_elf *kelf) -{ - struct symbol *sym; - int i, changed = 0; - - for_each_symbol(i, sym, &kelf->symbols) { - if (sym->type != STT_FUNC) - continue; - if (sym->status == CHANGED) { - changed = 1; - printf("function %s has changed\n",sym->name); - } - } - - if (!changed) - printf("no changes found\n"); - - return changed; -} - #define inc_printf(fmt, ...) \ log_debug("%*s" fmt, recurselevel, "", ##__VA_ARGS__);