[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/7] create-diff-object: propagate child symbol changes



From: Artem Savkov <asavkov@xxxxxxxxxx>

Propagate child symbol changes to it's parent.

Signed-off-by: Artem Savkov <asavkov@xxxxxxxxxx>
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
 create-diff-object.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/create-diff-object.c b/create-diff-object.c
index b041d94d9723..dd5466bff6ce 100644
--- a/create-diff-object.c
+++ b/create-diff-object.c
@@ -821,8 +821,14 @@ static void kpatch_compare_sections(struct list_head 
*seclist)
                        if (sec->base->sym && sec->base->sym->status != CHANGED)
                                sec->base->sym->status = sec->status;
                } else {
-                       if (sec->sym && sec->sym->status != CHANGED)
-                               sec->sym->status = sec->status;
+                       struct symbol *sym = sec->sym;
+
+                       if (sym && sym->status != CHANGED)
+                               sym->status = sec->status;
+
+                       if (sym && sym->child && sym->status == SAME &&
+                           sym->child->sec->status == CHANGED)
+                               sym->status = CHANGED;
                }
        }
 }
-- 
2.46.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.