Skip to contentSkip to conversation

h8300: Prefer unsigned int to bare use of unsigned

PATCH In review Jingjing Liu 2 participants 2 messages Nov 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 h8300: Prefer unsigned int to bare use of unsigned

Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 arch/h8300/kernel/sim-console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/h8300/kernel/sim-console.c +1 -1
index 03aa35b1a08c..4a3e5d95e29a 100644
@@ -11,7 +11,7 @@
 #include <linux/init.h>
 #include <linux/serial_core.h>
 
-static void sim_write(struct console *con, const char *s, unsigned n)
+static void sim_write(struct console *con, const char *s, unsigned int n)
 {
 	register const char *_ptr __asm__("er1") = s;
 	register const unsigned _len __asm__("er2") = n;
Signature · 1 line
2.33.1
#1 lore raw
Quoted 2 lines · Jingjing Liu

Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Please don't run checkpatch.pl on code that's already in the kernel. Use it to check your own patches before submitting them.

If you want to practise the patch submission process you can do so in drivers/staging/ where "clean ups" such as this one are currently accepted.

Johan