Date: Wed, 4 Mar 2015 09:58:40 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279587 - head/sys/ofed/include/linux Message-ID: <201503040958.t249wepT062702@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503040958.t249wepT062702>