Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1581386 > unrolled thread

[PATCH v7 0/2] staging: wlan-ng: align else if statement to coding standard

Started byMaksymilian Piechota <maksymilianpiechota@gmail.com>
First post2017-02-15 16:10 +0100
Last post2017-02-24 17:40 +0100
Articles 6 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v7 0/2] staging: wlan-ng: align else if statement to coding  standard Maksymilian Piechota <maksymilianpiechota@gmail.com> - 2017-02-15 16:10 +0100
    [PATCH v7 2/2] staging: wlan-ng: move logical continuation at the  end of line Maksymilian Piechota <maksymilianpiechota@gmail.com> - 2017-02-15 16:20 +0100
    [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single  line Maksymilian Piechota <maksymilianpiechota@gmail.com> - 2017-02-15 16:20 +0100
      Re: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a  single line Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-02-16 19:30 +0100
        Re: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a  single line Maksymilian Piechota <maksymilianpiechota@gmail.com> - 2017-02-17 15:40 +0100
          Re: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a  single line Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-02-24 17:40 +0100

#1581386 — [PATCH v7 0/2] staging: wlan-ng: align else if statement to coding standard

FromMaksymilian Piechota <maksymilianpiechota@gmail.com>
Date2017-02-15 16:10 +0100
Subject[PATCH v7 0/2] staging: wlan-ng: align else if statement to coding standard
Message-ID<tb9ns-1Ak-19@gated-at.bofh.it>
PATCHv0:

  - Spaces replaced with tabs

Maksymilian Piechota (1):
  staging: wlan-ng: This patch fixes the checkpatch.pl warning:

else if statement still did not fulfill coding standard requirements.


PATCHv2:

  - else if statement moved to single line

Maksymilian Piechota (1):
  staging: wlan-ng: This patch fixes the checkpatch.pl warning:

Subject was not precise.

PATCHv3:

  - Subject is more precise
  - Changelog text describe every change  

Maksymilian Piechota (1):
  staging: lustre: align else if statement to coding standard

Too much changes for one patch.

PATCHv4:
  
  - Previous patch breaked up to particular patches for every change

Maksymilian Piechota (2):
  staging: lustre: move logical continuations at the end of line
  staging: lustre: move else if statement to a single line

Continuation of the statement should be realigned

PATCHv5:

  - Wrong prefixes in commits and patches titles changed
  - Else if continuation realigned 

Maksymilian Piechota (3):
  staging: wlan-ng: move logical continuations at the end of line
  staging: wlan-ng: move else if statement to a single line
  staging: wlan-ng: realign else if continuation

Lack of patches history. No changelog text for particular patches

PATCHv6:

  - changelog text for patches added
  - patches history added

Maksymilian Piechota (3):
  staging: wlan-ng: move logical continuations at the end of line
  staging: wlan-ng: move else if statement to a single line
  staging: wlan-ng: realign else if continuation

Checkpatch errors appears between patches.

PATCHv7:

  - Changes made from scratch
  - else if statement moved to a single line
  - logical continuation moved at the end of line

Maksymilian Piechota (2):
  staging: wlan-ng: move else if statement to a single line
  staging: wlan-ng: move logical continuation at the end of line

 drivers/staging/wlan-ng/prism2mgmt.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

-- 
2.1.4

[toc] | [next] | [standalone]


#1581387 — [PATCH v7 2/2] staging: wlan-ng: move logical continuation at the end of line

FromMaksymilian Piechota <maksymilianpiechota@gmail.com>
Date2017-02-15 16:20 +0100
Subject[PATCH v7 2/2] staging: wlan-ng: move logical continuation at the end of line
Message-ID<tb9x7-1Fk-3@gated-at.bofh.it>
In reply to#1581386
move logical continuations at the end of line

Signed-off-by: Maksymilian Piechota <maksymilianpiechota@gmail.com>
---
 drivers/staging/wlan-ng/prism2mgmt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index a45ff00..1cc6c9a 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -1308,8 +1308,8 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
 			hw->sniffhdr = 0;
 			wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
 		} else if ((msg->wlanheader.status ==
-			 P80211ENUM_msgitem_status_data_ok)
-			&& (msg->wlanheader.data == P80211ENUM_truth_true)) {
+			   P80211ENUM_msgitem_status_data_ok) &&
+			   (msg->wlanheader.data == P80211ENUM_truth_true)) {
 			hw->sniffhdr = 1;
 			wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
 		} else {
-- 
2.1.4

[toc] | [prev] | [next] | [standalone]


#1581391 — [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line

FromMaksymilian Piechota <maksymilianpiechota@gmail.com>
Date2017-02-15 16:20 +0100
Subject[PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line
Message-ID<tb9x8-1Fk-19@gated-at.bofh.it>
In reply to#1581386
move else if statement to a single line

Signed-off-by: Maksymilian Piechota <maksymilianpiechota@gmail.com>
---
 drivers/staging/wlan-ng/prism2mgmt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index 16fb2d3..a45ff00 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -1307,8 +1307,7 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
 		    && (msg->prismheader.data == P80211ENUM_truth_true)) {
 			hw->sniffhdr = 0;
 			wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
-		} else
-		    if ((msg->wlanheader.status ==
+		} else if ((msg->wlanheader.status ==
 			 P80211ENUM_msgitem_status_data_ok)
 			&& (msg->wlanheader.data == P80211ENUM_truth_true)) {
 			hw->sniffhdr = 1;
-- 
2.1.4

[toc] | [prev] | [next] | [standalone]


#1582836 — Re: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-02-16 19:30 +0100
SubjectRe: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line
Message-ID<tbyYz-1KY-33@gated-at.bofh.it>
In reply to#1581391
On Wed, Feb 15, 2017 at 10:11:00AM -0500, Maksymilian Piechota wrote:
> move else if statement to a single line
> 
> Signed-off-by: Maksymilian Piechota <maksymilianpiechota@gmail.com>
> ---
>  drivers/staging/wlan-ng/prism2mgmt.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
> index 16fb2d3..a45ff00 100644
> --- a/drivers/staging/wlan-ng/prism2mgmt.c
> +++ b/drivers/staging/wlan-ng/prism2mgmt.c
> @@ -1307,8 +1307,7 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
>  		    && (msg->prismheader.data == P80211ENUM_truth_true)) {
>  			hw->sniffhdr = 0;
>  			wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
> -		} else
> -		    if ((msg->wlanheader.status ==
> +		} else if ((msg->wlanheader.status ==
>  			 P80211ENUM_msgitem_status_data_ok)
>  			&& (msg->wlanheader.data == P80211ENUM_truth_true)) {
>  			hw->sniffhdr = 1;

This patch does not apply to my tree at all :(

Please rebase and resend the series.

thanks,

greg k-h

[toc] | [prev] | [next] | [standalone]


#1583480 — Re: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line

FromMaksymilian Piechota <maksymilianpiechota@gmail.com>
Date2017-02-17 15:40 +0100
SubjectRe: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line
Message-ID<tbRRw-5tj-13@gated-at.bofh.it>
In reply to#1582836
On Thu, Feb 16, 2017 at 10:27:24AM -0800, Greg Kroah-Hartman wrote:
> On Wed, Feb 15, 2017 at 10:11:00AM -0500, Maksymilian Piechota wrote:
> > move else if statement to a single line
> > 
> > Signed-off-by: Maksymilian Piechota <maksymilianpiechota@gmail.com>
> > ---
> >  drivers/staging/wlan-ng/prism2mgmt.c | 3 +--
> >  1 file changed, 1 insertion(+), 2 deletions(-)
> > 
> > diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
> > index 16fb2d3..a45ff00 100644
> > --- a/drivers/staging/wlan-ng/prism2mgmt.c
> > +++ b/drivers/staging/wlan-ng/prism2mgmt.c
> > @@ -1307,8 +1307,7 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
> >  		    && (msg->prismheader.data == P80211ENUM_truth_true)) {
> >  			hw->sniffhdr = 0;
> >  			wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
> > -		} else
> > -		    if ((msg->wlanheader.status ==
> > +		} else if ((msg->wlanheader.status ==
> >  			 P80211ENUM_msgitem_status_data_ok)
> >  			&& (msg->wlanheader.data == P80211ENUM_truth_true)) {
> >  			hw->sniffhdr = 1;
> 
> This patch does not apply to my tree at all :(
> 
> Please rebase and resend the series.
> 
> thanks,
> 
> greg k-h

ok, I've got newest sources and this change is already applied. So what
are the next steps suggested? I've heard there is a possibility to
obtain mentor, right?

[toc] | [prev] | [next] | [standalone]


#1587776 — Re: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2017-02-24 17:40 +0100
SubjectRe: [PATCH v7 1/2] staging: wlan-ng: move else if statement to a single line
Message-ID<ter4u-2Kh-7@gated-at.bofh.it>
In reply to#1583480
On Fri, Feb 17, 2017 at 09:33:01AM -0500, Maksymilian Piechota wrote:
> On Thu, Feb 16, 2017 at 10:27:24AM -0800, Greg Kroah-Hartman wrote:
> > On Wed, Feb 15, 2017 at 10:11:00AM -0500, Maksymilian Piechota wrote:
> > > move else if statement to a single line
> > > 
> > > Signed-off-by: Maksymilian Piechota <maksymilianpiechota@gmail.com>
> > > ---
> > >  drivers/staging/wlan-ng/prism2mgmt.c | 3 +--
> > >  1 file changed, 1 insertion(+), 2 deletions(-)
> > > 
> > > diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
> > > index 16fb2d3..a45ff00 100644
> > > --- a/drivers/staging/wlan-ng/prism2mgmt.c
> > > +++ b/drivers/staging/wlan-ng/prism2mgmt.c
> > > @@ -1307,8 +1307,7 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, void *msgp)
> > >  		    && (msg->prismheader.data == P80211ENUM_truth_true)) {
> > >  			hw->sniffhdr = 0;
> > >  			wlandev->netdev->type = ARPHRD_IEEE80211_PRISM;
> > > -		} else
> > > -		    if ((msg->wlanheader.status ==
> > > +		} else if ((msg->wlanheader.status ==
> > >  			 P80211ENUM_msgitem_status_data_ok)
> > >  			&& (msg->wlanheader.data == P80211ENUM_truth_true)) {
> > >  			hw->sniffhdr = 1;
> > 
> > This patch does not apply to my tree at all :(
> > 
> > Please rebase and resend the series.
> > 
> > thanks,
> > 
> > greg k-h
> 
> ok, I've got newest sources and this change is already applied. So what
> are the next steps suggested?

Suggested for what?

> I've heard there is a possibility to obtain mentor, right?

Mentor for what?

confused,

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web