public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH] m68k: coldfire: Prefer unsigned int to bare use of unsigned
@ 2021-11-03  7:22 Jingjing Liu
  2021-11-03  8:02 ` Johan Hovold
  0 siblings, 1 reply; 2+ messages in thread
From: Jingjing Liu @ 2021-11-03  7:22 UTC (permalink / raw)
  To: gerg; +Cc: geert, linux-m68k, linux-kernel, Jingjing Liu

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

Signed-off-by: Jingjing Liu <liujingjing@cdjrlc.com>
---
 arch/m68k/coldfire/m520x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/m68k/coldfire/m520x.c b/arch/m68k/coldfire/m520x.c
index d2f96b40aee1..dca89214bbc6 100644
--- a/arch/m68k/coldfire/m520x.c
+++ b/arch/m68k/coldfire/m520x.c
@@ -106,7 +106,7 @@ static struct clk * const disable_clks[] __initconst = {
 
 static void __init m520x_clk_init(void)
 {
-	unsigned i;
+	unsigned int i;
 
 	/* make sure these clocks are enabled */
 	for (i = 0; i < ARRAY_SIZE(enable_clks); ++i)
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] m68k: coldfire: Prefer unsigned int to bare use of unsigned
  2021-11-03  7:22 [PATCH] m68k: coldfire: Prefer unsigned int to bare use of unsigned Jingjing Liu
@ 2021-11-03  8:02 ` Johan Hovold
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hovold @ 2021-11-03  8:02 UTC (permalink / raw)
  To: Jingjing Liu; +Cc: gerg, geert, linux-m68k, linux-kernel

On Wed, Nov 03, 2021 at 03:22:52PM +0800, Jingjing Liu wrote:
> Fix checkpatch warnings:
> 	WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
> 
> Signed-off-by: Jingjing Liu <liujingjing@cdjrlc.com>

As I just wrote elsewhere:

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-03  8:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-03  7:22 [PATCH] m68k: coldfire: Prefer unsigned int to bare use of unsigned Jingjing Liu
2021-11-03  8:02 ` Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox