diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2019-03-29 13:59:04 +1100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-02 07:52:19 +0100 |
commit | 3d4c1c8975e8b072024315bf32499abbd7b21371 (patch) | |
tree | 6519a360ae1236fcea1d251e32bb5ef505a52b16 /cpukit/dtc | |
parent | libfdt: Add phandle generation helper (diff) | |
download | rtems-3d4c1c8975e8b072024315bf32499abbd7b21371.tar.bz2 |
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 'cpukit/dtc')
-rw-r--r-- | cpukit/dtc/libfdt/fdt_ro.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cpukit/dtc/libfdt/fdt_ro.c b/cpukit/dtc/libfdt/fdt_ro.c index 817ac39099..2c393a100b 100644 --- a/cpukit/dtc/libfdt/fdt_ro.c +++ b/cpukit/dtc/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; |