From f74776ed75fc3947018f4260ce5ec25162cc0b8e Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sat, 19 Nov 2016 13:57:21 +0000 Subject: [PATCH] Make fdt_is_compatible a static function. It's only used in fdt_common.c. Sponsored by: ABT Systems Ltd --- sys/dev/fdt/fdt_common.c | 4 +++- sys/dev/fdt/fdt_common.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/fdt/fdt_common.c b/sys/dev/fdt/fdt_common.c index 783647b04d33..3e59fb977075 100644 --- a/sys/dev/fdt/fdt_common.c +++ b/sys/dev/fdt/fdt_common.c @@ -69,6 +69,8 @@ vm_offset_t fdt_immr_size; struct fdt_ic_list fdt_ic_list_head = SLIST_HEAD_INITIALIZER(fdt_ic_list_head); +static int fdt_is_compatible(phandle_t, const char *); + static int fdt_get_range_by_busaddr(phandle_t node, u_long addr, u_long *base, u_long *size) @@ -242,7 +244,7 @@ fdt_immr_addr(vm_offset_t immr_va) * Note the buffer has to be on the stack since malloc() is usually not * available in such cases either. */ -int +static int fdt_is_compatible(phandle_t node, const char *compatstr) { char buf[FDT_COMPAT_LEN]; diff --git a/sys/dev/fdt/fdt_common.h b/sys/dev/fdt/fdt_common.h index afddc310c127..81ce4bfae2ea 100644 --- a/sys/dev/fdt/fdt_common.h +++ b/sys/dev/fdt/fdt_common.h @@ -94,7 +94,6 @@ int fdt_get_phyaddr(phandle_t, device_t, int *, void **); int fdt_get_range(phandle_t, int, u_long *, u_long *); int fdt_immr_addr(vm_offset_t); int fdt_regsize(phandle_t, u_long *, u_long *); -int fdt_is_compatible(phandle_t, const char *); int fdt_is_compatible_strict(phandle_t, const char *); int fdt_is_enabled(phandle_t); int fdt_pm_is_enabled(phandle_t);