From a3143fafbf83868748c99aa14daf274de5549826 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Wed, 14 Nov 2018 15:24:49 +1100 Subject: Revert "annotations: add positions" This reverts commit baa1d2cf7894a32bf2f640ef40ebce561b2df565. Turns out this introduced memory badness. valgrind picks it up on x86, but it straight out SEGVs on x86. Signed-off-by: David Gibson --- dtc.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'dtc.h') diff --git a/dtc.h b/dtc.h index 8722cbc..cbe5415 100644 --- a/dtc.h +++ b/dtc.h @@ -158,7 +158,6 @@ struct property { struct property *next; struct label *labels; - struct srcpos *srcpos; }; struct node { @@ -178,7 +177,6 @@ struct node { struct label *labels; const struct bus_type *bus; - struct srcpos *srcpos; bool omit_if_unused, is_referenced; }; @@ -207,15 +205,13 @@ struct node { void add_label(struct label **labels, char *label); void delete_labels(struct label **labels); -struct property *build_property(char *name, struct data val, - struct srcpos *srcpos); +struct property *build_property(char *name, struct data val); struct property *build_property_delete(char *name); struct property *chain_property(struct property *first, struct property *list); struct property *reverse_properties(struct property *first); -struct node *build_node(struct property *proplist, struct node *children, - struct srcpos *srcpos); -struct node *build_node_delete(struct srcpos *srcpos); +struct node *build_node(struct property *proplist, struct node *children); +struct node *build_node_delete(void); struct node *name_node(struct node *node, char *name); struct node *omit_node_if_unused(struct node *node); struct node *reference_node(struct node *node); -- cgit v1.1