h8300: Prefer unsigned int to bare use of unsigned
PATCH 1/1 h8300: Prefer unsigned int to bare use of unsigned
Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by Jingjing Liu <[email protected]>
--- arch/h8300/kernel/sim-console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/h8300/kernel/sim-console.c +1 -1
@@ -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
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