When increasing warning level, we see that of_find_device_by_node_path lacks a prototype despite having external linkage and being exported in the symbols file. On the other hand, scan_proc_dir has external linkage, but is only ever needed internally, so let's give it internal linkage.
Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de> --- src/crc32.c | 1 + src/dt/dt.h | 1 + src/libdt.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/crc32.c b/src/crc32.c index 8d4dddcf6129..8273d3465f6f 100644 --- a/src/crc32.c +++ b/src/crc32.c @@ -8,6 +8,7 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ +#include <dt/common.h> #include <stdint.h> /* ======================================================================== diff --git a/src/dt/dt.h b/src/dt/dt.h index 4ae24ba8bf7a..6ce95d91da87 100644 --- a/src/dt/dt.h +++ b/src/dt/dt.h @@ -121,6 +121,7 @@ extern struct device_node *of_find_node_by_type(struct device_node *from, const char *type); extern struct device_node *of_find_compatible_node(struct device_node *from, const char *type, const char *compat); +extern struct udev_device *of_find_device_by_node_path(const char *of_full_path); extern const struct of_device_id *of_match_node( const struct of_device_id *matches, const struct device_node *node); extern struct device_node *of_find_matching_node_and_match( diff --git a/src/libdt.c b/src/libdt.c index 59e76d336d8d..a833c582dfbf 100644 --- a/src/libdt.c +++ b/src/libdt.c @@ -1938,7 +1938,7 @@ int of_device_disable_path(const char *path) return of_device_disable(node); } -int scan_proc_dir(struct device_node *node, const char *path) +static int scan_proc_dir(struct device_node *node, const char *path) { DIR *dir; struct dirent *dirent; -- 2.39.2