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 BF1881D0DC4; Wed, 2 Oct 2024 14:05:27 +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=1727877927; cv=none; b=ZNcL5bQGgg9EdXjry/G+KC5urmelBL5jQW2jWl+Uo9mwl3lQQOWP5DKzLniRZBxmOb7FfFRKZIx67fak1CYxjcHBAGr+N7zRtY8AsAF64MSJvc6AFJ+3Vqczpti44X3aAMjmASeBeuAGAZetQj1PjDYTRdLg34RduguLiF525K4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727877927; c=relaxed/simple; bh=83qNzhrZHNI8VWMFEYvDviYnxOEti1Eoh3L1DVNbqac=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Uqn8b+TptAxcP7jZXwOVkQJVFGkL4zmj3JXnWO9oYQ23Nz48qm2LsfvLq6i2ZLj+a6VYrhnI3xEiNqhL/BghziPbyiQzkUV/WXF2kBfClzVTiRxAdLAM1YIlJnxxwS4CmJY+X5OwAGxnHycOFDqgxNnYjW3ZMfnCMyYjGf2YWpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BHtNQu4b; 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="BHtNQu4b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 444EAC4CEC2; Wed, 2 Oct 2024 14:05:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727877927; bh=83qNzhrZHNI8VWMFEYvDviYnxOEti1Eoh3L1DVNbqac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BHtNQu4biy4wIGOO2ZnQjKKcFflx0EHWCmOi/S4epOufzBv5/VF8ulDIHyOOrcVGy ehY7SOJHBZLVX+QI5g9QONkNN8W7BraTIjNCxTHXEzGYuzK5MGvP4g27Gwt6tKRRc2 neA8nGED342Kk3dQ8vk7DDoFwhzgvcpFQGxM+uDI= 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 243/634] selftests/bpf: Fix missing BUILD_BUG_ON() declaration Date: Wed, 2 Oct 2024 14:55:43 +0200 Message-ID: <20241002125820.690472647@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 6495eb79ca7d15bd87c38d77307e8f9b6b7bf4ef ] Explicitly include '' to fix errors seen compiling with gcc targeting mips64el/musl-libc: user_ringbuf.c: In function 'test_user_ringbuf_loop': user_ringbuf.c:426:9: error: implicit declaration of function 'BUILD_BUG_ON' [-Werror=implicit-function-declaration] 426 | BUILD_BUG_ON(total_samples <= c_max_entries); | ^~~~~~~~~~~~ cc1: all warnings being treated as errors Fixes: e5a9df51c746 ("selftests/bpf: Add selftests validating the user ringbuf") Signed-off-by: Tony Ambardar Signed-off-by: Andrii Nakryiko Link: https://lore.kernel.org/bpf/b28575f9221ec54871c46a2e87612bb4bbf46ccd.1721713597.git.tony.ambardar@gmail.com Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/prog_tests/user_ringbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/prog_tests/user_ringbuf.c b/tools/testing/selftests/bpf/prog_tests/user_ringbuf.c index e51721df14fc1..dfff6feac12c3 100644 --- a/tools/testing/selftests/bpf/prog_tests/user_ringbuf.c +++ b/tools/testing/selftests/bpf/prog_tests/user_ringbuf.c @@ -4,6 +4,7 @@ #define _GNU_SOURCE #include #include +#include #include #include #include -- 2.43.0