Return-path: Received: from ns1.pc-advies.be ([83.149.101.17]:41173 "EHLO spo001.leaseweb.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756072Ab3C2RFg (ORCPT ); Fri, 29 Mar 2013 13:05:36 -0400 Date: Fri, 29 Mar 2013 18:05:34 +0100 From: Wim Van Sebroeck To: Fabio Porcedda Cc: linux-watchdog@vger.kernel.org Subject: Re: [PATCH] watchdog: core: fix some whitespace and comment to improve coding style Message-ID: <20130329170534.GT7867@spo001.leaseweb.com> References: <1361969118-19081-1-git-send-email-fabio.porcedda@telit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-watchdog-owner@vger.kernel.org List-Id: linux-watchdog@vger.kernel.org NACK. > On Wed, Feb 27, 2013 at 1:45 PM, Fabio Porcedda > wrote: > > From: Fabio Porcedda > > > > - Fix alignement of some function declarations > > - Remove some superfluous empty lines > > - Fix a comment because of_get_timeout_sec function does not exist > > > > Signed-off-by: Fabio Porcedda > > Cc: Wim Van Sebroeck > > --- > > drivers/watchdog/watchdog_core.c | 4 ++-- > > drivers/watchdog/watchdog_dev.c | 27 ++++++--------------------- > > 2 files changed, 8 insertions(+), 23 deletions(-) > > > > diff --git a/drivers/watchdog/watchdog_core.c b/drivers/watchdog/watchdog_core.c > > index 05d18b4..3bc4ec0 100644 > > --- a/drivers/watchdog/watchdog_core.c > > +++ b/drivers/watchdog/watchdog_core.c > > @@ -36,7 +36,7 @@ > > #include /* For __init/__exit/... */ > > #include /* For ida_* macros */ > > #include /* For IS_ERR macros */ > > -#include /* For of_get_timeout_sec */ > > +#include /* For of_* functions */ > > > > #include "watchdog_core.h" /* For watchdog_dev_register/... */ > > > > @@ -70,7 +70,7 @@ static void watchdog_check_min_max_timeout(struct watchdog_device *wdd) > > * A zero is returned on success and -EINVAL for failure. > > */ > > int watchdog_init_timeout(struct watchdog_device *wdd, > > - unsigned int timeout_parm, struct device *dev) > > + unsigned int timeout_parm, struct device *dev) > > { > > unsigned int t = 0; > > int ret = 0; > > diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c > > index 08b48bb..cfbc806 100644 > > --- a/drivers/watchdog/watchdog_dev.c > > +++ b/drivers/watchdog/watchdog_dev.c > > @@ -58,7 +58,6 @@ static struct watchdog_device *old_wdd; > > * exactly that. > > * We only ping when the watchdog device is running. > > */ > > - > > static int watchdog_ping(struct watchdog_device *wddev) > > { > > int err = 0; > > @@ -91,7 +90,6 @@ out_ping: > > * This function returns zero on success or a negative errno code for > > * failure. > > */ > > - > > static int watchdog_start(struct watchdog_device *wddev) > > { > > int err = 0; > > @@ -124,7 +122,6 @@ out_start: > > * failure. > > * If the 'nowayout' feature was set, the watchdog cannot be stopped. > > */ > > - > > static int watchdog_stop(struct watchdog_device *wddev) > > { > > int err = 0; > > @@ -161,9 +158,8 @@ out_stop: > > * > > * Get the watchdog's status flags. > > */ > > - > > static int watchdog_get_status(struct watchdog_device *wddev, > > - unsigned int *status) > > + unsigned int *status) > > { > > int err = 0; > > > > @@ -190,9 +186,8 @@ out_status: > > * @wddev: the watchdog device to set the timeout for > > * @timeout: timeout to set in seconds > > */ > > - > > static int watchdog_set_timeout(struct watchdog_device *wddev, > > - unsigned int timeout) > > + unsigned int timeout) > > { > > int err; > > > > @@ -224,9 +219,8 @@ out_timeout: > > * > > * Get the time before a watchdog will reboot (if not pinged). > > */ > > - > > static int watchdog_get_timeleft(struct watchdog_device *wddev, > > - unsigned int *timeleft) > > + unsigned int *timeleft) > > { > > int err = 0; > > > > @@ -254,9 +248,8 @@ out_timeleft: > > * @cmd: watchdog command > > * @arg: argument pointer > > */ > > - > > static int watchdog_ioctl_op(struct watchdog_device *wddev, unsigned int cmd, > > - unsigned long arg) > > + unsigned long arg) > > { > > int err; > > > > @@ -288,9 +281,8 @@ out_ioctl: > > * Writing the magic 'V' sequence allows the next close to turn > > * off the watchdog (if 'nowayout' is not set). > > */ > > - > > static ssize_t watchdog_write(struct file *file, const char __user *data, > > - size_t len, loff_t *ppos) > > + size_t len, loff_t *ppos) > > { > > struct watchdog_device *wdd = file->private_data; > > size_t i; > > @@ -328,9 +320,8 @@ static ssize_t watchdog_write(struct file *file, const char __user *data, > > * The watchdog API defines a common set of functions for all watchdogs > > * according to their available features. > > */ > > - > > static long watchdog_ioctl(struct file *file, unsigned int cmd, > > - unsigned long arg) > > + unsigned long arg) > > { > > struct watchdog_device *wdd = file->private_data; > > void __user *argp = (void __user *)arg; > > @@ -407,7 +398,6 @@ static long watchdog_ioctl(struct file *file, unsigned int cmd, > > * Watch out: the /dev/watchdog device is single open, so we make sure > > * it can only be opened once. > > */ > > - > > static int watchdog_open(struct inode *inode, struct file *file) > > { > > int err = -EBUSY; > > @@ -458,7 +448,6 @@ out: > > * stop the watchdog when we have received the magic char (and nowayout > > * was not set), else the watchdog will keep running. > > */ > > - > > static int watchdog_release(struct inode *inode, struct file *file) > > { > > struct watchdog_device *wdd = file->private_data; > > @@ -517,7 +506,6 @@ static struct miscdevice watchdog_miscdev = { > > * /dev/watchdog node. /dev/watchdog is actually a miscdevice and > > * thus we set it up like that. > > */ > > - > > int watchdog_dev_register(struct watchdog_device *watchdog) > > { > > int err, devno; > > @@ -560,7 +548,6 @@ int watchdog_dev_register(struct watchdog_device *watchdog) > > * > > * Unregister the watchdog and if needed the legacy /dev/watchdog device. > > */ > > - > > int watchdog_dev_unregister(struct watchdog_device *watchdog) > > { > > mutex_lock(&watchdog->lock); > > @@ -580,7 +567,6 @@ int watchdog_dev_unregister(struct watchdog_device *watchdog) > > * > > * Allocate a range of chardev nodes to use for watchdog devices > > */ > > - > > int __init watchdog_dev_init(void) > > { > > int err = alloc_chrdev_region(&watchdog_devt, 0, MAX_DOGS, "watchdog"); > > @@ -594,7 +580,6 @@ int __init watchdog_dev_init(void) > > * > > * Release the range of chardev nodes used for watchdog devices > > */ > > - > > void __exit watchdog_dev_exit(void) > > { > > unregister_chrdev_region(watchdog_devt, MAX_DOGS); > > -- > > 1.8.1.1 > > > > ping > > Best regards > -- > Fabio Porcedda