Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2078796pxb; Fri, 25 Mar 2022 10:41:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2ojsFfCbCsf0KUdkpoSUUjwfzagKDTn8ay/LHuMUWLNzvGc4Jc53XTI/Y92TlS+PGQKDX X-Received: by 2002:a17:902:8f94:b0:14f:d9b3:52c2 with SMTP id z20-20020a1709028f9400b0014fd9b352c2mr12694140plo.103.1648230115149; Fri, 25 Mar 2022 10:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648230115; cv=none; d=google.com; s=arc-20160816; b=xnOl1KRMJpqJeyNax6qrdl0VvLhB7SlEzMQ3CIwMMLa+LJxk2PpPMms1IbpvNV4uzS 564qqRxWREoUz1D1Xp+DdxL0hGjVaWdPMXqvxAIbvEc+MIKdsHkjjDNUmW2ywrB53iYe G2EwEpJ1PtZLH9VqOUtK8e0SWdcqAFNo4L63oNW6meFYsd4nG3ir029Pyap4BmpZ4M4k 38GxDIws3URjIFl9ZpJXj5HzcNOfiSQylhJ4JfRCHs1prKVneME3jxZMzHuSR6cYhZx4 8+OvbUaEkuMxSAhxBipB+ebxGd1NiZsg4MLz0wdxQloLyx6DpcoFW8XauFwPWoMOKqp6 WzUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=YffvJKmqGnNOFrJNUBozqcvaEBhfok9GG307YN+iOis=; b=lPYHhOiXEzUOSV1n9bsI6hGZwzfpXvezG2nSisOv+D3TAdkYfJoHtjie0cniEIFGhZ 9iGIzSAg80k5W9C26X8d+EMOMzJQw1QCPN80flBHNPvBvwACnh5rlVj9iaiFVngDmZnk YHhowEiBdPYoB+fz0Z1Nfy3sUR1wX17MCa0cJQWkmgi7iTEBdtKu6hFrECFHWfQIhbAw 7wmV9648x3HhRxbaV+d/adCGPd/r6jAs764yzEMFYgirsASFd9NeLbJwhPukibRmooL4 9zTuRDEb6DB5X+g7aQkkePXts+i6hXaRxi0APuPs79rRM8Jiy5gwja99w+R2HpmPW7ow jL2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rJBaV6pG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 25-20020a630e59000000b003980091c8fasi1819526pgo.356.2022.03.25.10.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 10:41:55 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rJBaV6pG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E8F3966AEA; Fri, 25 Mar 2022 10:29:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232715AbiCXWlN (ORCPT + 99 others); Thu, 24 Mar 2022 18:41:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235081AbiCXWlK (ORCPT ); Thu, 24 Mar 2022 18:41:10 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E54ADD64 for ; Thu, 24 Mar 2022 15:39:37 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id j5-20020a056902020500b00628ab64be30so4625950ybs.16 for ; Thu, 24 Mar 2022 15:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=YffvJKmqGnNOFrJNUBozqcvaEBhfok9GG307YN+iOis=; b=rJBaV6pGwEOAZ5/DKw9WgYD8sOUIGzatpRwyLoMMfvhusF5BeyvsRwUwZWCNGuIDQ1 nQB8oCdC9bv1EZ+2GtysbZIqyvqAenpHbQez/WxBwBE3CGVb3xXwPXtQKDi9eaWQ6y7j ZKrHVPDblW1plXoohNvFqYI+YSZ7lUzU+JDZLa+az53ILzpYvrYIYeB4+yyJZ67EEn+X fen1X83tGjPFdNkCIFZgPgVXkkcmBf7dBg8tE2ndTF7IzTTWpZI4Ahz8CtlYV5thWf5L xduypsO2tFYJpKt92zfyi3vjDV+lUkUnpditqzgfS6Zi5K3l63GEjp2/MNklpuAspxgA 4uIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=YffvJKmqGnNOFrJNUBozqcvaEBhfok9GG307YN+iOis=; b=cOlZaxJNWwjXwl0EdodYkEIUbfq4YuDQAeRkDBEmsA8QXoZNb7NNlVScamlQ6INl4v Jl1n/AU3i/u3CUpONwgRl3UHAe6wPxkUbGuJH4laPsvTNi9SElQnZIGjO4xp3lUA/aHl Ag/ShjndzJ9xbtPQE1f+gauiX3zobLQEPmOEy1HlUHRnf47rlkXpIkkJyHifSUDLMLR5 zXcD1urfhxWdt7Dm06r4rWvd3YnLVx9g6+pTHxrF5rophTRVbtlNz0F5Ns8Qn19nksU5 JcTzhp8xy0oSycj735c97vblqUFc/8vWO8erlvi+uv9Zf0o7VOdWmK0AJzVfWmIRbaI7 LVuA== X-Gm-Message-State: AOAM532EyIP20VandXU8Gt4IUOByEoepi/aSB6NlZ68/tGTWCpt6UZFN 5MoQ4XTlGLLrVb47vJXyy4DILgY/DIl6hRngOQpv X-Received: from ajr0.svl.corp.google.com ([2620:15c:2cd:203:9892:9f7f:2c27:2968]) (user=axelrasmussen job=sendgmr) by 2002:a25:3f87:0:b0:633:bbe5:c9d9 with SMTP id m129-20020a253f87000000b00633bbe5c9d9mr6992182yba.115.1648161576861; Thu, 24 Mar 2022 15:39:36 -0700 (PDT) Date: Thu, 24 Mar 2022 15:39:29 -0700 In-Reply-To: <20220324223929.1893741-1-axelrasmussen@google.com> Message-Id: <20220324223929.1893741-2-axelrasmussen@google.com> Mime-Version: 1.0 References: <20220324223929.1893741-1-axelrasmussen@google.com> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog Subject: [PATCH 2/2] selftests: fix an unused variable warning in pidfd selftest From: Axel Rasmussen To: Christian Brauner , Shuah Khan , Nathan Chancellor , Nick Desaulniers Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev, Axel Rasmussen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 I fixed a few warnings like this in commit e2aa5e650b07 ("selftests: fixup build warnings in pidfd / clone3 tests"), but I missed this one by mistake. Since this variable is unused, remove it. Signed-off-by: Axel Rasmussen --- tools/testing/selftests/pidfd/pidfd_wait.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/pidfd/pidfd_wait.c b/tools/testing/selftests/pidfd/pidfd_wait.c index 17999e082aa7..070c1c876df1 100644 --- a/tools/testing/selftests/pidfd/pidfd_wait.c +++ b/tools/testing/selftests/pidfd/pidfd_wait.c @@ -95,7 +95,6 @@ TEST(wait_states) .flags = CLONE_PIDFD | CLONE_PARENT_SETTID, .exit_signal = SIGCHLD, }; - int ret; pid_t pid; siginfo_t info = { .si_signo = 0, -- 2.35.1.1021.g381101b075-goog