Author: hselasky
Date: Wed Mar  4 09:58:39 2015
New Revision: 279587
URL: https://svnweb.freebsd.org/changeset/base/279587

Log:
  Define PTR_ALIGN() macro which will be needed coming Mellanox driver
  releases.
  
  Sponsored by: Mellanox Technologies
  MFC after:    3 days

Modified:
  head/sys/ofed/include/linux/kernel.h

Modified: head/sys/ofed/include/linux/kernel.h
==============================================================================
--- head/sys/ofed/include/linux/kernel.h        Wed Mar  4 09:32:59 2015        
(r279586)
+++ head/sys/ofed/include/linux/kernel.h        Wed Mar  4 09:58:39 2015        
(r279587)
@@ -67,6 +67,8 @@
 
 #undef ALIGN
 #define        ALIGN(x, y)             roundup2((x), (y))
+#undef PTR_ALIGN
+#define        PTR_ALIGN(p, a)         ((__typeof(p))ALIGN((uintptr_t)(p), 
(a)))
 #define        DIV_ROUND_UP            howmany
 #define        FIELD_SIZEOF(t, f)      sizeof(((t *)0)->f)
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to