[PATCH] kernel: Prefer `unsigned int` over bare `unsigned`

Alexey Suchkov posted 1 patch 1 week, 5 days ago
kernel/exit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] kernel: Prefer `unsigned int` over bare `unsigned`
Posted by Alexey Suchkov 1 week, 5 days ago
This removes 'scripts/checkpatch.pl' warning about using `unsigned`
instead of `unsigned int`. The warning:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
1604: FILE: kernel/exit.c:1604:
+static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode,

Signed-off-by: Alexey Suchkov <dywoq.contact@gmail.com>
---
 kernel/exit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/exit.c b/kernel/exit.c
index ede3117fa..d54c3badb 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1601,7 +1601,7 @@ bool pid_child_should_wake(struct wait_opts *wo, struct task_struct *p)
 	return true;
 }
 
-static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode,
+static int child_wait_callback(wait_queue_entry_t *wait, unsigned int mode,
 				int sync, void *key)
 {
 	struct wait_opts *wo = container_of(wait, struct wait_opts,
-- 
2.53.0