From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jun 2017 07:31:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,347,1493708400"; d="scan'208";a="981686855" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.28]) by orsmga003.jf.intel.com with SMTP; 16 Jun 2017 07:31:30 -0700 Received: by (sSMTP sendmail emulation); Fri, 16 Jun 2017 15:31:29 +0100 Date: Fri, 16 Jun 2017 15:31:29 +0100 From: Bruce Richardson To: Thomas Monjalon Cc: ajit.khaparde@broadcom.com, fangfangx.wei@intel.com, dev@dpdk.org 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 Content-Disposition: inline In-Reply-To: <20170615175055.27032-1-thomas@monjalon.net> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.1 (2017-04-11) Subject: Re: [dpdk-dev] [PATCH] mem: support page locking on FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 14:31:34 -0000 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