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

Hans Petter Selasky hselasky at FreeBSD.org
Tue Oct 30 16:32:53 UTC 2018


Author: hselasky
Date: Tue Oct 30 16:32:52 2018
New Revision: 339923
URL: https://svnweb.freebsd.org/changeset/base/339923

Log:
  Implement __KERNEL_DIV_ROUND_UP() function macro in the LinuxKPI.
  
  Submitted by:		Johannes Lundberg <johalun0 at gmail.com>
  MFC after:		3 days
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/kernel.h

Modified: head/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/kernel.h	Tue Oct 30 15:46:30 2018	(r339922)
+++ head/sys/compat/linuxkpi/common/include/linux/kernel.h	Tue Oct 30 16:32:52 2018	(r339923)
@@ -131,6 +131,7 @@
 #undef PTR_ALIGN
 #define	PTR_ALIGN(p, a)		((__typeof(p))ALIGN((uintptr_t)(p), (a)))
 #define	DIV_ROUND_UP(x, n)	howmany(x, n)
+#define	__KERNEL_DIV_ROUND_UP(x, n)	howmany(x, n)
 #define	DIV_ROUND_UP_ULL(x, n)	DIV_ROUND_UP((unsigned long long)(x), (n))
 #define	FIELD_SIZEOF(t, f)	sizeof(((t *)0)->f)
 


More information about the svn-src-head mailing list