svn commit: r279737 - stable/10/sys/ofed/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Sat Mar 7 18:48:01 UTC 2015


Author: hselasky
Date: Sat Mar  7 18:48:00 2015
New Revision: 279737
URL: https://svnweb.freebsd.org/changeset/base/279737

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

Modified:
  stable/10/sys/ofed/include/linux/kernel.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ofed/include/linux/kernel.h
==============================================================================
--- stable/10/sys/ofed/include/linux/kernel.h	Sat Mar  7 18:46:21 2015	(r279736)
+++ stable/10/sys/ofed/include/linux/kernel.h	Sat Mar  7 18:48:00 2015	(r279737)
@@ -63,6 +63,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	printk(X...)		printf(X)


More information about the svn-src-all mailing list