All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] staging: wilc1000: Fix line over 80 characters
@ 2016-03-12 16:30 Anchal Jain
  2016-03-12 16:32 ` [PATCH 1/4] " Anchal Jain
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Anchal Jain @ 2016-03-12 16:30 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: outreachy-kernel

staging: wilc1000: Fix line over 80 characters
staging: wilc1000: Fix line over 80 characters
staging: wilc1000: Fix line over 80 characters
staging: wilc1000: Fix line over 80 characters


Anchal Jain (4):
  staging: wilc1000: Fix line over 80 characters
  staging: wilc1000: Fix line over 80 characters
  staging: wilc1000: Fix line over 80 characters
  staging: wilc1000: Fix line over 80 characters

 drivers/staging/wilc1000/linux_mon.c | 39 ++++++++++++++++++++++++------------
 1 file changed, 26 insertions(+), 13 deletions(-)

-- 
1.9.1



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

* [PATCH 1/4] staging: wilc1000: Fix line over 80 characters
  2016-03-12 16:30 [PATCH 0/4] staging: wilc1000: Fix line over 80 characters Anchal Jain
@ 2016-03-12 16:32 ` Anchal Jain
  2016-03-13  3:52   ` [Outreachy kernel] " Julia Lawall
  2016-03-12 16:34 ` [PATCH 2/4] " Anchal Jain
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Anchal Jain @ 2016-03-12 16:32 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: outreachy-kernel

Break comment lines so that they do not exceed
80 characters. Problem found using checkpatch.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
 drivers/staging/wilc1000/linux_mon.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c
index 7d9e5de..44996e2 100644
--- a/drivers/staging/wilc1000/linux_mon.c
+++ b/drivers/staging/wilc1000/linux_mon.c
@@ -60,8 +60,10 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 	/* Get WILC header */
 	memcpy(&header, (buff - HOST_HDR_OFFSET), HOST_HDR_OFFSET);
 
