svn commit: r366996 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Sat Oct 24 13:16:11 UTC 2020


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_ */


More information about the svn-src-head mailing list