]> xenbits.xensource.com Git - livepatch-build-tools.git/commitdiff
create-diff-object: propagate ignore.functions to children
authorArtem Savkov <asavkov@redhat.com>
Mon, 9 Jul 2018 13:26:12 +0000 (15:26 +0200)
committerRoger Pau Monne <roger.pau@citrix.com>
Tue, 21 Jan 2025 13:13:29 +0000 (14:13 +0100)
Add child symbols to .kpatch.ignore.functions in case their parents are
added to the list.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
create-diff-object.c

index 8175cba5586f5dca28e892e2464960cf895cfaf3..8ed4a2e95e5e4d846ba7946ef03b33d6c98ca3e4 100644 (file)
@@ -936,6 +936,10 @@ static void kpatch_mark_ignored_functions_same(struct kpatch_elf *kelf)
                        log_normal("NOTICE: no change detected in function %s, unnecessary KPATCH_IGNORE_FUNCTION()?\n", rela->sym->name);
                rela->sym->status = SAME;
                rela->sym->sec->status = SAME;
+
+               if (rela->sym->child)
+                       rela->sym->child->status = SAME;
+
                if (rela->sym->sec->secsym)
                        rela->sym->sec->secsym->status = SAME;
                if (rela->sym->sec->rela)