-	/* The packet offset field conain info about what type of managment frame */
-	/* we are dealing with and ack status */
+	/* The packet offset field conain info
+	 * about what type of managment frame
+	 * we are dealing with and ack status
+	 */
 	pkt_offset = GET_PKT_OFFSET(header);
 
 	if (pkt_offset & IS_MANAGMEMENT_CALLBACK) {
@@ -128,7 +130,9 @@ static void mgmt_tx_complete(void *priv, int status)
 {
 	struct tx_complete_mon_data *pv_data = priv;
 
-	/* incase of fully hosting mode, the freeing will be done in response to the cfg packet */
+	/* incase of fully hosting mode, the freeing
+	 * will be done in response to the cfg packet
+	 */
 	kfree(pv_data->buff);
 
 	kfree(pv_data);
-- 
1.9.1



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

* [PATCH 2/4] staging: wilc1000: Fix line over 80 characters
  2016-03-12 16:30 [PATCH 0/4] staging: wilc1000: Fix line over 80 characters Anchal Jain
  2016-03-12 16:32 ` [PATCH 1/4] " Anchal Jain
@ 2016-03-12 16:34 ` Anchal Jain
  2016-03-12 16:35 ` [PATCH 3/4] " Anchal Jain
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Anchal Jain @ 2016-03-12 16:34 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: outreachy-kernel

Break lines so that they do not exceed
80 characters. Problem found using checkpatch.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
 drivers/staging/wilc1000/linux_mon.c | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c
index 44996e2..55f626a 100644
--- a/drivers/staging/wilc1000/linux_mon.c
+++ b/drivers/staging/wilc1000/linux_mon.c
@@ -69,7 +69,8 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 	if (pkt_offset & IS_MANAGMEMENT_CALLBACK) {
 		/* hostapd callback mgmt frame */
 
-		skb = dev_alloc_skb(size + sizeof(struct wilc_wfi_radiotap_cb_hdr));
+		skb = dev_alloc_skb(size + sizeof(
+			struct wilc_wfi_radiotap_cb_hdr));
 		if (!skb)
 			return;
 
@@ -80,7 +81,8 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 
 		cb_hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
 
-		cb_hdr->hdr.it_len = cpu_to_le16(sizeof(struct wilc_wfi_radiotap_cb_hdr));
+		cb_hdr->hdr.it_len = cpu_to_le16(sizeof(
+					struct wilc_wfi_radiotap_cb_hdr));
 
 		cb_hdr->hdr.it_present = cpu_to_le32(
 				(1 << IEEE80211_RADIOTAP_RATE) |
@@ -96,7 +98,8 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 		}
 
 	} else {
-		skb = dev_alloc_skb(size + sizeof(struct wilc_wfi_radiotap_hdr));
+		skb = dev_alloc_skb(size + sizeof(
+					struct wilc_wfi_radiotap_hdr));
 
 		if (!skb)
 			return;
@@ -105,7 +108,8 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 		hdr = (struct wilc_wfi_radiotap_hdr *)skb_push(skb, sizeof(*hdr));
 		memset(hdr, 0, sizeof(struct wilc_wfi_radiotap_hdr));
 		hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
-		hdr->hdr.it_len = cpu_to_le16(sizeof(struct wilc_wfi_radiotap_hdr));
+		hdr->hdr.it_len = cpu_to_le16(sizeof(
+					struct wilc_wfi_radiotap_hdr));
 		hdr->hdr.it_present = cpu_to_le32
 				(1 << IEEE80211_RADIOTAP_RATE);                   /* | */
 		hdr->rate = 5; /* txrate->bitrate / 5; */
@@ -197,7 +201,8 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb,
 	skb_pull(skb, rtap_len);
 
 	if (skb->data[0] == 0xc0 && (!(memcmp(broadcast, &skb->data[4], 6)))) {
-		skb2 = dev_alloc_skb(skb->len + sizeof(struct wilc_wfi_radiotap_cb_hdr));
+		skb2 = dev_alloc_skb(skb->len + sizeof(
+					struct wilc_wfi_radiotap_cb_hdr));
 
 		memcpy(skb_put(skb2, skb->len), skb->data, skb->len);
 
@@ -206,7 +211,8 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb,
 
 		cb_hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
 
-		cb_hdr->hdr.it_len = cpu_to_le16(sizeof(struct wilc_wfi_radiotap_cb_hdr));
+		cb_hdr->hdr.it_len = cpu_to_le16(sizeof(
+					struct wilc_wfi_radiotap_cb_hdr));
 
 		cb_hdr->hdr.it_present = cpu_to_le32(
 				(1 << IEEE80211_RADIOTAP_RATE) |
-- 
1.9.1



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

* [PATCH 3/4] staging: wilc1000: Fix line over 80 characters
  2016-03-12 16:30 [PATCH 0/4] staging: wilc1000: Fix line over 80 characters Anchal Jain
  2016-03-12 16:32 ` [PATCH 1/4] " Anchal Jain
  2016-03-12 16:34 ` [PATCH 2/4] " Anchal Jain
@ 2016-03-12 16:35 ` Anchal Jain
  2016-03-12 16:38 ` [PATCH 4/4] " Anchal Jain
  2016-03-12 23:47 ` [Outreachy kernel] [PATCH 0/4] " Greg KH
  4 siblings, 0 replies; 7+ messages in thread
From: Anchal Jain @ 2016-03-12 16:35 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: outreachy-kernel

Break lines so that they do not exceed
80 characters. Problem found using checkpatch.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
 drivers/staging/wilc1000/linux_mon.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c
index 55f626a..420f923 100644
--- a/drivers/staging/wilc1000/linux_mon.c
+++ b/drivers/staging/wilc1000/linux_mon.c
@@ -76,7 +76,8 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 
 		memcpy(skb_put(skb, size), buff, size);
 
-		cb_hdr = (struct wilc_wfi_radiotap_cb_hdr *)skb_push(skb, sizeof(*cb_hdr));
+		cb_hdr = (struct wilc_wfi_radiotap_cb_hdr *)
+				skb_push(skb, sizeof(*cb_hdr));
 		memset(cb_hdr, 0, sizeof(struct wilc_wfi_radiotap_cb_hdr));
 
 		cb_hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
@@ -105,7 +106,8 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 			return;
 
 		memcpy(skb_put(skb, size), buff, size);
-		hdr = (struct wilc_wfi_radiotap_hdr *)skb_push(skb, sizeof(*hdr));
+		hdr = (struct wilc_wfi_radiotap_hdr *)
+			skb_push(skb, sizeof(*hdr));
 		memset(hdr, 0, sizeof(struct wilc_wfi_radiotap_hdr));
 		hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
 		hdr->hdr.it_len = cpu_to_le16(sizeof(
@@ -206,7 +208,8 @@ static netdev_tx_t WILC_WFI_mon_xmit(struct sk_buff *skb,
 
 		memcpy(skb_put(skb2, skb->len), skb->data, skb->len);
 
-		cb_hdr = (struct wilc_wfi_radiotap_cb_hdr *)skb_push(skb2, sizeof(*cb_hdr));
+		cb_hdr = (struct wilc_wfi_radiotap_cb_hdr *)
+				skb_push(skb2, sizeof(*cb_hdr));
 		memset(cb_hdr, 0, sizeof(struct wilc_wfi_radiotap_cb_hdr));
 
 		cb_hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
-- 
1.9.1



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

* [PATCH 4/4] staging: wilc1000: Fix line over 80 characters
  2016-03-12 16:30 [PATCH 0/4] staging: wilc1000: Fix line over 80 characters Anchal Jain
                   ` (2 preceding siblings ...)
  2016-03-12 16:35 ` [PATCH 3/4] " Anchal Jain
@ 2016-03-12 16:38 ` Anchal Jain
  2016-03-12 23:47 ` [Outreachy kernel] [PATCH 0/4] " Greg KH
  4 siblings, 0 replies; 7+ messages in thread
From: Anchal Jain @ 2016-03-12 16:38 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: outreachy-kernel

Remove unwanted space between comment and
code so that they do not exceed 80
characters.Problem found using checkpatch.

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
 drivers/staging/wilc1000/linux_mon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c
index 420f923..4e72f66 100644
--- a/drivers/staging/wilc1000/linux_mon.c
+++ b/drivers/staging/wilc1000/linux_mon.c
@@ -113,7 +113,7 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
 		hdr->hdr.it_len = cpu_to_le16(sizeof(
 					struct wilc_wfi_radiotap_hdr));
 		hdr->hdr.it_present = cpu_to_le32
-				(1 << IEEE80211_RADIOTAP_RATE);                   /* | */
+				(1 << IEEE80211_RADIOTAP_RATE); /* | */
 		hdr->rate = 5; /* txrate->bitrate / 5; */
 	}
 
-- 
1.9.1



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

* Re: [Outreachy kernel] [PATCH 0/4] staging: wilc1000: Fix line over 80 characters
  2016-03-12 16:30 [PATCH 0/4] staging: wilc1000: Fix line over 80 characters Anchal Jain
                   ` (3 preceding siblings ...)
  2016-03-12 16:38 ` [PATCH 4/4] " Anchal Jain
@ 2016-03-12 23:47 ` Greg KH
  4 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2016-03-12 23:47 UTC (permalink / raw)
  To: Anchal Jain; +Cc: outreachy-kernel

On Sat, Mar 12, 2016 at 10:00:04PM +0530, Anchal Jain wrote:
> staging: wilc1000: Fix line over 80 characters
> staging: wilc1000: Fix line over 80 characters
> staging: wilc1000: Fix line over 80 characters
> staging: wilc1000: Fix line over 80 characters
> 
> 
> Anchal Jain (4):
>   staging: wilc1000: Fix line over 80 characters
>   staging: wilc1000: Fix line over 80 characters
>   staging: wilc1000: Fix line over 80 characters
>   staging: wilc1000: Fix line over 80 characters

You can't send 4 patches all with the same commit message, yet doing
different things, I can't accept that, sorry.  Please fix up and make
them unique.

greg k-h


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

* Re: [Outreachy kernel] [PATCH 1/4] staging: wilc1000: Fix line over 80 characters
  2016-03-12 16:32 ` [PATCH 1/4] " Anchal Jain
@ 2016-03-13  3:52   ` Julia Lawall
  0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2016-03-13  3:52 UTC (permalink / raw)
  To: Anchal Jain; +Cc: outreachy-kernel



On Sat, 12 Mar 2016, Anchal Jain wrote:

> Break comment lines so that they do not exceed
> 80 characters. Problem found using checkpatch.
> 
> Signed-off-by: Anchal Jain <anchalj109@gmail.com>
> ---
>  drivers/staging/wilc1000/linux_mon.c | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/wilc1000/linux_mon.c b/drivers/staging/wilc1000/linux_mon.c
> index 7d9e5de..44996e2 100644
> --- a/drivers/staging/wilc1000/linux_mon.c
> +++ b/drivers/staging/wilc1000/linux_mon.c
> @@ -60,8 +60,10 @@ void WILC_WFI_monitor_rx(u8 *buff, u32 size)
>  	/* Get WILC header */
>  	memcpy(&header, (buff - HOST_HDR_OFFSET), HOST_HDR_OFFSET);
>  
> -	/* The packet offset field conain info about what type of managment frame */
> -	/* we are dealing with and ack status */
> +	/* The packet offset field conain info
> +	 * about what type of managment frame
> +	 * we are dealing with and ack status

There is no need to make the lines so short.  Also, if you are redoing the 
multiline comment, it may as well also go to the right format, with /* on 
a line by itself at the start.

julia

> +	 */
>  	pkt_offset = GET_PKT_OFFSET(header);
>  
>  	if (pkt_offset & IS_MANAGMEMENT_CALLBACK) {
> @@ -128,7 +130,9 @@ static void mgmt_tx_complete(void *priv, int status)
>  {
>  	struct tx_complete_mon_data *pv_data = priv;
>  
> -	/* incase of fully hosting mode, the freeing will be done in response to the cfg packet */
> +	/* incase of fully hosting mode, the freeing
> +	 * will be done in response to the cfg packet
> +	 */
>  	kfree(pv_data->buff);
>  
>  	kfree(pv_data);
> -- 
> 1.9.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/34df57c2a9e66d8279f7c3b948896da328c382ea.1457800084.git.anchalj109%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
> 


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

end of thread, other threads:[~2016-03-13  3:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-12 16:30 [PATCH 0/4] staging: wilc1000: Fix line over 80 characters Anchal Jain
2016-03-12 16:32 ` [PATCH 1/4] " Anchal Jain
2016-03-13  3:52   ` [Outreachy kernel] " Julia Lawall
2016-03-12 16:34 ` [PATCH 2/4] " Anchal Jain
2016-03-12 16:35 ` [PATCH 3/4] " Anchal Jain
2016-03-12 16:38 ` [PATCH 4/4] " Anchal Jain
2016-03-12 23:47 ` [Outreachy kernel] [PATCH 0/4] " 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.