]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r364027 by arichardson: Fix linker error in libuutil with recent LLVM
authorEugene Grosbein <eugen@FreeBSD.org>
Sun, 6 Dec 2020 16:22:26 +0000 (16:22 +0000)
committerEugene Grosbein <eugen@FreeBSD.org>
Sun, 6 Dec 2020 16:22:26 +0000 (16:22 +0000)
commit30ec3f368dd7554635211cef963a054e6aa5b56f
tree70e16478069e0f72c39c5221ae703cf9084eaad2
parentb4d9984d0d2ab95c41a4acbe1da139e0681c0c0f
MFC r364027 by arichardson: Fix linker error in libuutil with recent LLVM

This also fixes nanobsd-style build (cross-compiling).
Original commit log:

  Not marking the function as static can result in a linker error:
  undefined reference to __assfail [--no-allow-shlib-undefined]
  I noticed this error after updating our CHERI LLVM to the latest upstream
  LLVM HEAD revision.

  This change effectively reverts r329984 and marks dmu_buf_init_user as
  static (which keeps the GCC build happy).

Reviewed By: #zfs, asomers, freqlabs, mav
Differential Revision: https://reviews.freebsd.org/D25663
sys/cddl/compat/opensolaris/sys/assfail.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dmu.h