Skip to contentSkip to conversation

kernel: Prefer `unsigned int` over bare `unsigned`

PATCH New Alexey Suchkov 1 participant 1 message Mar 22

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: Prefer `unsigned int` over bare `unsigned`

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,

---
 kernel/exit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/exit.c +1 -1
index ede3117fa..d54c3badb 100644
@@ -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,
Signature · 1 line
2.53.0