Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5262002rwb; Mon, 31 Jul 2023 22:37:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVXxA7/X1BOJbw6IKBGh/a4+2noUFlD/NjPzizOEk6he8DSTGQhvksA6yAdTNoZJ49r3rp X-Received: by 2002:a05:6359:3418:b0:134:d691:8b21 with SMTP id ul24-20020a056359341800b00134d6918b21mr1588120rwb.23.1690868277010; Mon, 31 Jul 2023 22:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690868276; cv=none; d=google.com; s=arc-20160816; b=xEA6rBm1qeRHriO114uyWTDED7s7w56J90rhl0IlprOmRn8+0I7jtzCunoU5WP5su2 VAnobS0N27dj028ikFoBcW+KyIMzvH4/LLdWjeHvuqWYrdqDPoqsjAW/kdJ+Hbj3yp3D qd1axXYz3Fnh+mbNqndENEauQDzcfcy6BC7WkafZH6IaYAcjvgi7hmt3Amm1ZqoPzvH0 JHiw0cVjvQyyI6vSHJkeusJWizzs8Z77eFaDsZ9kj/AA5/BwRk69uxVPNMJEA8q7Icw5 JCvuj/g6Hw7D7ouUddCMjzB8vAwyikEe7HwYjxEJ51G5ciD0PrZm0gqyvVim2Hgfev66 vTRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=6q5AdNvfImQCiNqQZDZ02tz/FiVJy2/x4UlfOhZGGcg=; fh=UZfhiU2pgwvZdBOe9fFEhnfTQX0/6KsvXKQubWsfhik=; b=uF3KPK7HXN5UisPIsnFUqkmCdAkClBdptlBAQ2z8w3287lmQnaMa4jBywttbOP/p2O dbeU9XIJ4vGLLSx95Qo9i8ACpTO+qSNyzv6ukheZBaj0ytuBU2LWw9PVGt/PaqS+YcR5 xvDlSnjeetPoeA0WDIGP5EnR93DZoj/sswNptdrBjyyDhgVjkrLBMPRc/sNgePytLKEJ Ql1BZugugNd5vr2fRwvrO+IZ95E6Ag83zV20w3PZgL+5drBNeVX/o+VqeR6HM+oINig4 keUbG9+xU+U8wgvzSV8bAboDu0sXgZEgfqeHkXIdtJUfnA8wlyqQ//ehFKH1lNJCrNt1 /gyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=OJi9b8qP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m66-20020a633f45000000b0056418c0864csi6717654pga.456.2023.07.31.22.37.44; Mon, 31 Jul 2023 22:37:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=OJi9b8qP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230087AbjHAFai (ORCPT + 99 others); Tue, 1 Aug 2023 01:30:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbjHAFaX (ORCPT ); Tue, 1 Aug 2023 01:30:23 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 820CD1FC0; Mon, 31 Jul 2023 22:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1690867813; bh=68cbroggSXK5AuaobFuJ+Z2zDm6urN4gJ+66FGT1Uuk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OJi9b8qPlP1oIS+wo7uoBxGWfGJcbh5IH4vppHDXWwPpKJsZw7NyxC6xLZU+Xk0oH tIov+5UfdtYKbAxEZddRhL47R234mYUatJQN4OHVQdeZytCx5GsSXKFSduVJzXGnSE 6/SsgtJF0xwSu7wGnx5L4il/XP7F6N6IF/Uv5XeM= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 01 Aug 2023 07:30:14 +0200 Subject: [PATCH v2 07/10] selftests/nolibc: avoid unused arguments warnings MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230801-nolibc-warnings-v2-7-1ba5ca57bd9b@weissschuh.net> References: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@weissschuh.net> In-Reply-To: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Tan , Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690867811; l=759; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=68cbroggSXK5AuaobFuJ+Z2zDm6urN4gJ+66FGT1Uuk=; b=f5FFo8CzKRA1WOhf9Y0SVYApgArlbh3IMK9g/aVCZ2I4Rv1TeOJ6Pd9a0RsBt5Ad1uInWMaDR 8Bqy2lWFtwIBMYMbPj7r7MHO6dN+SCk4XG7J1tu4l/zoBeJY4ZuykSv X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This warnings will be enabled later so avoid triggering it. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/nolibc-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 53a3773c7790..cb17cccd0bc7 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -1089,7 +1089,8 @@ static int smash_stack(void) return 1; } -static int run_protection(int min, int max) +static int run_protection(int __attribute__((unused)) min, + int __attribute__((unused)) max) { pid_t pid; int llen = 0, status; -- 2.41.0