From patchwork Thu Nov 23 18:58:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christoph_M=C3=BCllner?= X-Patchwork-Id: 13466608 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3CC57C61D85 for ; Thu, 23 Nov 2023 18:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YodStgIQBxePiNvzUhTwUemhxAMBvOuktWUg3/HTsJ8=; b=aSB5/QqfRNpli4 fqiw3nLgNPRsskHpCfdfHnJPM/BgHdVJK+whoWlErzFlVv35IHMF2/HSJhb4wLsJsnO5nH1v7b0nD 1saku7XJAdnLfwRURy8PBvdxhDU/enUAYt/lvpUXOQWVF7pcq2RaJ10SNJe/wrRWA83U7XEdMk19M DkdN4/SrNtmsetcg8YcT0GVnHM1GZsX/pwd/jll52557DP0Q6u0+aI3a8XNSECQYz+Zy/nJpGcQam 7yfHQlWWWNaquSVrg9l4LvdoLTYNed4R/LupRNB5VhYHWBDOAKL4jdbxsfl1Ps1nPr2+Y3180F76l lKX0s0vBhNiGkwjGq6VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6EuG-005YGu-1x; Thu, 23 Nov 2023 18:58:32 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6EuD-005YFs-2r for linux-riscv@lists.infradead.org; Thu, 23 Nov 2023 18:58:31 +0000 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2c873cf9f74so15170221fa.0 for ; Thu, 23 Nov 2023 10:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1700765906; x=1701370706; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IGDig6YgBY65aRC6yCBQTLGsMwfbG6Dc++Rh1cU7fbM=; b=nJU3hJIZcgRmYXfdCgFFrRpS8aIHDYS9Tarb4RQjJLxKuG+ZeFvNRNM2n+btQmP5Yy 8F4snXFEGPZj60O9lxE9rUn12ZqkiLM4wogIE+UYkXM2OQLdwTJ7pbiBm8m3nE2kDlr8 X64TuxkL6AC41AWDX8QxvuuIP5wH5qBgBOeWs7NWTtKiTF8K1p+NrxmrSqj0wH+bTVa/ OPYy9xpyLKCn9As8qJ9Atzn7QWcLUjSiAVcAmaTYK34REjawTGlyDglmEOuCX+hNdxJv EMK87+g1T4QtzNP8BkmQ+vQylGqXhpO1mJfE4m6XJKa3jlvRBPhhiaHzLmAXd54mRL2D BeYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700765906; x=1701370706; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IGDig6YgBY65aRC6yCBQTLGsMwfbG6Dc++Rh1cU7fbM=; b=NN4uLiM1Ljp4LFCX/Mj+CdBB4rLkePVqNiblOWHjx2eWaMKMLZkwDFueVmxXPNPCl8 Hgj9B67o8Xuqpo5AKGdwQ7kfwCv1P+UIwyQNekT4hJU2FW0Xh8IKHFtob/hEXIFuxgFf OhRID7x5G8m8hoLv2b1SW1XS17dwtQVzK3y8Dhaq0fnPCiRxAQbGDN1vxiloCGr3NRxm qpgdBMvBjUktohKYCQS6tuP7dZny/x4cwvhEBood1yvMhoAR6Z+PrNrvrg6zbqTzV0YG MspF6vkEV1K0Te+8du2zkGPZzOEYKNL/y7Rj6x6pd1kIDNl5ojzGRMmB0TPTUlyA/oG/ IQPQ== X-Gm-Message-State: AOJu0Yx/pWyLy8LMu9mKiHZMX9GwTIYNjTVhxGUvxHq0yoJS2PtVhcbd nQRWGU8TdkuDaBs44cZtw3xSKKn7d5yxGfKzX+EHuzq+ X-Google-Smtp-Source: AGHT+IFY1/C0dQe7cOOy2B31dSRmgNpyJ4PnGGQCob4NYZKF2UsPTkohGqYxikaY7xsNsW23oO0U/w== X-Received: by 2002:a2e:9ac3:0:b0:2c5:14da:91f2 with SMTP id p3-20020a2e9ac3000000b002c514da91f2mr219754ljj.22.1700765906008; Thu, 23 Nov 2023 10:58:26 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 10:58:25 -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?b?QmrDtnJuIFTDtnBlbA==?= , Charlie Jenkins , =?utf-8?q?Christoph_M=C3=BCllner?= Subject: [PATCH 0/5] tools: selftests: riscv: Fix compiler warnings Date: Thu, 23 Nov 2023 19:58:16 +0100 Message-ID: <20231123185821.2272504-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231123_105829_930309_BD8E84EE X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Christoph Müllner When building the RISC-V selftests with a riscv32 compiler I ran into a couple of compiler warnings. While riscv32 support for these tests is questionable, the fixes are so trivial that it is probably best to simply apply them. Note that the missing-include patch and some format string warnings are also relevant for riscv64. Christoph Müllner (5): tools: selftests: riscv: Fix compile warnings in hwprobe tools: selftests: riscv: Fix compile warnings in cbo tools: selftests: riscv: Add missing include for vector test tools: selftests: riscv: Fix compile warnings in vector tests tools: selftests: riscv: Fix compile warnings in mm tests tools/testing/selftests/riscv/hwprobe/cbo.c | 6 +++--- tools/testing/selftests/riscv/hwprobe/hwprobe.c | 4 ++-- tools/testing/selftests/riscv/mm/mmap_test.h | 3 +++ tools/testing/selftests/riscv/vector/v_initval_nolibc.c | 2 +- tools/testing/selftests/riscv/vector/vstate_exec_nolibc.c | 3 +++ tools/testing/selftests/riscv/vector/vstate_prctl.c | 4 ++-- 6 files changed, 14 insertions(+), 8 deletions(-) Reviewed-by: Andrew Jones