]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
common: fdt: Make fdt_del_subnodes/fdt_del_partition static
authorMichal Simek <michal.simek@xilinx.com>
Tue, 31 Jul 2018 12:31:04 +0000 (14:31 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 7 Aug 2018 09:03:43 +0000 (11:03 +0200)
These functions are only called in this file that's why make them static
to keep static analysers happy.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/fdt_support.c

index 1bdd03fddab138b08beae9408ca26b634c8825c0..34d2bd59c485905fe2d60817aaf9af8b39d80d96 100644 (file)
@@ -725,7 +725,7 @@ struct reg_cell {
        unsigned int r1;
 };
 
-int fdt_del_subnodes(const void *blob, int parent_offset)
+static int fdt_del_subnodes(const void *blob, int parent_offset)
 {
        int off, ndepth;
        int ret;
@@ -750,7 +750,7 @@ int fdt_del_subnodes(const void *blob, int parent_offset)
        return 0;
 }
 
-int fdt_del_partitions(void *blob, int parent_offset)
+static int fdt_del_partitions(void *blob, int parent_offset)
 {
        const void *prop;
        int ndepth = 0;