All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: ks7010: Fix line ending with a '('
@ 2019-10-27  6:02 Frank A. Cancio Bello
  2019-10-27  7:12 ` Greg KH
  2019-10-27  7:28 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 2 replies; 4+ messages in thread
From: Frank A. Cancio Bello @ 2019-10-27  6:02 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel, saiprakash.ranjan, joel

checkpatch.pl message:
"CHECK:OPEN_ENDED_LINE: Lines should not end with a '('"

Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com>
---
 drivers/staging/ks7010/ks_hostif.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 2666f9e30c15..ab731a2f7bb3 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -75,9 +75,8 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
 
 	if (ps_status == PS_SNOOZE) {
 		ks_wlan_hw_wakeup_request(priv);
-		time_left = wait_for_completion_interruptible_timeout(
-				&priv->psstatus.wakeup_wait,
-				msecs_to_jiffies(20));
+		time_left = wait_for_completion_interruptible_timeout(&priv->psstatus.wakeup_wait,
+								      msecs_to_jiffies(20));
 		if (time_left <= 0) {
 			netdev_dbg(priv->net_dev, "wake up timeout or interrupted !!!\n");
 			schedule_work(&priv->wakeup_work);
-- 
2.17.1



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

* Re: [PATCH] staging: ks7010: Fix line ending with a '('
  2019-10-27  6:02 [PATCH] staging: ks7010: Fix line ending with a '(' Frank A. Cancio Bello
@ 2019-10-27  7:12 ` Greg KH
  2019-10-27  7:28 ` [Outreachy kernel] " Julia Lawall
  1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2019-10-27  7:12 UTC (permalink / raw)
  To: Frank A. Cancio Bello; +Cc: outreachy-kernel, saiprakash.ranjan, joel

On Sun, Oct 27, 2019 at 06:02:37AM +0000, Frank A. Cancio Bello wrote:
> checkpatch.pl message:
> "CHECK:OPEN_ENDED_LINE: Lines should not end with a '('"
> 
> Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com>
> ---
>  drivers/staging/ks7010/ks_hostif.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
> index 2666f9e30c15..ab731a2f7bb3 100644
> --- a/drivers/staging/ks7010/ks_hostif.c
> +++ b/drivers/staging/ks7010/ks_hostif.c
> @@ -75,9 +75,8 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
>  
>  	if (ps_status == PS_SNOOZE) {
>  		ks_wlan_hw_wakeup_request(priv);
> -		time_left = wait_for_completion_interruptible_timeout(
> -				&priv->psstatus.wakeup_wait,
> -				msecs_to_jiffies(20));
> +		time_left = wait_for_completion_interruptible_timeout(&priv->psstatus.wakeup_wait,
> +								      msecs_to_jiffies(20));

And now you have created a line over 80 characters, so you can send a
patch fixing that, and around you go :(

Just leave this as-is, it's fine now.

thanks,

greg k-h


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

* Re: [Outreachy kernel] [PATCH] staging: ks7010: Fix line ending with a '('
  2019-10-27  6:02 [PATCH] staging: ks7010: Fix line ending with a '(' Frank A. Cancio Bello
  2019-10-27  7:12 ` Greg KH
@ 2019-10-27  7:28 ` Julia Lawall
  2019-10-28  1:44   ` Frank A. Cancio Bello
  1 sibling, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2019-10-27  7:28 UTC (permalink / raw)
  To: Frank A. Cancio Bello; +Cc: gregkh, outreachy-kernel, saiprakash.ranjan, joel



On Sun, 27 Oct 2019, Frank A. Cancio Bello wrote:

> checkpatch.pl message:
> "CHECK:OPEN_ENDED_LINE: Lines should not end with a '('"
>
> Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com>
> ---
>  drivers/staging/ks7010/ks_hostif.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
> index 2666f9e30c15..ab731a2f7bb3 100644
> --- a/drivers/staging/ks7010/ks_hostif.c
> +++ b/drivers/staging/ks7010/ks_hostif.c
> @@ -75,9 +75,8 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
>
>  	if (ps_status == PS_SNOOZE) {
>  		ks_wlan_hw_wakeup_request(priv);
> -		time_left = wait_for_completion_interruptible_timeout(
> -				&priv->psstatus.wakeup_wait,
> -				msecs_to_jiffies(20));
> +		time_left = wait_for_completion_interruptible_timeout(&priv->psstatus.wakeup_wait,
> +								      msecs_to_jiffies(20));

This doesn't seem like a good solution, since it massively violates the 80
character boundary.  I don't think there is a good solution in this case.

julia

>  		if (time_left <= 0) {
>  			netdev_dbg(priv->net_dev, "wake up timeout or interrupted !!!\n");
>  			schedule_work(&priv->wakeup_work);
> --
> 2.17.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20191027060237.GA26854%40linux-kernel-dev.
>


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

* Re: [Outreachy kernel] [PATCH] staging: ks7010: Fix line ending with a '('
  2019-10-27  7:28 ` [Outreachy kernel] " Julia Lawall
@ 2019-10-28  1:44   ` Frank A. Cancio Bello
  0 siblings, 0 replies; 4+ messages in thread
From: Frank A. Cancio Bello @ 2019-10-28  1:44 UTC (permalink / raw)
  To: Julia Lawall; +Cc: gregkh, outreachy-kernel, saiprakash.ranjan, joel

On Sun, Oct 27, 2019 at 08:28:14AM +0100, Julia Lawall wrote:
> 
> 
> On Sun, 27 Oct 2019, Frank A. Cancio Bello wrote:
> 
> > checkpatch.pl message:
> > "CHECK:OPEN_ENDED_LINE: Lines should not end with a '('"
> >
> > Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com>
> > ---
> >  drivers/staging/ks7010/ks_hostif.c | 5 ++---
> >  1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
> > index 2666f9e30c15..ab731a2f7bb3 100644
> > --- a/drivers/staging/ks7010/ks_hostif.c
> > +++ b/drivers/staging/ks7010/ks_hostif.c
> > @@ -75,9 +75,8 @@ static void ks_wlan_hw_wakeup_task(struct work_struct *work)
> >
> >  	if (ps_status == PS_SNOOZE) {
> >  		ks_wlan_hw_wakeup_request(priv);
> > -		time_left = wait_for_completion_interruptible_timeout(
> > -				&priv->psstatus.wakeup_wait,
> > -				msecs_to_jiffies(20));
> > +		time_left = wait_for_completion_interruptible_timeout(&priv->psstatus.wakeup_wait,
> > +								      msecs_to_jiffies(20));
> 
> This doesn't seem like a good solution, since it massively violates the 80
> character boundary.  I don't think there is a good solution in this case.
> 
> julia
>

Thanks, both Greg and Julia for the quick response.

frank a.

> >  		if (time_left <= 0) {
> >  			netdev_dbg(priv->net_dev, "wake up timeout or interrupted !!!\n");
> >  			schedule_work(&priv->wakeup_work);
> > --
> > 2.17.1
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20191027060237.GA26854%40linux-kernel-dev.
> >


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

end of thread, other threads:[~2019-10-28  1:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-27  6:02 [PATCH] staging: ks7010: Fix line ending with a '(' Frank A. Cancio Bello
2019-10-27  7:12 ` Greg KH
2019-10-27  7:28 ` [Outreachy kernel] " Julia Lawall
2019-10-28  1:44   ` Frank A. Cancio Bello

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.