Date: Sat, 7 Mar 2015 18:46:22 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r279736 - stable/9/sys/ofed/include/linux Message-ID: <201503071846.t27IkMKQ097986@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Sat Mar 7 18:46:21 2015 New Revision: 279736 URL: https://svnweb.freebsd.org/changeset/base/279736 Log: MFC r279587: Define PTR_ALIGN() macro which will be needed coming Mellanox driver releases. Sponsored by: Mellanox Technologies Modified: stable/9/sys/ofed/include/linux/kernel.h Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/ofed/include/linux/kernel.h ============================================================================== --- stable/9/sys/ofed/include/linux/kernel.h Sat Mar 7 18:44:52 2015 (r279735) +++ stable/9/sys/ofed/include/linux/kernel.h Sat Mar 7 18:46:21 2015 (r279736) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503071846.t27IkMKQ097986>