Author: hselasky
Date: Thu Nov  1 14:43:34 2018
New Revision: 339997
URL: https://svnweb.freebsd.org/changeset/base/339997

Log:
  MFC r339923:
  Implement __KERNEL_DIV_ROUND_UP() function macro in the LinuxKPI.
  
  Submitted by:         Johannes Lundberg <[email protected]>
  Sponsored by:         Mellanox Technologies

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h Thu Nov  1 
14:42:14 2018        (r339996)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/kernel.h Thu Nov  1 
14:43:34 2018        (r339997)
@@ -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)
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to