From patchwork Thu Nov 11 11:06:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 519126 Delivered-To: patch@linaro.org Received: by 2002:ac0:c605:0:0:0:0:0 with SMTP id p5csp126211imj; Thu, 11 Nov 2021 03:22:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQzHoLeHaplun0RBf9iajjhXSXDba5HNDe7Kvb0PRvFFGuTTJN1N5D+u6DLKJ1vEdXyIgN X-Received: by 2002:ab0:f2:: with SMTP id 105mr9162387uaj.125.1636629764300; Thu, 11 Nov 2021 03:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636629764; cv=none; d=google.com; s=arc-20160816; b=hsp1K+sdw9dm/bHLUOa9883qemzmejfGQwDI4XJjLKo3biJ4eK50h/UeUk625MbmvC HFHcQ9qvyd+3O6Od5f8OEo6Zty/1Og8DLGBD8W/VUzac4q6e9uyaEdehYOzvVvtDUmdT DGpE57EUOroSdvcw/HNrn4FEHwbrrKtsPNeBTOg4u9uXhhzljxjhyU0VdQ/S2f6BBNbU qaeebTjH8JWsQZdRD5a0BZ5UODm9vqZCjQqa4Fm999+48EdAsvPQWVD4OM8+sUK8pl0F t27OjgoCbQyIhtYUve6v2It2lMyvUAO3c3fAoHHNojKhLNH+xYK3VjdAcyLoMa0OwjIT YP4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=J1v0TEt4nFAPDqyOkQCB7uRP6b4G3GMZ4DQtpMIJcMM=; b=iQ4toBuQU4R+jVBf/75fqNcg31sIxpb52mkVfzvNyAkBTOomQZrfZ15uXaC2aXUNcD GiNFUEAtQLBK7GL3v7LzGA+zVECy3gJcwYAidG870g04eBI1RYRFCHYsvW2gV4Rfk5Ur T6Vedg5GhXNyKmMR1m6DEjR7Cf65seg4YLrzg9PfAUXwS6p+uNzWSK35FY3cpu6tw/rF on4GZcAjvlpeLqUNv+sxpbA5/mj7iUac/aVIKVg30pWIHU6ox6JVrhsfN4y/tDAfTqL3 /bFmlKJ7/iXddUo7oItoPVODTywtPynNjW4YxM8R4Er3yR1oLjJde538SOU5ngjL6yhv 2/Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WUNXmJeK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ay32si4689692vkb.18.2021.11.11.03.22.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Nov 2021 03:22:44 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WUNXmJeK; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:33704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ml8AF-0003or-NU for patch@linaro.org; Thu, 11 Nov 2021 06:22:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ml7vA-0005DY-G1 for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:08 -0500 Received: from [2a00:1450:4864:20::430] (port=34495 helo=mail-wr1-x430.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ml7v7-0001kH-VD for qemu-devel@nongnu.org; Thu, 11 Nov 2021 06:07:07 -0500 Received: by mail-wr1-x430.google.com with SMTP id d5so9169692wrc.1 for ; Thu, 11 Nov 2021 03:07:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J1v0TEt4nFAPDqyOkQCB7uRP6b4G3GMZ4DQtpMIJcMM=; b=WUNXmJeK/GZTMCrNfFGMBbPqImbQuHgnuvORU6UpFVJbIU1sgQ6k7DzI0sNBJXAvDW xgGiJFXB1jSi84xEYqgNhfCkU54+rimozBcdeG5y+I6Xqcg2EdUg+RyGDiPp6PPM/MFN auY1IpGlW5QtfIsock4RA9YyJlzQvjZ5GaUT4aTrZR93WDaM6STsJQBTy1e3Qitozx3o Zht+7D2ZDBZNhqxeQk7jq826H4ME2H3Jzd2UXD3+1n+u3A9B1OEFdAb9Jy/J0blGG5A0 7Ufv1gsWMt97Lgaleg3NxYn/lqry9FY/L2cv3084lrgCBFzl2RJvwP54RyDypxZ0bTbu H+UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J1v0TEt4nFAPDqyOkQCB7uRP6b4G3GMZ4DQtpMIJcMM=; b=mqCZY2VfNEyzw1/K1x1JGerVlUFkOeilN1Qm2FejUm/+sIEy5XIodFrLgHZ0uw8sns PhipmQIiCnqZAcqBFfgVVCbNdmtHT9okrcpvKV+b5Abtg7fW5JPW/MgGg+uNusjpnSYW 0m2Jw8t9BvNgh7VAW1ISV9ALrgO0yFJqQNnt+g4sxlGjET0lcmJlgtYTHxZ0fXR7jfRq l9L7bJsB0fdCcIARYim63ObqmyjqpMS+tV0bOqu1tPEA84PXP3ailO2GWrDyWGVODxvI LoiQavKPV/N0fD4K9qVw0B1WCIIcyO5qSC0k6QXUvwpEKhJXUz289ogMX7zHg8m76tW8 n/Og== X-Gm-Message-State: AOAM530vBiBw9yX8DnhkgVl3scJK86SFZmaPXg+P0N6AzeSJULHsC5T0 Q2lzHwYhbjWSfOPg1AcMiIEKxMBWBi5B9yxlpPU= X-Received: by 2002:a5d:4d81:: with SMTP id b1mr8111822wru.366.1636628824695; Thu, 11 Nov 2021 03:07:04 -0800 (PST) Received: from localhost.localdomain (10.red-95-125-227.dynamicip.rima-tde.net. [95.125.227.10]) by smtp.gmail.com with ESMTPSA id j8sm2536684wrh.16.2021.11.11.03.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 03:07:04 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 4/4] tcg/s390x: Fix tcg_out_vec_op argument type Date: Thu, 11 Nov 2021 12:06:56 +0100 Message-Id: <20211111110656.237727-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111110656.237727-1-richard.henderson@linaro.org> References: <20211111110656.237727-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::430 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=richard.henderson@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Miroslav Rezanina , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Miroslav Rezanina Newly defined tcg_out_vec_op (34ef767609 tcg/s390x: Add host vector framework) for s390x uses pointer argument definition. This fails on gcc 11 as original declaration uses array argument: In file included from ../tcg/tcg.c:430: /builddir/build/BUILD/qemu-6.1.50/tcg/s390x/tcg-target.c.inc:2702:42: error: argument 5 of type 'const TCGArg *' {aka 'const long unsigned int *'} declared as a pointer [-Werror=array-parameter=] 2702 | const TCGArg *args, const int *const_args) | ~~~~~~~~~~~~~~^~~~ ../tcg/tcg.c:121:41: note: previously declared as an array 'const TCGArg[16]' {aka 'const long unsigned int[16]'} 121 | const TCGArg args[TCG_MAX_OP_ARGS], | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from ../tcg/tcg.c:430: /builddir/build/BUILD/qemu-6.1.50/tcg/s390x/tcg-target.c.inc:2702:59: error: argument 6 of type 'const int *' declared as a pointer [-Werror=array-parameter=] 2702 | const TCGArg *args, const int *const_args) | ~~~~~~~~~~~^~~~~~~~~~ ../tcg/tcg.c:122:38: note: previously declared as an array 'const int[16]' 122 | const int const_args[TCG_MAX_OP_ARGS]); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixing argument type to pass build. Signed-off-by: Miroslav Rezanina Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Acked-by: David Hildenbrand Message-Id: <20211027085629.240704-1-mrezanin@redhat.com> Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 8938c446c8..57e803e339 100644 --- a/tcg/s390x/tcg-target.c.inc +++ b/tcg/s390x/tcg-target.c.inc @@ -2699,7 +2699,8 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, unsigned vecl, unsigned vece, - const TCGArg *args, const int *const_args) + const TCGArg args[TCG_MAX_OP_ARGS], + const int const_args[TCG_MAX_OP_ARGS]) { TCGType type = vecl + TCG_TYPE_V64; TCGArg a0 = args[0], a1 = args[1], a2 = args[2];