Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3478599rdh; Mon, 27 Nov 2023 15:45:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtkx7yAr47N00/lKu3FF1ghxGB0hDJYi6Om1evRkR1KJnioIk3ZiPLimdGbj3kYYrspcGd X-Received: by 2002:a05:6808:4485:b0:3b6:d1cc:4c6 with SMTP id eq5-20020a056808448500b003b6d1cc04c6mr18915862oib.16.1701128731049; Mon, 27 Nov 2023 15:45:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701128731; cv=none; d=google.com; s=arc-20160816; b=IDBpn0D4QMUsFH9PgWHOW7pKsZn3KiQ7FD+aPIWHSWvD4vVbTHmFZhsTRgaSQJ7Vne eI9QrubypEDLZWWsbYElyxdQF8hVyHQ4yNudR4HRd8Woh+NlP3VWUUbEvllJaN1JC/fm 38fwoNjm2ZcjGeeGVyL6S5mZckchnvZV6q4zkvMkYX0H4C1IKVezfQsISxPvDrdE1Aol FVTD3fBu1kJGN7N+JE/g8w2Z6pOUJWQTPrtMoWECLgQeg4aaeL/uEji9AAqQCUctNSS3 k+v28KBP+89j3bX1WNLmzTU4Dl/mtMmJpRr79wOz0nrjnZKj8CegFWQnGcm0Ck89/URT +4oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r701pvo9PbgE9h16+HzDZMKOHNQtZ1R5aBMPWWKprHM=; fh=/eO5nk+0DJTE9DN9tCVbd3UjUSmw806IPGhK6G20PBw=; b=l2IvLjZ3kQJJFpB5+y8iSKvmZsK3DNo/8pYhVuyTpO4+fgmquFZXpjVEIWfpXNZ4SG JrERZZFwsOCehCm4FHuK0DFTv8KxORXV00WwmHyDOyKW+zcyQLQhjaeyk2xjIFS1Zlyt Swja8JkiG24DHaifoprkp/C4TIwZkuhMHecxsIksY2qdMUQYSrps5EcqWS23642FGAcn gkzkeds5i4oDxjTfds9snuO9lR0DFIEKhOEq8lFrwkhJjYV1s/UUqzU5+VUp6/8H+TwQ QlN8n0xal7M7Hx8nfemvDWmqlBd8K3g4hM5/hI+M2/TKdZ70bmSHiDr/hULY3XZEJGJI nFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=cQMI8JJm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u5-20020a656705000000b0059b64b153f6si10305838pgf.845.2023.11.27.15.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 15:45:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=cQMI8JJm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7D38C80A146E; Thu, 23 Nov 2023 10:59:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345835AbjKWS6f (ORCPT + 99 others); Thu, 23 Nov 2023 13:58:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbjKWS63 (ORCPT ); Thu, 23 Nov 2023 13:58:29 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A3B2D47 for ; Thu, 23 Nov 2023 10:58:35 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-548f853fc9eso1614715a12.1 for ; Thu, 23 Nov 2023 10:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1700765913; x=1701370713; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r701pvo9PbgE9h16+HzDZMKOHNQtZ1R5aBMPWWKprHM=; b=cQMI8JJmM8qjaLeMVk4RNlEsMuL127P+aY4k8iy/iz8h0VwIqjg0Qihxdk99fZNmxL Hz8KX4+zHEUEgjPLGnVccBEMSwprXl1g+Wy2X9BtTwsIXXL/WI3D1WxCxHnwEwqbHC12 zoLilQGEH+gfogv7ZzS4MqET4mzHT4Nw38xvqIl8jaycFnsVCVqixr6bGi5jENyzqCPS mVO6VuOE8QmSNgbqsp0J1wl9z9PDAqlzX4vJtrhduJFmL6ElRHQbNMPkpunXJMQFLILe KzRmKazci7LYxbgKyg/FhlFJnOH/NgQH0U2ch9v9WtJ1dHq09Rt4EpArQzZUIjfDVYr/ fvVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700765913; x=1701370713; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r701pvo9PbgE9h16+HzDZMKOHNQtZ1R5aBMPWWKprHM=; b=OcpCYYRE9TsyEXqVLPSBBsXjy37aWZXOpcF/PX8BI7SkLE/k1bCur2z27AybuGudxo 9KI3TzRpiMuPZBnSSVWPukEr+klJgX9kXl2XvqpyhakQNbqP1ySKZ4VhOwrTNjwyUV78 xzvTMb/MCLUW+7H02uU9CjXcpFKMtuTILd+1vO2gBpH0gCa4oQy2NPFJVLiEzurUULoD Wti4Wn+5BEg5gfHdb7iMnP0GBXgU9vE6fUlas3rUucKjtDh92Zxthsjufh+bES6fFJgz q/3+fOfqC9qjZZrCrFTMrv9nINvvYV3cOIX0JHPgPq8r8DKZDBTOVHdPXMV9KqkHS4ij A75A== X-Gm-Message-State: AOJu0YxE1XGpNxC1x0nc2fEb2nLzkRsXANKALOnTtTSFDNrJ/kV9vQeS cgFusWtyJgaBHBOGx5Z+hdAggw== X-Received: by 2002:a17:906:b188:b0:9e6:f7c6:792f with SMTP id w8-20020a170906b18800b009e6f7c6792fmr159047ejy.17.1700765913533; Thu, 23 Nov 2023 10:58:33 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id l23-20020a170906231700b009ff1997ce86sm1115944eja.149.2023.11.23.10.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 10:58:32 -0800 (PST) From: Christoph Muellner To: linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Shuah Khan Cc: Philipp Tomsich , Andrew Jones , Evan Green , Xiao Wang , Alexandre Ghiti , Andy Chiu , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Charlie Jenkins , =?UTF-8?q?Christoph=20M=C3=BCllner?= Subject: [PATCH 4/5] tools: selftests: riscv: Fix compile warnings in vector tests Date: Thu, 23 Nov 2023 19:58:20 +0100 Message-ID: <20231123185821.2272504-5-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231123185821.2272504-1-christoph.muellner@vrull.eu> References: <20231123185821.2272504-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 10:59:08 -0800 (PST) From: Christoph Müllner GCC prints a couple of format string warnings when compiling the vector tests. Let's follow the recommendation in Documentation/printk-formats.txt to fix these warnings. Signed-off-by: Christoph Müllner --- tools/testing/selftests/riscv/vector/v_initval_nolibc.c | 2 +- tools/testing/selftests/riscv/vector/vstate_prctl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/riscv/vector/v_initval_nolibc.c b/tools/testing/selftests/riscv/vector/v_initval_nolibc.c index 66764edb0d52..1dd94197da30 100644 --- a/tools/testing/selftests/riscv/vector/v_initval_nolibc.c +++ b/tools/testing/selftests/riscv/vector/v_initval_nolibc.c @@ -27,7 +27,7 @@ int main(void) datap = malloc(MAX_VSIZE); if (!datap) { - ksft_test_result_fail("fail to allocate memory for size = %lu\n", MAX_VSIZE); + ksft_test_result_fail("fail to allocate memory for size = %d\n", MAX_VSIZE); exit(-1); } diff --git a/tools/testing/selftests/riscv/vector/vstate_prctl.c b/tools/testing/selftests/riscv/vector/vstate_prctl.c index b348b475be57..8ad94e08ff4d 100644 --- a/tools/testing/selftests/riscv/vector/vstate_prctl.c +++ b/tools/testing/selftests/riscv/vector/vstate_prctl.c @@ -68,7 +68,7 @@ int test_and_compare_child(long provided, long expected, int inherit) } rc = launch_test(inherit); if (rc != expected) { - ksft_test_result_fail("Test failed, check %d != %d\n", rc, + ksft_test_result_fail("Test failed, check %d != %ld\n", rc, expected); return -2; } @@ -87,7 +87,7 @@ int main(void) pair.key = RISCV_HWPROBE_KEY_IMA_EXT_0; rc = riscv_hwprobe(&pair, 1, 0, NULL, 0); if (rc < 0) { - ksft_test_result_fail("hwprobe() failed with %d\n", rc); + ksft_test_result_fail("hwprobe() failed with %ld\n", rc); return -1; } -- 2.41.0