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 786B21D07BA; Wed, 2 Oct 2024 14:06:58 +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=1727878018; cv=none; b=Qc3OMD+EeV18hKTKiKjgsGqvKWAeJo7zFpT+TlpoUnaFDMq43zjHEw2ZZzBaQaVocAREV935cpHCT/eQ/74Bw+1LE1J7C7isqdGet1JeeADSYhrpzToEDL5a8ZR7i0aCzFPbYt5ZnoU89npkBqA3GjgmNwifRl0MsRC/jtScPwM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727878018; c=relaxed/simple; bh=/F9XEFYkYZh40ShTC+oyP/ppXEkp9bXstotJUt0HxRM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AAERDd2ZDUlA/C9Bl/JpW+JN7dAnr4fe2Dyq+ziTiJRgnFFYzIOl3Rdm+I2Nk9R+X8gysZh6xbHVfVk6cQmo1CN2J9gfqUvp2/3aAabikR+94l8QLFM7mL4jrConG2XBMmsvKYWXYqLpGpBuXWye4F408g4TR1PmAYJm75HjJak= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LtugO22U; 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="LtugO22U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 055D4C4CEC5; Wed, 2 Oct 2024 14:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727878018; bh=/F9XEFYkYZh40ShTC+oyP/ppXEkp9bXstotJUt0HxRM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LtugO22UXDBD7eOGqrGnOE+EMInv9ZfdZfqtcKE0xWEYwPA+8VqbuzEJ7tatYeK8r Cqu/Wz07grr8IhY3vvnV70O9K4ZL+7+eKByg2ugyOzIsJjksSvQ61yz61DUiPLWHZi TxLLf5Q4jjN2Hvl76IQGnH9U7vhON/T/eB1662SY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tony Ambardar , Andrii Nakryiko , Sasha Levin Subject: [PATCH 6.10 242/634] selftests/bpf: Fix missing UINT_MAX definitions in benchmarks Date: Wed, 2 Oct 2024 14:55:42 +0200 Message-ID: <20241002125820.651845954@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 a2c155131b710959beb508ca6a54769b6b1bd488 ] Include in 'bench.h' to provide a UINT_MAX definition and avoid multiple compile errors against mips64el/musl-libc like: benchs/bench_local_storage.c: In function 'parse_arg': benchs/bench_local_storage.c:40:38: error: 'UINT_MAX' undeclared (first use in this function) 40 | if (ret < 1 || ret > UINT_MAX) { | ^~~~~~~~ benchs/bench_local_storage.c:11:1: note: 'UINT_MAX' is defined in header ''; did you forget to '#include '? 10 | #include +++ |+#include 11 | seen with bench_local_storage.c, bench_local_storage_rcu_tasks_trace.c, and bench_bpf_hashmap_lookup.c. Fixes: 73087489250d ("selftests/bpf: Add benchmark for local_storage get") Signed-off-by: Tony Ambardar Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/8f64a9d9fcff40a7fca090a65a68a9b62a468e16.1721713597.git.tony.ambardar@gmail.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/bench.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/bench.h b/tools/testing/selftests/bpf/bench.h index 68180d8f8558e..005c401b3e227 100644 --- a/tools/testing/selftests/bpf/bench.h +++ b/tools/testing/selftests/bpf/bench.h @@ -10,6 +10,7 @@ #include #include #include +#include struct cpu_set { bool *cpus; -- 2.43.0