Skip to contentSkip to conversation

drivers: watchdog: Fixed missing blank line warning

PATCH Superseded Athira Lekshmi 2 participants 9 messages Dec 16, 2014

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 drivers: watchdog: Fixed missing blank line warning

Added a new line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/wdt_pci.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/watchdog/wdt_pci.c +2 -0
index 48b2c05..b84a180 100644
@@ -279,6 +279,7 @@ static int wdtpci_get_temperature(int *temperature)
 {
 	unsigned short c;
 	unsigned long flags;
+
 	spin_lock_irqsave(&wdtpci_lock, flags);
 	c = inb(WDT_RT);
 	udelay(8);
@@ -366,6 +367,7 @@ static ssize_t wdtpci_write(struct file *file, const char __user *buf,
 
 			for (i = 0; i != count; i++) {
 				char c;
+
 				if (get_user(c, buf + i))
 					return -EFAULT;
 				if (c == 'V')
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/8 drivers: watchdog: Fixed missing blank line warning

Added a new line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/sch311x_wdt.c |    1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/sch311x_wdt.c +1 -0
index b96127e..b550c83 100644
@@ -233,6 +233,7 @@ static ssize_t sch311x_wdt_write(struct file *file, const char __user *buf,
 
 			for (i = 0; i != count; i++) {
 				char c;
+
 				if (get_user(c, buf + i))
 					return -EFAULT;
 				if (c == 'V')
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 3/8 drivers: watchdog: Fixed missing blank line warning

In reply to Athira Lekshmi

Added a blank line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/alim1535_wdt.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/watchdog/alim1535_wdt.c +2 -0
index 3a17fbd..a505a78 100644
@@ -154,6 +154,7 @@ static ssize_t ali_write(struct file *file, const char __user *data,
 			   the magic character */
 			for (i = 0; i != len; i++) {
 				char c;
+
 				if (get_user(c, data + i))
 					return -EFAULT;
 				if (c == 'V')
@@ -218,6 +219,7 @@ static long ali_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	case WDIOC_SETTIMEOUT:
 	{
 		int new_timeout;
+
 		if (get_user(new_timeout, p))
 			return -EFAULT;
 		if (ali_settimer(new_timeout))
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH 4/8 drivers: watchdog: Fixed missing blank line warning

In reply to Athira Lekshmi

Added a blank line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/advantechwdt.c |    1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/advantechwdt.c +1 -0
index 7796db7..74e49ed 100644
@@ -121,6 +121,7 @@ static ssize_t advwdt_write(struct file *file, const char __user *buf,
 
 			for (i = 0; i != count; i++) {
 				char c;
+
 				if (get_user(c, buf + i))
 					return -EFAULT;
 				if (c == 'V')
Signature · 1 line
1.7.9.5
#4 lore raw

PATCH 5/8 drivers: watchdog: Fixed missing blank line warning

In reply to Athira Lekshmi

Added a blank line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/acquirewdt.c |    1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/acquirewdt.c +1 -0
index 5614416..d78a120 100644
@@ -132,6 +132,7 @@ static ssize_t acq_write(struct file *file, const char __user *buf,
 			   magic character */
 			for (i = 0; i != count; i++) {
 				char c;
+
 				if (get_user(c, buf + i))
 					return -EFAULT;
 				if (c == 'V')
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH 6/8 drivers: watchdog: Fixed missing blank line warning

In reply to Athira Lekshmi

Added a blank line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/ar7_wdt.c |    1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/ar7_wdt.c +1 -0
index ae6c287..d001365 100644
@@ -202,6 +202,7 @@ static ssize_t ar7_wdt_write(struct file *file, const char *data,
 		expect_close = 0;
 		for (i = 0; i < len; ++i) {
 			char c;
+
 			if (get_user(c, data + i))
 				return -EFAULT;
 			if (c == 'V')
Signature · 1 line
1.7.9.5
#6 lore raw

PATCH 7/8 drivers: watchdog: Fixed missing blank line warning

In reply to Athira Lekshmi

Added a blank line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/at91sam9_wdt.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/watchdog/at91sam9_wdt.c +3 -0
index 489729b..794a34a 100644
@@ -82,6 +82,7 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started "
 #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd)
 struct at91wdt {
 	struct watchdog_device wdd;
+
 	void __iomem *base;
 	unsigned long next_heartbeat;	/* the next_heartbeat for the timer */
 	struct timer_list timer;	/* The timer that pings the watchdog */
@@ -121,6 +122,7 @@ static inline void at91_wdt_reset(struct at91wdt *wdt)
 static void at91_ping(unsigned long data)
 {
 	struct at91wdt *wdt = (struct at91wdt *)data;
+
 	if (time_before(jiffies, wdt->next_heartbeat) ||
 	    !watchdog_active(&wdt->wdd)) {
 		at91_wdt_reset(wdt);
@@ -372,6 +374,7 @@ static int __init at91wdt_probe(struct platform_device *pdev)
 static int __exit at91wdt_remove(struct platform_device *pdev)
 {
 	struct at91wdt *wdt = platform_get_drvdata(pdev);
+
 	watchdog_unregister_device(&wdt->wdd);
 
 	pr_warn("I quit now, hardware will probably reboot!\n");
Signature · 1 line
1.7.9.5
#7 lore raw

PATCH 8/8 drivers: watchdog: Fixed missing blank line warning

In reply to Athira Lekshmi

Added a blank line after declarations to remove the warning:
'Missing blank line after declarations'

---
 drivers/watchdog/eurotechwdt.c |    1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/eurotechwdt.c +1 -0
index 23ee532..86b19ee 100644
@@ -210,6 +210,7 @@ size_t count, loff_t *ppos)
 
 			for (i = 0; i != count; i++) {
 				char c;
+
 				if (get_user(c, buf + i))
 					return -EFAULT;
 				if (c == 'V')
Signature · 1 line
1.7.9.5
maintainer
#8 lore raw
In reply to Athira Lekshmi
Quoted 1 line · Athira Lekshmi

Added a new line after declarations to remove the warning:

'Add', per SubmittingPatches, Chapter 2.

You might also want to add that this is a checkpatch warning (not a compiler warning).

Quoted 2 lines

'Missing blank line after declarations'

"drivers" in the subject line of your patches is irrelevant. On the other side, the actual drivers you are touching are missing, resulting in eight identical subject lines. That is not really helpful.

Use something like "watchdog: wdt_pci: ..." to give the maintainer a hint about the modified driver.

Guenter

Quoted 32 lines
---
 drivers/watchdog/wdt_pci.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/watchdog/wdt_pci.c +2 -0
index 48b2c05..b84a180 100644
@@ -279,6 +279,7 @@ static int wdtpci_get_temperature(int *temperature)
 {
 	unsigned short c;
 	unsigned long flags;
+
 	spin_lock_irqsave(&wdtpci_lock, flags);
 	c = inb(WDT_RT);
 	udelay(8);
@@ -366,6 +367,7 @@ static ssize_t wdtpci_write(struct file *file, const char __user *buf,
 
 			for (i = 0; i != count; i++) {
 				char c;
+
 				if (get_user(c, buf + i))
 					return -EFAULT;
 				if (c == 'V')
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html