diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2018-11-14 15:24:49 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-11-14 15:24:49 +1100 |
commit | a3143fafbf83868748c99aa14daf274de5549826 (patch) | |
tree | 20ba91881fe53edc26d96ae5b80d0528a924b8e4 /dtc.h | |
parent | 403cc79f06a135aee00f35cea975f068a72dbd92 (diff) | |
download | dtc-a3143fafbf83868748c99aa14daf274de5549826.zip dtc-a3143fafbf83868748c99aa14daf274de5549826.tar.gz dtc-a3143fafbf83868748c99aa14daf274de5549826.tar.bz2 |
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 <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.h')
-rw-r--r-- | dtc.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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); |