From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8C3019F411; Wed, 2 Oct 2024 14:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727878003; cv=none; b=VMoF+yvjgtoMN020HH49dTAt2FswYqmYYyd4pIhX6P+1rBnXQd8QrXkto086UgDTMWQNqz/9rqZYdgHA+pdEt68xyKMZw4kkH41fnOHVe6JzaO5EmuXYvCYa9n1Lz6n2chaFqG4SpzQj+VWxWiGAy47Qd3D+3lt5rg7kRPvnbU4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727878003; c=relaxed/simple; bh=ZiGHqPeci59JJbLBVkzrNIGCv/Uu+xxFmYDSKVQDYNM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pYAsnUnwnwVcbdLRLFzmNDG9zUP+SMtJux9wc+DpSlM9PhnlRhLfgTSt5JSVS1Xe4Wi3vZs7BnYdNEdN+JUsrqFG82C0EdXOp6tONUdYmGywEndVBPjh9hpNyODQL5r6Gt1u1G3Q9n/YaHTQuwrIO9RwpTmI595tYT0DN0uTbyc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JF8FOnT9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JF8FOnT9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D967C4CEC2; Wed, 2 Oct 2024 14:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727878003; bh=ZiGHqPeci59JJbLBVkzrNIGCv/Uu+xxFmYDSKVQDYNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JF8FOnT9HtvsSCtOlK6aJ3aYutfh3X3G111AlIWnMeRcACXj81Z5oPHH/nsmWAFXt Cr78WRSI7pTVE8Zj+DBHlhq9GOjS1tN/lnS8KnoNKJZ8RrdSZkZpRKvy8jHglAXRKF Im3C3ehAfjqDnomJs55e5Q27jTImGpZvIRJKNLKY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tony Ambardar , Andrii Nakryiko , Geliang Tang , Sasha Levin Subject: [PATCH 6.10 237/634] selftests/bpf: Use pid_t consistently in test_progs.c Date: Wed, 2 Oct 2024 14:55:37 +0200 Message-ID: <20241002125820.453407076@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125811.070689334@linuxfoundation.org> References: <20241002125811.070689334@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tony Ambardar [ Upstream commit ec4fe2f0fa12fd2d0115df7e58414dc26899cc5e ] Use pid_t rather than __pid_t when allocating memory for 'worker_pids' in 'struct test_env', as this is its declared type and also avoids compile errors seen building against musl libc on mipsel64: test_progs.c:1738:49: error: '__pid_t' undeclared (first use in this function); did you mean 'pid_t'? 1738 | env.worker_pids = calloc(sizeof(__pid_t), env.workers); | ^~~~~~~ | pid_t test_progs.c:1738:49: note: each undeclared identifier is reported only once for each function it appears in Fixes: 91b2c0afd00c ("selftests/bpf: Add parallelism to test_progs") Signed-off-by: Tony Ambardar Signed-off-by: Andrii Nakryiko Acked-by: Geliang Tang Link: https://lore.kernel.org/bpf/c6447da51a94babc1931711a43e2ceecb135c93d.1721713597.git.tony.ambardar@gmail.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/test_progs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/test_progs.c b/tools/testing/selftests/bpf/test_progs.c index 89ff704e9dad5..60c5ec0f6abf6 100644 --- a/tools/testing/selftests/bpf/test_progs.c +++ b/tools/testing/selftests/bpf/test_progs.c @@ -1731,7 +1731,7 @@ int main(int argc, char **argv) /* launch workers if requested */ env.worker_id = -1; /* main process */ if (env.workers) { - env.worker_pids = calloc(sizeof(__pid_t), env.workers); + env.worker_pids = calloc(sizeof(pid_t), env.workers); env.worker_socks = calloc(sizeof(int), env.workers); if (env.debug) fprintf(stdout, "Launching %d workers.\n", env.workers); -- 2.43.0