From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D012AA0A04 for ; Fri, 15 Jan 2021 16:56:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C70A014118D; Fri, 15 Jan 2021 16:56:09 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mails.dpdk.org (Postfix) with ESMTP id F246614118D for ; Fri, 15 Jan 2021 16:56:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610726167; 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=hDnGjd1WWAQE7x3VtIRkY6lVUcaijwXoeuda7mV/sMQ=; b=Bo3+2xZUi4EuxQwttO2rk3bhWq85cZs49JyXmE1/CCxtrIN4G/bULLZsJ/ipydr/Rj0w6M sNZ4SMAGP1XugC3bMmsUipkF/0dEAS5MsDsNAaa6ulx5mAJq5OnhuvpY3GlCnq8E00ney4 NIwgIqFNPdopukzB2IYp5+LUUcHiWV0= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-578-rdrrfnCtMguRN6PbVjggQA-1; Fri, 15 Jan 2021 10:56:06 -0500 X-MC-Unique: rdrrfnCtMguRN6PbVjggQA-1 Received: by mail-vk1-f198.google.com with SMTP id a204so4233780vka.21 for ; Fri, 15 Jan 2021 07:56:05 -0800 (PST) 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:content-transfer-encoding; bh=hDnGjd1WWAQE7x3VtIRkY6lVUcaijwXoeuda7mV/sMQ=; b=Odq7xEBeDM3kvnHXcaTGYZaCOV9S0G+gcCv48Xxi2atNBwUJ/JrFp85LSEuyyaNiki byYa+beGjKq6hplvSSfXxmln3fhdnXoDbzXqm1iZrGs+PCwbEinjmTWTVWfvIOih87uX D4a40KdzE7jTonAX2me8F11dRh3P/xdqXVt+d0+DTbTOORBgTXeXkC86BWjDFasSWNuT DOZ+LAAgL91U6UMC7TKZQZl+XcDRqGDtFlF1v5lWsW+dXyaM/iUnOp9UlziBgFwd0FKM dmgOsXE9ebEVYtTthc8D46k2i0ky8ZJrvjppzfc9PzyyZryhxSP2Yl2RyGxmCoODpr1U OT1g== X-Gm-Message-State: AOAM533xh91cFWMsNCMU88tZnVb0wQ0dakDByQWZ9q4KPuoEFFmrOB6A efSy9P121SLIcPFSkdNO7qnCSKSUNI3z2zcMW/CIavNInP1c3ZReCdeGApmYyE9NxacuXr70qsB qbNCGsl9EnU4ljuQc62i08ug= X-Received: by 2002:a67:3093:: with SMTP id w141mr5806948vsw.27.1610726165488; Fri, 15 Jan 2021 07:56:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaeoZi86ofHAtdE+VafC25VTEjR921OODlzu0vFFZNj14HX8SrNoGwv4xTdtkQAuAUIH2QESnft2jxfvKHmcg= X-Received: by 2002:a67:3093:: with SMTP id w141mr5806936vsw.27.1610726165316; Fri, 15 Jan 2021 07:56:05 -0800 (PST) MIME-Version: 1.0 References: <20210115095821.42721-1-joyce.kong@arm.com> In-Reply-To: <20210115095821.42721-1-joyce.kong@arm.com> From: David Marchand Date: Fri, 15 Jan 2021 16:55:54 +0100 Message-ID: To: Joyce Kong Cc: Jerin Jacob Kollanukkaran , "Ruifeng Wang (Arm Technology China)" , Honnappa Nagarahalli , dev , nd , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [PATCH v1] eal/arm: fix gcc build for 128-bit atomic compare exchange X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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, Jan 15, 2021 at 10:58 AM Joyce Kong wrote: > > Compiling with "meson build -Dbuildtype=3Ddebug --cross-file > config/arm/arm64_thunderx2_linux_gcc" shows the warnings > "function returns an aggregate [-Waggregate-return]": > ../../dpdk/lib/librte_eal/arm/include/rte_atomic_64.h: In > function =E2=80=98__cas_128_relaxed=E2=80=99: > ../../dpdk/lib/librte_eal/arm/include/rte_atomic_64.h:81:20: > error: function returns an aggregate [-Werror=3Daggregate-return] > __ATOMIC128_CAS_OP(__cas_128_relaxed, "casp") > ^~~~~~~~~~~~~~~~~ > > Fix the compiling issue by defining __ATOMIC128_CAS_OP as a void > function and passing the address pointer into it. > > Fixes: 7e2c3e17fe2c ("eal/arm64: add 128-bit atomic compare exchange") > Cc: stable@dpdk.org > > Signed-off-by: Joyce Kong >From my tests, the trigger is when switching to debug. The thunderx2 target builds fine for me with debugoptimized. I can reproduce the issue too with octeontx2. What is the common point? --=20 David Marchand