]> git.proxmox.com Git - mirror_zfs.git/commit
Fix undefined reference to `libzfs_fru_compare'
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Mar 2017 01:24:09 +0000 (18:24 -0700)
committerGitHub <noreply@github.com>
Fri, 24 Mar 2017 01:24:09 +0000 (18:24 -0700)
commitb25c5b0639e0d2281ccbd3b5766762dc3bebfc02
tree751c764722082aeb1d479209e53babab1e0f7629
parent55922e73b4294fc6c3014be27b61201b7962088c
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 <hutter2@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5402
Closes #5909
cmd/zed/agents/zfs_diagnosis.c
cmd/zed/agents/zfs_retire.c
lib/libzfs/libzfs_fru.c