Date: Fri, 23 Oct 2015 14:52:05 +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: r289830 - head/sys/ofed/include/linux Message-ID: <201510231452.t9NEq5LP005721@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Oct 23 14:52:05 2015 New Revision: 289830 URL: https://svnweb.freebsd.org/changeset/base/289830 Log: Build fix for non-i386 and non-amd64 platforms. Sponsored by: Mellanox Technologies Modified: head/sys/ofed/include/linux/linux_compat.c Modified: head/sys/ofed/include/linux/linux_compat.c ============================================================================== --- head/sys/ofed/include/linux/linux_compat.c Fri Oct 23 14:26:06 2015 (r289829) +++ head/sys/ofed/include/linux/linux_compat.c Fri Oct 23 14:52:05 2015 (r289830) @@ -663,7 +663,11 @@ _ioremap_attr(vm_paddr_t phys_addr, unsi { void *addr; +#if defined(__i386__) || defined(__amd64__) addr = pmap_mapdev_attr(phys_addr, size, attr); +#else + addr = NULL; +#endif if (addr == NULL) return (NULL); vmmap_add(addr, size); @@ -679,7 +683,9 @@ iounmap(void *addr) vmmap = vmmap_remove(addr); if (vmmap == NULL) return; +#if defined(__i386__) || defined(__amd64__) pmap_unmapdev((vm_offset_t)addr, vmmap->vm_size); +#endif kfree(vmmap); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510231452.t9NEq5LP005721>