From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] kni: fix build on Linux < 3.14 Date: Fri, 26 Oct 2018 23:42:43 +0100 Message-ID: <809e8e42-0deb-e53d-f5e4-acd4bc2f5d0b@intel.com> References: <20181026214027.29465-1-thomas@monjalon.net> <4880956.RWMF3eIYHy@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, phil.yang@arm.com, gavin.hu@arm.com, honnappa.nagarahalli@arm.com To: Thomas Monjalon Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 60355239 for ; Sat, 27 Oct 2018 00:42:53 +0200 (CEST) In-Reply-To: <4880956.RWMF3eIYHy@xps> Content-Language: en-US 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 10/26/2018 10:56 PM, Thomas Monjalon wrote: > 26/10/2018 23:40, Thomas Monjalon: >> The atomic functions smp_load_acquire() and smp_store_release() >> were introduced in Linux 3.14. Older kernels miss the functions: >> >> kni_fifo.h:19:2: error: >> implicit declaration of function ‘smp_load_acquire’ >> kni_fifo.h:30:2: error: >> implicit declaration of function ‘smp_store_release’ >> >> The fallback is to drop the atomic barrier, as it was before >> the commit below. >> >> Fixes: 711859cd0d07 ("kni: fix kernel FIFO synchronization") >> >> Signed-off-by: Thomas Monjalon Tested-by: Ferruh Yigit