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 D3D09A00C3 for ; Thu, 20 Jan 2022 12:02:57 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A71440042; Thu, 20 Jan 2022 12:02:57 +0100 (CET) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mails.dpdk.org (Postfix) with ESMTP id 850CD40042 for ; Thu, 20 Jan 2022 12:02:56 +0100 (CET) Received: by mail-wm1-f43.google.com with SMTP id c66so11210408wma.5 for ; Thu, 20 Jan 2022 03:02:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=lUV5lW/74vjBzAnd4KwbQQhrUGhQnC0gvuKHyG/e/Y4=; b=b6A14GKANsEmUVSc9MyrOMaZc3Idxl/X1Dy3PAPQVVkGZLEkcSGV1xPCmzBOJT1dgV 1JSKaJCGy1Sj1bbgOX6XCxXKGYyX6DCeMJEJmPMuAkQl6zlPWQiKyU+J7mPqfcUnJTAs hUI3E5ZerdSJsl/at7xZbUzg+hmf5LIurQVh9RWWpMBpDk0txHxYolZ/dY8+fTqXRfM9 Ip4SY6hSLgr7DKVSFDwpKjtoU1DPxSF2bd2eYiANv2noFolRe5BvdORgbijSbDvx2MB/ vHmH8S6q/WvD61sJrqZLRjG/4e0vDvVJ6D4X6TE1NjORIn8pnzkd4XUwNO/HxfoudzxA IBRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=lUV5lW/74vjBzAnd4KwbQQhrUGhQnC0gvuKHyG/e/Y4=; b=ihLmKObPytsoq4lYLHfXnYtxTku48Qg1sjIvKJC7bOvW1VPo/na1AKCYWoGSf3/aZj XadPifrv7J5On9HpDh7PiE1vudmjj0ZHS9YVU8jngVUwiKrRaYNf6srNcy7YxrIBIdCy eMgGNiMvweCC3Tl7T8btbtoKFr5HbdRMAKG2FI/WqLt8DV+l83ufPD0abWwQWUhBr5bU WFUyxebL42pHf/XrgVigSN3zIXd5YyLF/zJzLhkeYKUDZRTLxFQtgJ5DsxNimR3QQ2ja OpHi1JELtAG9Dd0bdTajwKrGjw/dF1EceZ1B+bZDxJ7srOvpW/thXO00TYdu8ETaQpjW o3cw== X-Gm-Message-State: AOAM5339kI37scA51KKVT3pSs0qlSwLA60FDZLzXuxumsxYdTPiS4aSm z0ndwVglrE3W35lUjgh3/CQqyvtrQ1wnRFqA X-Google-Smtp-Source: ABdhPJynF5bgZZaK1/WiguvZxHFOImZ5ePLAVY/G0xkND6MocRYcR5GqwG+hnMMScYZ5xISIylUUwA== X-Received: by 2002:adf:f9c5:: with SMTP id w5mr7529400wrr.362.1642676575941; Thu, 20 Jan 2022 03:02:55 -0800 (PST) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id m187sm1977975wme.25.2022.01.20.03.02.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 03:02:55 -0800 (PST) From: luca.boccassi@gmail.com To: stable@dpdk.org Subject: [PATCH 20.11] config/ppc: fix build with GCC >= 10 Date: Thu, 20 Jan 2022 11:02:50 +0000 Message-Id: <20220120110250.1469529-1-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: David Marchand [ backported from upstream commit dfb1ad1e7a070926c9bd9fdf38e6b944a21f1d49 ] 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 --- Required to fix build on ppc64el with gcc 10+ 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 bea72f86b5..dc4a3d8c13 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 -- 2.30.2