Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1910742rwo; Thu, 3 Aug 2023 01:29:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGdabHGJCmmsDOz8FuGxc3fdG1fqfqqJWjDwEcJfT/e4DQu5C7VqyNr9sYwPfjAzS8oymzw X-Received: by 2002:a05:6a21:3384:b0:135:66d9:a52f with SMTP id yy4-20020a056a21338400b0013566d9a52fmr23067010pzb.7.1691051376142; Thu, 03 Aug 2023 01:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691051376; cv=none; d=google.com; s=arc-20160816; b=d+BNmnApuomcJI0YjwmpCyAbbGBP1f2enfx7ukndrrVJBX3NXvqir5lOH04W8XbWJ0 DHprXZh7Uou89bBCYpUv0AzNpcSCIabf8MzmU4JFCVqtSBSefzoqYXUvJJ3m+/ISZs4M D94z7z+CyFsIRkZaRYVs4A2O3LVlYfi1zlzIj1bVRtjS0dg65j/Lhgr19VdFIcrXorbZ Xo7eNOFQZgSkUxfMAItpY9SAVrI+n23xieUsM1vQvsxlw/FdreBG6tQSaxi2xlBFwRJZ L7KoKkSRCeyQLaMiUHs5+lcSE95ghhKmPLxlCo/9PkX7ztrjqcDiFbbsORX8sqFrSABa P6TQ== 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=Pv0kNw4g9OqpOXBf4A3VBw+RI/3IhKe3c0TVLglIDUY=; fh=UZfhiU2pgwvZdBOe9fFEhnfTQX0/6KsvXKQubWsfhik=; b=fmh066DcgAlGBxhWPNyzp/u6RbFsorSfZOexN5EqYBmgQUAaEj6KM7zOFdE7aRypDT I2gm7j+0Q748kQM+oYmSo8jtyJn958hlKrFmgFizLlRgK0nFohnItZYXks9R9OLPwOYk 38I4yoqPtiXI7o5AlS0kBNPUht0n2Cva78OWimxLi2xhT7qbFR/ChAHiP/oDdzWv6Mkt BXig1f4cqNCQRZUk1jg6R6tS+z625NCbnMq7bcK2vaw3eyVwGq3hqzw7LXsFTT+t9CKn JTp4Gc0465zSC/zsMX75No1UYNeltF+tLw4wgoqtVnbXD4TXkE4z1hG1T0tAxXxCIYiq FFOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=hezgaGxR; 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 w8-20020a63f508000000b005641af57bfdsi10446398pgh.144.2023.08.03.01.29.22; Thu, 03 Aug 2023 01:29:36 -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=hezgaGxR; 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 S233416AbjHCH3I (ORCPT + 99 others); Thu, 3 Aug 2023 03:29:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232107AbjHCH2y (ORCPT ); Thu, 3 Aug 2023 03:28:54 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07B7730CF; Thu, 3 Aug 2023 00:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1691047729; bh=SiXyuOOX0kAfgATp0YbPKnf7iVUwVHLjveWTNqqssiQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=hezgaGxRLIRMLpdr1R+Wsv3oxbMjbLxk5lOLBNIMFPM20GFGmpZ33B3okuHlqkbKW HgN7x0AvLODroFjwDfuWQlRogfJUAZ6pw4K8d2mCWKAuIFmCcxeZHLFA/sFdMBwMda WnwHWZGA2kX48+4+iRUaufOvWrGotJrOx5GN5xms= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 03 Aug 2023 09:28:53 +0200 Subject: [PATCH v3 09/14] selftests/nolibc: avoid unused parameter warnings MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230803-nolibc-warnings-v3-9-bcc1a096ae02@weissschuh.net> References: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@weissschuh.net> In-Reply-To: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@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=1691047727; l=758; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=SiXyuOOX0kAfgATp0YbPKnf7iVUwVHLjveWTNqqssiQ=; b=Q/BdMVls6YdyJeCvodtEdoB0Szlesfpr7ZaJZrW87s6bj1cDnCYLCF3ffhM7qtMKZ5hSLkYW7 ZitYAgLlZwrD7Al8FbR8+cwSAm5D9sDwv++Rtwpkqg4OY1sSjuEm+vu 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,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 warning 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 ea420c794536..d6aa12c3f9ff 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -1112,7 +1112,8 @@ static int smash_stack(void) return 1; } -static int run_protection(int min, int max) +static int run_protection(int min __attribute__((unused)), + int max __attribute__((unused))) { pid_t pid; int llen = 0, status; -- 2.41.0