Date: Tue, 14 Mar 2017 22:25:07 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315288 - head/sys/net Message-ID: <201703142225.v2EMP70D082618@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Tue Mar 14 22:25:07 2017 New Revision: 315288 URL: https://svnweb.freebsd.org/changeset/base/315288 Log: Change casting to a uintptr_t to be compatible with non-x86 architectures. Submitted by: Matt Macy <mmacy@nextbsd.org> Reported by: rpokala Sponsored by: Limelight Networks Modified: head/sys/net/iflib.c Modified: head/sys/net/iflib.c ============================================================================== --- head/sys/net/iflib.c Tue Mar 14 22:02:02 2017 (r315287) +++ head/sys/net/iflib.c Tue Mar 14 22:25:07 2017 (r315288) @@ -257,7 +257,7 @@ iflib_get_sctx(if_ctx_t ctx) #define IP_ALIGNED(m) ((((uintptr_t)(m)->m_data) & 0x3) == 0x2) #define CACHE_PTR_INCREMENT (CACHE_LINE_SIZE/sizeof(void*)) -#define CACHE_PTR_NEXT(ptr) ((void *)(((vm_paddr_t)(ptr)+CACHE_LINE_SIZE-1) & (CACHE_LINE_SIZE-1))) +#define CACHE_PTR_NEXT(ptr) ((void *)(((uintptr_t)(ptr)+CACHE_LINE_SIZE-1) & (CACHE_LINE_SIZE-1))) #define LINK_ACTIVE(ctx) ((ctx)->ifc_link_state == LINK_STATE_UP) #define CTX_IS_VF(ctx) ((ctx)->ifc_sctx->isc_flags & IFLIB_IS_VF)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703142225.v2EMP70D082618>