Skip to contentSkip to conversation

Fix multiple checkpatch warnings

PATCH In review Sreya Mittal 2 participants 4 messages Mar 7, 2017 – Mar 9, 2017 Staging

lore
Share & tools
lore
#0 lore raw

cover Fix multiple checkpatch warnings

Fix spelling error of a variable from unkmown to unknown and add a blank line after a function definition.

Sreya Mittal (2):
staging: wilc1000: Fix spelling error
staging: wilc1000: Add blank line after a function

 drivers/staging/wilc1000/wilc_spi.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/2 staging: wilc1000: Fix spelling error

Fix the checkpatch issue:
'unkmown' may be misspelled - perhaps 'unknown'?

---
 drivers/staging/wilc1000/wilc_spi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wilc1000/wilc_spi.c +4 -4
index 5e28adc..34661bb 100644
@@ -965,12 +965,12 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
 				}
 
 				{
-					u32 unkmown_mask;
+					u32 unknown_mask;
 
-					unkmown_mask = ~((1ul << g_spi.nint) - 1);
+					unknown_mask = ~((1ul << g_spi.nint) - 1);
 
-					if ((tmp >> IRG_FLAGS_OFFSET) & unkmown_mask) {
-						dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unkmown_mask);
+					if ((tmp >> IRG_FLAGS_OFFSET) & unknown_mask) {
+						dev_err(&spi->dev, "Unexpected interrupt (2): j=%d, tmp=%x, mask=%x\n", j, tmp, unknown_mask);
 						happended = 1;
 					}
 				}
Signature · 1 line
2.9.3
#2 lore raw

Re: [PATCH 1/2] staging: wilc1000: Fix spelling error

Quoted 7 lines · Sreya Mittal

Fix the checkpatch issue:
'unkmown' may be misspelled - perhaps 'unknown'?

---
 drivers/staging/wilc1000/wilc_spi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Both of these patches do not apply to my tree at all :(

Please rebase and resend.

thanks,

greg k-h

#3 lore raw

PATCH 2/2 staging: wilc1000: Add blank line after a function

In reply to Sreya Mittal

Fix the checkpatch issue:
Please use a blank line after function/struct/union/enum declarations

---
 drivers/staging/wilc1000/wilc_spi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/wilc1000/wilc_spi.c +1 -0
index 34661bb..9b55a06 100644
@@ -1130,6 +1130,7 @@ static int wilc_spi_sync_ext(struct wilc *wilc, int nint)
 
 	return 1;
 }
+
 /********************************************
  *
  *      Global spi HIF function table
Signature · 1 line
2.9.3