2022-08-08 15:56:15

by Xin Gao

[permalink] [raw]
Subject: [PATCH] radix tree test suite: Parameter type completion

'unsigned int' is better than 'unsigned', which has several changes.

Signed-off-by: Xin Gao <[email protected]>
---
tools/testing/radix-tree/iteration_check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/radix-tree/iteration_check.c b/tools/testing/radix-tree/iteration_check.c
index e9908bcb06dd..c53d5dd9d6de 100644
--- a/tools/testing/radix-tree/iteration_check.c
+++ b/tools/testing/radix-tree/iteration_check.c
@@ -162,7 +162,7 @@ static void *tag_entries_fn(void *arg)
}

/* This is a unit test for a bug found by the syzkaller tester */
-void iteration_test(unsigned order, unsigned test_duration)
+void iteration_test(unsigned int order, unsigned int test_duration)
{
int i;

--
2.30.2


2022-08-08 16:51:45

by Matthew Wilcox

[permalink] [raw]
Subject: Re: [PATCH] radix tree test suite: Parameter type completion

On Mon, Aug 08, 2022 at 11:21:42PM +0800, Xin Gao wrote:
> 'unsigned int' is better than 'unsigned', which has several changes.

I don't agree that unsigned int is better than a plain unsigned.