summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2017-03-23 18:24:09 -0700
committerGitHub <[email protected]>2017-03-23 18:24:09 -0700
commitb25c5b0639e0d2281ccbd3b5766762dc3bebfc02 (patch)
tree751c764722082aeb1d479209e53babab1e0f7629 /lib
parent55922e73b4294fc6c3014be27b61201b7962088c (diff)
Fix undefined reference to `libzfs_fru_compare'
Add trivial libzfs_fru_compare() function which can be used when HAVE_LIBTOPO is not defined. The only caller is find_vdev() and this function should never be reached because search_fru must be NULL unless HAVE_LIBTOPO is defined. Rename _HAS_FMD_TOPO to existing HAVE_LIBTOPO which was originally added for this purpose. This macro will never be defined. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #5402 Closes #5909
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_fru.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libzfs/libzfs_fru.c b/lib/libzfs/libzfs_fru.c
index 6be927f80..bb278aa7b 100644
--- a/lib/libzfs/libzfs_fru.c
+++ b/lib/libzfs/libzfs_fru.c
@@ -456,6 +456,15 @@ libzfs_fru_clear(libzfs_handle_t *hdl, boolean_t final)
#else /* HAVE_LIBTOPO */
/*
+ * Compare to two FRUs, ignoring any authority information.
+ */
+boolean_t
+libzfs_fru_compare(libzfs_handle_t *hdl, const char *a, const char *b)
+{
+ return (B_FALSE);
+}
+
+/*
* Clear memory associated with the FRU hash.
*/
void