From patchwork Wed Sep 15 05:08:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Marchand X-Patchwork-Id: 98877 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 26F13A0C43; Wed, 15 Sep 2021 07:08:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D6E34003F; Wed, 15 Sep 2021 07:08:45 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id CE43E4003C for ; Wed, 15 Sep 2021 07:08:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631682523; 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; bh=6HkCKlj20Ve8Jqy1mWx0qUuJ/fE+gLLxrCeyobtUXx4=; b=XF7CCKyBDmz/X4VXTLTxS7Dgtvmr/AVmUiLvzTL+cGFJeku742uJzm30a8YpNDNp2EFgMD KJHmDFTF9CErGEJqHRnxO+0X7xDWcpRALJHdVN02mLY2XnAkoDqbUNNfXEBp4quEIDg6oc tFbJOkZCQKDr9cv2PG3n2IA3/eV/fGI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-592-30ajlHK-PmKC0KfJgEmAEA-1; Wed, 15 Sep 2021 01:08:39 -0400 X-MC-Unique: 30ajlHK-PmKC0KfJgEmAEA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 71D311006AA0; Wed, 15 Sep 2021 05:08:38 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.192.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id E342710016FB; Wed, 15 Sep 2021 05:08:36 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Ferruh Yigit , David Christensen , Bruce Richardson Date: Wed, 15 Sep 2021 07:08:12 +0200 Message-Id: <20210915050812.12798-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH] config/ppc: fix build with GCC >= 10 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Like for python, multiline statements in meson must either use a backslash character (explicit continuation) or be enclosed in () (implicit continuation). python PEP8 recommends the latter [1], and it looks like meson had an issue with backslash before 0.50 [2]. 1: https://www.python.org/dev/peps/pep-0008/#multiline-if-statements 2: https://github.com/mesonbuild/meson/commit/90c9b868b20b Fixes: 394407f50c90 ("config/ppc: ignore GCC 11 psabi warnings") Reported-by: Ferruh Yigit Signed-off-by: David Marchand Tested-by: Ferruh Yigit Acked-by: Bruce Richardson --- config/ppc/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/ppc/meson.build b/config/ppc/meson.build index 0b1948fc7c..aa1327a595 100644 --- a/config/ppc/meson.build +++ b/config/ppc/meson.build @@ -20,8 +20,8 @@ endif # Suppress the gcc warning "note: the layout of aggregates containing # vectors with 4-byte alignment has changed in GCC 5". -if cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') and - cc.version().version_compare('<12.0') and cc.has_argument('-Wno-psabi') +if (cc.get_id() == 'gcc' and cc.version().version_compare('>=10.0') and + cc.version().version_compare('<12.0') and cc.has_argument('-Wno-psabi')) add_project_arguments('-Wno-psabi', language: 'c') endif