All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups
@ 2019-03-21 19:54 Jules Irenge
  2019-03-21 19:54 ` [PATCH v2 1/2] staging: pi433: break line after comparison operator to fix checkpatch warning Jules Irenge
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jules Irenge @ 2019-03-21 19:54 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel

This v2 series improves on the naming of the patches 

Jules Irenge (2):
  staging: pi433: break line after comparison operator to fix checkpatch
    warning
  staging: pi433: remove empty space to fix line over 80 characters
    warning

 drivers/staging/pi433/pi433_if.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

-- 
2.20.1



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

* [PATCH v2 1/2] staging: pi433: break line after comparison operator to fix checkpatch warning
  2019-03-21 19:54 [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups Jules Irenge
@ 2019-03-21 19:54 ` Jules Irenge
  2019-03-21 20:00   ` [Outreachy kernel] " Julia Lawall
  2019-03-21 19:54 ` [PATCH v2 2/2] staging: pi433: remove empty space to fix line over 80 characters warning Jules Irenge
  2019-03-22 14:15 ` [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups Greg KH
  2 siblings, 1 reply; 5+ messages in thread
From: Jules Irenge @ 2019-03-21 19:54 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel

 Break line after comparison operator to solve checkpatch.pl warning:
"WARNING: line over 80 characters".

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
 drivers/staging/pi433/pi433_if.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index b2314636dc89..f537722395c6 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -479,7 +479,8 @@ pi433_receive(void *data)
 	/* length byte enabled? */
 	if (dev->rx_cfg.enable_length_byte == OPTION_ON) {
 		retval = wait_event_interruptible(dev->fifo_wait_queue,
-						  dev->free_in_fifo < FIFO_SIZE);
+						  dev->free_in_fifo <
+						  FIFO_SIZE);
 		if (retval) /* wait was interrupted */
 			goto abort;
 
@@ -500,7 +501,8 @@ pi433_receive(void *data)
 		bytes_total--;
 
 		retval = wait_event_interruptible(dev->fifo_wait_queue,
-						  dev->free_in_fifo < FIFO_SIZE);
+						  dev->free_in_fifo <
+						  FIFO_SIZE);
 		if (retval) /* wait was interrupted */
 			goto abort;
 
@@ -513,7 +515,8 @@ pi433_receive(void *data)
 	while (dev->rx_position < bytes_total) {
 		if (!rf69_get_flag(dev->spi, payload_ready)) {
 			retval = wait_event_interruptible(dev->fifo_wait_queue,
-							  dev->free_in_fifo < FIFO_SIZE);
+							  dev->free_in_fifo <
+							  FIFO_SIZE);
 			if (retval) /* wait was interrupted */
 				goto abort;
 		}
-- 
2.20.1



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

* [PATCH v2 2/2] staging: pi433: remove empty space to fix line over 80 characters warning
  2019-03-21 19:54 [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups Jules Irenge
  2019-03-21 19:54 ` [PATCH v2 1/2] staging: pi433: break line after comparison operator to fix checkpatch warning Jules Irenge
