]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
libfdt: Drop inlining of fdt_path_offset()
authorSimon Glass <sjg@chromium.org>
Sun, 2 Oct 2016 23:59:30 +0000 (17:59 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Oct 2016 20:12:40 +0000 (14:12 -0600)
The fdt_path_offset() function is not inlined in upstream libfdt. Adjust
U-Boot's version to match.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/libfdt.h
lib/libfdt/fdt_ro.c

index 398748c5c4953f3d5a1ca4714a216d315b033073..8746790a25352fe297bb1b60f1bc3cd6e8485f06 100644 (file)
@@ -410,10 +410,7 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen);
  *     -FDT_ERR_BADSTRUCTURE,
  *     -FDT_ERR_TRUNCATED, standard meanings.
  */
-static inline int fdt_path_offset(const void *fdt, const char *path)
-{
-       return fdt_path_offset_namelen(fdt, path, strlen(path));
-}
+int fdt_path_offset(const void *fdt, const char *path);
 
 /**
  * fdt_get_name - retrieve the name of a given node
index e38aaa4ccf9ace9f3544a291180dcc359f9ebedb..7e894b742b456a9fef7f22227c2781ce76ebe24b 100644 (file)
@@ -204,6 +204,11 @@ int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen)
        return offset;
 }
 
+int fdt_path_offset(const void *fdt, const char *path)
+{
+       return fdt_path_offset_namelen(fdt, path, strlen(path));
+}
+
 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len)
 {
        const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset);