[PATCH] yamltree: skip generated __symbols__, __local_fixups__ and __fixups__ nodes

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



The generated __symbols__, __local_fixups__ and __fixups__ nodes don't
have markers, so we can't generate YAML output for them. We don't care
about them for YAML output anyways, so just skip over them.

Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
 yamltree.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/yamltree.c b/yamltree.c
index a00285a5a9ec..7b759448ff90 100644
--- a/yamltree.c
+++ b/yamltree.c
@@ -205,6 +205,10 @@ static void yaml_tree(struct node *tree, yaml_emitter_t *emitter)
 
 	/* Loop over all the children, emitting them into the map */
 	for_each_child(tree, child) {
+		if (streq(child->name, "__symbols__") ||
+		    streq(child->name, "__local_fixups__") ||
+		    streq(child->name, "__fixups__"))
+			continue;
 		yaml_scalar_event_initialize(&event, NULL,
 			(yaml_char_t *)YAML_STR_TAG, (yaml_char_t*)child->name,
 			strlen(child->name), 1, 0, YAML_PLAIN_SCALAR_STYLE);
-- 
2.19.1




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux