Author: hselasky Date: Sat Oct 24 13:16:10 2020 New Revision: 366996 URL: https://svnweb.freebsd.org/changeset/base/366996
Log: Implement xa_init() in the LinuxKPI as a wrapper for xa_init_flags(). MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Modified: head/sys/compat/linuxkpi/common/include/linux/xarray.h Modified: head/sys/compat/linuxkpi/common/include/linux/xarray.h ============================================================================== --- head/sys/compat/linuxkpi/common/include/linux/xarray.h Sat Oct 24 13:07:50 2020 (r366995) +++ head/sys/compat/linuxkpi/common/include/linux/xarray.h Sat Oct 24 13:16:10 2020 (r366996) @@ -91,4 +91,10 @@ xa_err(void *ptr) return (PTR_ERR_OR_ZERO(ptr)); } +static inline void +xa_init(struct xarray *xa) +{ + xa_init_flags(xa, 0); +} + #endif /* _LINUX_XARRAY_H_ */ _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"