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 0DBF21D1302; Wed, 2 Oct 2024 14:06:55 +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=1727878016; cv=none; b=HAMtrUTd5AMi+Cf06WHkifQK9lXgVOimhdhfKr6lTXQ/SuumnwdX7bRXiXNgp/FC534+wT/chPq18goXiel+Dio8tobxlHlMg0je8TDl8K9+TgWgUrQc4/ZcO8JVnpy49sCwwt2knwqavYqIPS9hh9SBjySiWfAB1g8mxRtay1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727878016; c=relaxed/simple; bh=hPGqaxhLI537nNSHojhXs+jAo7eXflYF6UFiyh471F0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HDi2ffSMBB7LVexTfGABdsoMMsvrhHARNe3uufb04JzVMg6p1ONNY8/HsURF2dmnt/SPhdEacw4ILovuokKp5M5vD11owEFrAVsdZGuKRciKv8j48lJkFghbIqrsV3UeF+hC1jIlqYuLD+h1BsYpBN+5IokBZ9amgaUONRvZF0A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j6IQ6RPm; 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="j6IQ6RPm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C64BC4CECE; Wed, 2 Oct 2024 14:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727878015; bh=hPGqaxhLI537nNSHojhXs+jAo7eXflYF6UFiyh471F0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j6IQ6RPmcSQLrzVuJI3DXNXvdfvY7wP8lFc2J+B6dF4f2nzg8gTU8aSZPdeDfOYrr q9xLub0MmQwa9MuBhxR1GfE5CTLbfp1ZLdjfpjpEHmn6ErIUFHeo6AZNKO/ZRACPbw e2ac96H0zQI+AoW2Alct+G2RNq34bRIyYATXaULU= 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 241/634] selftests/bpf: Fix missing ARRAY_SIZE() definition in bench.c Date: Wed, 2 Oct 2024 14:55:41 +0200 Message-ID: <20241002125820.613059901@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 d44c93fc2f5a0c47b23fa03d374e45259abd92d2 ] Add a "bpf_util.h" include to avoid the following error seen compiling for mips64el with musl libc: bench.c: In function 'find_benchmark': bench.c:590:25: error: implicit declaration of function 'ARRAY_SIZE' [-Werror=implicit-function-declaration] 590 | for (i = 0; i < ARRAY_SIZE(benchs); i++) { | ^~~~~~~~~~ cc1: all warnings being treated as errors Fixes: 8e7c2a023ac0 ("selftests/bpf: Add benchmark runner infrastructure") Signed-off-by: Tony Ambardar Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/bc4dde77dfcd17a825d8f28f72f3292341966810.1721713597.git.tony.ambardar@gmail.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/bench.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/bench.c b/tools/testing/selftests/bpf/bench.c index 627b74ae041b5..90dc3aca32bd8 100644 --- a/tools/testing/selftests/bpf/bench.c +++ b/tools/testing/selftests/bpf/bench.c @@ -10,6 +10,7 @@ #include #include #include "bench.h" +#include "bpf_util.h" #include "testing_helpers.h" struct env env = { -- 2.43.0