From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B11FFA317C for ; Thu, 17 Oct 2019 17:07:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6CADF1E8F5; Thu, 17 Oct 2019 17:07:03 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id F29201E8EF for ; Thu, 17 Oct 2019 17:07:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571324820; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hTgN01QKTvwnuZL48z6EYrlFFPS6G3l5nYZ9aAMVEeA=; b=BgehgxLACrAGAc60tLNXQ1Sy+EXfYySNV5yy42qp8qfpfozJJltov2yi44ISSGug5EwPPf xAkBlt8Jmyl+VyzRpDKT6zfnO4waD6zsM57xRMKJJSKVJQ2ckOLPpPTvHSajGLl3Opl1Y9 L7OYT7aQM91aYyG6PU7j4V0wuvS8B5Q= Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-379-hmxpnWfsO367PDAMIue9Pw-1; Thu, 17 Oct 2019 11:06:56 -0400 Received: by mail-vk1-f200.google.com with SMTP id x128so1041602vkx.16 for ; Thu, 17 Oct 2019 08:06:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wnk9PvJmCCPD0IohZcOh8VzPuqSwV4W6KbN3fKDXoNg=; b=lJHc1FQZeFueqN27NuCM3umJufG/lGvRLvrzKdKgMOT+2zKbCvjROCWB6Hi3Lz+NDF pfp9IxDpb5ihHlG73xOvY8FrfYSDCvJxmRWwaViiLlkaP01R978dtllglRUz0niaAiey tHAsEG7pxgKahu8txKEQp+S0HB2EsNKa/GdTEGYesU1sBw+jYfoqRfP5qzMeNs68jU0U izKtoh3QjnQzZOtVILF3AQFM5zHeAq19oL5jZVCfeV3jrFRzq01MnsLOBaS8UjwQwS9H agKA2B/KynONBE+n/PjejbdcdaePj6GDjZ5GlvNTPPfSQCuAP5psNwRVy0WhKHLRH0Ju M6UQ== X-Gm-Message-State: APjAAAXRAMtIvBn02cvPWBcGEM9flhfJQ/l3SmO+rG6dg0V3GGRkipUW MUjUx3RgjaweSVO9rKUz2gPtERgQRHsTTmMJ5x/JebqkC14ydU+1Ts+cP/+STNxEcqDfDgnj2Zp I5ktHO/5eU/NGFiRGYFNWPR8= X-Received: by 2002:ab0:628f:: with SMTP id z15mr2483663uao.126.1571324815663; Thu, 17 Oct 2019 08:06:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlUrsWbNmVkqPpTlwP4emnFYyMe0MePTt8PVsOTrBQoVELnV7G9ASZwcZ5LXYXdMsK6xnuhED84L7Y2uod72I= X-Received: by 2002:ab0:628f:: with SMTP id z15mr2483625uao.126.1571324815154; Thu, 17 Oct 2019 08:06:55 -0700 (PDT) MIME-Version: 1.0 References: <1561911676-37718-1-git-send-email-gavin.hu@arm.com> <1569562904-43950-1-git-send-email-gavin.hu@arm.com> <1569562904-43950-2-git-send-email-gavin.hu@arm.com> In-Reply-To: <1569562904-43950-2-git-send-email-gavin.hu@arm.com> From: David Marchand Date: Thu, 17 Oct 2019 17:06:43 +0200 Message-ID: To: Gavin Hu Cc: dev , nd , Thomas Monjalon , Stephen Hemminger , Hemant Agrawal , Jerin Jacob Kollanukkaran , Pavan Nikhilesh , Honnappa Nagarahalli , "Ruifeng Wang (Arm Technology China)" , Phil Yang , Steve Capper , dpdk stable X-MC-Unique: hmxpnWfsO367PDAMIue9Pw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v7 1/7] bus/fslmc: fix the conflicting dmb function X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Fri, Sep 27, 2019 at 7:42 AM Gavin Hu wrote: > > There are two definitions conflicting each other, for more > details, refer to [1]. > > include/rte_atomic_64.h:19: error: "dmb" redefined [-Werror] > drivers/bus/fslmc/mc/fsl_mc_sys.h:36: note: this is the location of the > previous definition > #define dmb() {__asm__ __volatile__("" : : : "memory"); } Interesting, this means that we have a leftover macro from the arm header that can pollute the namespace. Anyway, this driver is not using the memory barrier api from the EAL. How about simply fixing with? #define __iormb() rte_io_rmb() #define __iowmb() rte_io_wmb() > > The fix is to include the spinlock.h file before the other header files, > this is inline with the coding style[2] about the "header includes". > The fix changes the function to take the argument for arm to be > meaningful. > > [1] http://inbox.dpdk.org/users/VI1PR08MB537631AB25F41B8880DCCA988FDF0@i > VI1PR08MB5376.eurprd08.prod.outlook.com/T/#u This url is broken, there is a trailing i on the first line. > [2] https://doc.dpdk.org/guides/contributing/coding_style.html > > Fixes: 3af733ba8da8 ("bus/fslmc: introduce MC object functions") > Cc: stable@dpdk.org > > Signed-off-by: Gavin Hu > Reviewed-by: Phil Yang --=20 David Marchand