[PATCH] bpf/tests: Fix typos in comments

cp0613@linux.alibaba.com posted 1 patch 1 year, 9 months ago
lib/test_bpf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] bpf/tests: Fix typos in comments
Posted by cp0613@linux.alibaba.com 1 year, 9 months ago
From: Chen Pei <cp0613@linux.alibaba.com>

Currently, there are two comments with same name 
"64-bit ATOMIC magnitudes", the second one should
be "32-bit ATOMIC magnitudes" based on the context.

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
 lib/test_bpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/test_bpf.c b/lib/test_bpf.c
index 569e6d2dc55c..207ff87194db 100644
--- a/lib/test_bpf.c
+++ b/lib/test_bpf.c
@@ -13431,7 +13431,7 @@ static struct bpf_test tests[] = {
 		.stack_depth = 8,
 		.nr_testruns = NR_PATTERN_RUNS,
 	},
-	/* 64-bit atomic magnitudes */
+	/* 32-bit atomic magnitudes */
 	{
 		"ATOMIC_W_ADD: all operand magnitudes",
 		{ },
-- 
2.25.1
Re: [PATCH] bpf/tests: Fix typos in comments
Posted by Yonghong Song 1 year, 9 months ago
On 4/15/24 1:19 AM, cp0613@linux.alibaba.com wrote:
> From: Chen Pei <cp0613@linux.alibaba.com>
>
> Currently, there are two comments with same name
> "64-bit ATOMIC magnitudes", the second one should
> be "32-bit ATOMIC magnitudes" based on the context.
>
> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>

Acked-by: Yonghong Song <yonghong.song@linux.dev>