diff options
Diffstat (limited to 'scripts/dtc')
-rw-r--r-- | scripts/dtc/checks.c | 2 | ||||
-rw-r--r-- | scripts/dtc/dtc.h | 3 | ||||
-rw-r--r-- | scripts/dtc/flattree.c | 3 | ||||
-rw-r--r-- | scripts/dtc/libfdt/fdt_ro.c | 2 | ||||
-rw-r--r-- | scripts/dtc/libfdt/libfdt.h | 2 | ||||
-rw-r--r-- | scripts/dtc/livetree.c | 1 | ||||
-rw-r--r-- | scripts/dtc/srcpos.c | 3 | ||||
-rw-r--r-- | scripts/dtc/srcpos.h | 1 | ||||
-rw-r--r-- | scripts/dtc/treesource.c | 1 | ||||
-rw-r--r-- | scripts/dtc/util.c | 1 |
10 files changed, 0 insertions, 19 deletions
diff --git a/scripts/dtc/checks.c b/scripts/dtc/checks.c index c35aa6f8863..2feec44a0f7 100644 --- a/scripts/dtc/checks.c +++ b/scripts/dtc/checks.c @@ -111,7 +111,6 @@ static inline void PRINTF(5, 6) check_msg(struct check *c, struct dt_info *dti, check_msg((c), dti, node, prop, __VA_ARGS__); \ } while (0) - static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node) { struct node *child; @@ -1076,7 +1075,6 @@ static void check_obsolete_chosen_interrupt_controller(struct check *c, if (node != dt) return; - chosen = get_node_by_path(dt, "/chosen"); if (!chosen) return; diff --git a/scripts/dtc/dtc.h b/scripts/dtc/dtc.h index 6d667701ab6..39c50a2c4fc 100644 --- a/scripts/dtc/dtc.h +++ b/scripts/dtc/dtc.h @@ -65,7 +65,6 @@ extern int auto_label_aliases; /* auto generate labels -> aliases */ typedef uint32_t cell_t; - #define streq(a, b) (strcmp((a), (b)) == 0) #define strstarts(s, prefix) (strncmp((s), (prefix), strlen(prefix)) == 0) #define strprefixeq(a, n, b) (strlen(b) == (n) && (memcmp(a, b, n) == 0)) @@ -92,7 +91,6 @@ struct data { struct marker *markers; }; - #define empty_data ((struct data){ 0 /* all .members = 0 or NULL */ }) #define for_each_marker(m) \ @@ -252,7 +250,6 @@ struct reserve_info *chain_reserve_entry(struct reserve_info *first, struct reserve_info *add_reserve_entry(struct reserve_info *list, struct reserve_info *new); - struct dt_info { unsigned int dtsflags; struct reserve_info *reservelist; diff --git a/scripts/dtc/flattree.c b/scripts/dtc/flattree.c index 8d268fb785d..086c5abf10f 100644 --- a/scripts/dtc/flattree.c +++ b/scripts/dtc/flattree.c @@ -695,7 +695,6 @@ static struct property *flat_read_property(struct inbuf *dtbuf, return build_property(name, val); } - static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb) { struct reserve_info *reservelist = NULL; @@ -724,7 +723,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb) return reservelist; } - static char *nodename_from_path(const char *ppath, const char *cpath) { int plen; @@ -806,7 +804,6 @@ static struct node *unflatten_tree(struct inbuf *dtbuf, return node; } - struct dt_info *dt_from_blob(const char *fname) { FILE *f; diff --git a/scripts/dtc/libfdt/fdt_ro.c b/scripts/dtc/libfdt/fdt_ro.c index 63eaf57f43a..d65656aaa8b 100644 --- a/scripts/dtc/libfdt/fdt_ro.c +++ b/scripts/dtc/libfdt/fdt_ro.c @@ -421,7 +421,6 @@ static const struct fdt_property *fdt_get_property_namelen_(const void *fdt, return NULL; } - const struct fdt_property *fdt_get_property_namelen(const void *fdt, int offset, const char *name, @@ -439,7 +438,6 @@ const struct fdt_property *fdt_get_property_namelen(const void *fdt, NULL); } - const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, const char *name, int *lenp) diff --git a/scripts/dtc/libfdt/libfdt.h b/scripts/dtc/libfdt/libfdt.h index d706f85962b..16ec53e78b8 100644 --- a/scripts/dtc/libfdt/libfdt.h +++ b/scripts/dtc/libfdt/libfdt.h @@ -1162,7 +1162,6 @@ int fdt_address_cells(const void *fdt, int nodeoffset); */ int fdt_size_cells(const void *fdt, int nodeoffset); - /**********************************************************************/ /* Write-in-place functions */ /**********************************************************************/ @@ -1696,7 +1695,6 @@ static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, #define fdt_setprop_string(fdt, nodeoffset, name, str) \ fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1) - /** * fdt_setprop_empty - set a property to an empty value * @fdt: pointer to the device tree blob diff --git a/scripts/dtc/livetree.c b/scripts/dtc/livetree.c index 6e4c367f54b..ba06ef348be 100644 --- a/scripts/dtc/livetree.c +++ b/scripts/dtc/livetree.c @@ -631,7 +631,6 @@ uint32_t guess_boot_cpuid(struct node *tree) if (!cpus) return 0; - bootcpu = cpus->children; if (!bootcpu) return 0; diff --git a/scripts/dtc/srcpos.c b/scripts/dtc/srcpos.c index c2978611450..0ad89e2af60 100644 --- a/scripts/dtc/srcpos.c +++ b/scripts/dtc/srcpos.c @@ -33,7 +33,6 @@ struct search_path { /* This is the list of directories that we search for source files */ static struct search_path *search_path_head, **search_path_tail; - static char *get_dirname(const char *path) { const char *slash = strrchr(path, '/'); @@ -56,7 +55,6 @@ struct srcfile_state *current_srcfile; /* = NULL */ #define MAX_SRCFILE_DEPTH (100) static int srcfile_depth; /* = 0 */ - /** * Try to open a file in a given directory. * @@ -250,7 +248,6 @@ srcpos_string(struct srcpos *pos) if (pos->file && pos->file->name) fname = pos->file->name; - if (pos->first_line != pos->last_line) xasprintf(&pos_str, "%s:%d.%d-%d.%d", fname, pos->first_line, pos->first_column, diff --git a/scripts/dtc/srcpos.h b/scripts/dtc/srcpos.h index 5db32a723e1..fcd9937a911 100644 --- a/scripts/dtc/srcpos.h +++ b/scripts/dtc/srcpos.h @@ -95,7 +95,6 @@ struct srcpos { } \ } while (0) - /* * Fictional source position used for IR nodes that are * created without otherwise knowing a true source position. diff --git a/scripts/dtc/treesource.c b/scripts/dtc/treesource.c index b36cb41902a..8c8b914698d 100644 --- a/scripts/dtc/treesource.c +++ b/scripts/dtc/treesource.c @@ -262,7 +262,6 @@ static void write_tree_source_node(FILE *f, struct node *tree, int level) fprintf(f, "};\n"); } - void dt_to_source(FILE *f, struct dt_info *dti) { struct reserve_info *re; diff --git a/scripts/dtc/util.c b/scripts/dtc/util.c index 9953c32a024..23334d39bb6 100644 --- a/scripts/dtc/util.c +++ b/scripts/dtc/util.c @@ -325,7 +325,6 @@ int utilfdt_write_err(const char *filename, const void *blob) return ret < 0 ? -ret : 0; } - int utilfdt_write(const char *filename, const void *blob) { int ret = utilfdt_write_err(filename, blob); |