@ 2019-03-21 19:54 ` Jules Irenge
  2019-03-22 14:15 ` [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups Greg KH
  2 siblings, 0 replies; 5+ messages in thread
From: Jules Irenge @ 2019-03-21 19:54 UTC (permalink / raw)
  To: gregkh; +Cc: outreachy-kernel

Remove empty space to solve checkpatch.pl warning:
"WARNING: line over 80 characters".

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
 drivers/staging/pi433/pi433_if.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index f537722395c6..76511d01e41f 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -45,10 +45,10 @@
 #include "pi433_if.h"
 #include "rf69.h"
 
-#define N_PI433_MINORS			BIT(MINORBITS) /*32*/	/* ... up to 256 */
-#define MAX_MSG_SIZE			900	/* min: FIFO_SIZE! */
-#define MSG_FIFO_SIZE			65536   /* 65536 = 2^16  */
-#define NUM_DIO				2
+#define N_PI433_MINORS		BIT(MINORBITS) /*32*/	/* ... up to 256 */
+#define MAX_MSG_SIZE		900	/* min: FIFO_SIZE! */
+#define MSG_FIFO_SIZE		65536   /* 65536 = 2^16  */
+#define NUM_DIO			2
 
 static dev_t pi433_dev;
 static DEFINE_IDR(pi433_idr);
-- 
2.20.1



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

* Re: [Outreachy kernel] [PATCH v2 1/2] staging: pi433: break line after comparison operator to fix checkpatch warning
  2019-03-21 19:54 ` [PATCH v2 1/2] staging: pi433: break line after comparison operator to fix checkpatch warning Jules Irenge
@ 2019-03-21 20:00   ` Julia Lawall
  0 siblings, 0 replies; 5+ messages in thread
From: Julia Lawall @ 2019-03-21 20:00 UTC (permalink / raw)
  To: Jules Irenge; +Cc: gregkh, outreachy-kernel



On Thu, 21 Mar 2019, Jules Irenge wrote:

>  Break line after comparison operator to solve checkpatch.pl warning:
> "WARNING: line over 80 characters".
>
> Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
> ---
>  drivers/staging/pi433/pi433_if.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
> index b2314636dc89..f537722395c6 100644
> --- a/drivers/staging/pi433/pi433_if.c
> +++ b/drivers/staging/pi433/pi433_if.c
> @@ -479,7 +479,8 @@ pi433_receive(void *data)
>  	/* length byte enabled? */
>  	if (dev->rx_cfg.enable_length_byte == OPTION_ON) {
>  		retval = wait_event_interruptible(dev->fifo_wait_queue,
> -						  dev->free_in_fifo < FIFO_SIZE);

Even if checkpatch would complain for another reason, it could look nucer
with just one tab less in front of the argument.  Then the whole argument
expression could be kept on one line.

julia

> +						  dev->free_in_fifo <
> +						  FIFO_SIZE);
>  		if (retval) /* wait was interrupted */
>  			goto abort;
>
> @@ -500,7 +501,8 @@ pi433_receive(void *data)
>  		bytes_total--;
>
>  		retval = wait_event_interruptible(dev->fifo_wait_queue,
> -						  dev->free_in_fifo < FIFO_SIZE);
> +						  dev->free_in_fifo <
> +						  FIFO_SIZE);
>  		if (retval) /* wait was interrupted */
>  			goto abort;
>
> @@ -513,7 +515,8 @@ pi433_receive(void *data)
>  	while (dev->rx_position < bytes_total) {
>  		if (!rf69_get_flag(dev->spi, payload_ready)) {
>  			retval = wait_event_interruptible(dev->fifo_wait_queue,
> -							  dev->free_in_fifo < FIFO_SIZE);
> +							  dev->free_in_fifo <
> +							  FIFO_SIZE);
>  			if (retval) /* wait was interrupted */
>  				goto abort;
>  		}
> --
> 2.20.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 post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190321195408.30440-2-jbi.octave%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


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

* Re: [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups
  2019-03-21 19:54 [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups Jules Irenge
  2019-03-21 19:54 ` [PATCH v2 1/2] staging: pi433: break line after comparison operator to fix checkpatch warning Jules Irenge
  2019-03-21 19:54 ` [PATCH v2 2/2] staging: pi433: remove empty space to fix line over 80 characters warning Jules Irenge
@ 2019-03-22 14:15 ` Greg KH
  2 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2019-03-22 14:15 UTC (permalink / raw)
  To: Jules Irenge; +Cc: outreachy-kernel

On Thu, Mar 21, 2019 at 07:54:06PM +0000, Jules Irenge wrote:
> This v2 series improves on the naming of the patches 
> 
> Jules Irenge (2):
>   staging: pi433: break line after comparison operator to fix checkpatch
>     warning
>   staging: pi433: remove empty space to fix line over 80 characters
>     warning
> 
>  drivers/staging/pi433/pi433_if.c | 17 ++++++++++-------
>  1 file changed, 10 insertions(+), 7 deletions(-)

Please make your patches "threaded" so they are all linked together.
'git send-email' will do this automatically for you, I recommend using
that.

thanks,

greg k-h


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

end of thread, other threads:[~2019-03-22 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21 19:54 [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups Jules Irenge
2019-03-21 19:54 ` [PATCH v2 1/2] staging: pi433: break line after comparison operator to fix checkpatch warning Jules Irenge
2019-03-21 20:00   ` [Outreachy kernel] " Julia Lawall
2019-03-21 19:54 ` [PATCH v2 2/2] staging: pi433: remove empty space to fix line over 80 characters warning Jules Irenge
2019-03-22 14:15 ` [PATCH v2 0/2] staging: pi433: line over 80 warnings cleanups Greg KH

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.