diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2019-03-29 13:59:04 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-03-29 13:59:04 +1100 |
commit | cca6546244cba043d8c17c1a1c5224393b544066 (patch) | |
tree | 0f1094469f6f27680581a817eb3d4e8248176f3e /libfdt/fdt_ro.c | |
parent | 730875016a6a94bd43e4e88b34a73a814e1051e7 (diff) | |
download | device-tree-compiler-cca6546244cba043d8c17c1a1c5224393b544066.tar.gz |
libfdt: Make fdt_get_max_phandle() an inline
It's now a trivial wrapper around fdt_find_max_phandle() so we might as
well inline it. We also remove it from the versioning linker script.
Theoretically, that's a breaking ABI change except that we haven't yet
released a version with it exposed in the shared object, so we can get
away with it.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt_ro.c')
-rw-r--r-- | libfdt/fdt_ro.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libfdt/fdt_ro.c b/libfdt/fdt_ro.c index 817ac39..2c393a1 100644 --- a/libfdt/fdt_ro.c +++ b/libfdt/fdt_ro.c @@ -172,18 +172,6 @@ int fdt_find_max_phandle(const void *fdt, uint32_t *phandle) return 0; } -uint32_t fdt_get_max_phandle(const void *fdt) -{ - uint32_t phandle; - int err; - - err = fdt_find_max_phandle(fdt, &phandle); - if (err < 0) - return (uint32_t)-1; - - return phandle; -} - int fdt_generate_phandle(const void *fdt, uint32_t *phandle) { uint32_t max; |