[PATCH v3 1/2] Make type_marker_length helper public

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



Make type_marker_length available to other users of TYPE_* markers.

Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
v3:
- Don't inline

 dtc.h        | 2 ++
 treesource.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/dtc.h b/dtc.h
index 51c03ef64dbe..bb769d2a8e56 100644
--- a/dtc.h
+++ b/dtc.h
@@ -108,6 +108,8 @@ struct data {
 	for_each_marker(m) \
 		if ((m)->type == (t))
 
+size_t type_marker_length(struct marker *m);
+
 void data_free(struct data d);
 
 struct data data_grow_for(struct data d, int xlen);
diff --git a/treesource.c b/treesource.c
index 53e62036ad0e..f2874f1d1465 100644
--- a/treesource.c
+++ b/treesource.c
@@ -145,7 +145,7 @@ static struct marker *next_type_marker(struct marker *m)
 	return m;
 }
 
-static size_t type_marker_length(struct marker *m)
+size_t type_marker_length(struct marker *m)
 {
 	struct marker *next = next_type_marker(m->next);
 
-- 
2.17.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