From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] mem: support page locking on FreeBSD Date: Fri, 16 Jun 2017 15:31:29 +0100 Message-ID: <20170616143128.GA83676@bricha3-MOBL3.ger.corp.intel.com> References: <067B569323FEB248B5CB480E1954F4346F4155FA@SHSMSX101.ccr.corp.intel.com> <20170615175055.27032-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ajit.khaparde@broadcom.com, fangfangx.wei@intel.com, dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0A3B92BB9 for ; Fri, 16 Jun 2017 16:31:33 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170615175055.27032-1-thomas@monjalon.net> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jun 15, 2017 at 07:50:55PM +0200, Thomas Monjalon wrote: > The function rte_mem_lock_page() was added for Linux only. > The file eal_common_memory.c is a better place to make it > available in FreeBSD also. > > The issue is seen when trying to compile bnxt on FreeBSD: > bnxt_hwrm.c: undefined reference to `rte_mem_lock_page' > > Fixes: 3097de6e6bfb ("mem: get physical address of any pointer") > > Reported-by: Fangfang Wei > Signed-off-by: Thomas Monjalon > --- This fixes gcc and clang errors on FreeBSD so Acked-by: Bruce Richardson