All of lore.kernel.org
 help / color / mirror / Atom feed
From: chenweilong <chenweilong@huawei.com>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: davem@davemloft.net, kuznet@ms2.inr.ac.ru, jmorris@namei.org,
	yoshfuji@linux-ipv6.org, kaber@trash.net,
	steffen.klassert@secunet.com, herbert@gondor.apana.org.au,
	netdev@vger.kernel.org, netfilter-devel@vger.kernel.org,
	netfilter@vger.kernel.org
Subject: Re: [patch net-next 6/7] ipv4: ERROR: code indent should use tabs where possible
Date: Mon, 23 Dec 2013 10:11:40 +0800	[thread overview]
Message-ID: <52B79BDC.4060107@huawei.com> (raw)
In-Reply-To: <1387561986.1549.9.camel@bwh-desktop.uk.level5networks.com>

On 2013/12/21 1:53, Ben Hutchings wrote:
> On Fri, 2013-12-20 at 19:57 +0800, Chen Weilong wrote:
>> From: Weilong Chen <chenweilong@huawei.com>
>>
>>
>> Signed-off-by: Weilong Chen <chenweilong@huawei.com>
>> ---
>>  net/ipv4/cipso_ipv4.c      | 6 +++---
>>  net/ipv4/sysctl_net_ipv4.c | 2 +-
>>  net/ipv4/xfrm4_mode_beet.c | 2 +-
>>  3 files changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
>> index 4b59b6e..081f51a 100644
>> --- a/net/ipv4/cipso_ipv4.c
>> +++ b/net/ipv4/cipso_ipv4.c
>> @@ -1336,7 +1336,7 @@ static int cipso_v4_parsetag_rbm(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -		                       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
>> @@ -1432,7 +1432,7 @@ static int cipso_v4_parsetag_enum(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -			               netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
>> @@ -1527,7 +1527,7 @@ static int cipso_v4_parsetag_rng(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -			               netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
> [...]
> 
> These lines are still excessively indented (one extra tab is enough),
> and could just be appended to the lines above them:
> 
> 		secattr->attr.mls.cat = netlbl_secattr_catmap_alloc(GFP_ATOMIC);
> 
> (exactly 80 columns long).
> 
> Ben.
> 
OK,
That's very good,
Thanks!


WARNING: multiple messages have this Message-ID (diff)
From: chenweilong <chenweilong@huawei.com>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: <davem@davemloft.net>, <kuznet@ms2.inr.ac.ru>,
	<jmorris@namei.org>, <yoshfuji@linux-ipv6.org>, <kaber@trash.net>,
	<steffen.klassert@secunet.com>, <herbert@gondor.apana.org.au>,
	<netdev@vger.kernel.org>, <netfilter-devel@vger.kernel.org>,
	<netfilter@vger.kernel.org>
Subject: Re: [patch net-next 6/7] ipv4: ERROR: code indent should use tabs where possible
Date: Mon, 23 Dec 2013 10:11:40 +0800	[thread overview]
Message-ID: <52B79BDC.4060107@huawei.com> (raw)
In-Reply-To: <1387561986.1549.9.camel@bwh-desktop.uk.level5networks.com>

On 2013/12/21 1:53, Ben Hutchings wrote:
> On Fri, 2013-12-20 at 19:57 +0800, Chen Weilong wrote:
>> From: Weilong Chen <chenweilong@huawei.com>
>>
>>
>> Signed-off-by: Weilong Chen <chenweilong@huawei.com>
>> ---
>>  net/ipv4/cipso_ipv4.c      | 6 +++---
>>  net/ipv4/sysctl_net_ipv4.c | 2 +-
>>  net/ipv4/xfrm4_mode_beet.c | 2 +-
>>  3 files changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
>> index 4b59b6e..081f51a 100644
>> --- a/net/ipv4/cipso_ipv4.c
>> +++ b/net/ipv4/cipso_ipv4.c
>> @@ -1336,7 +1336,7 @@ static int cipso_v4_parsetag_rbm(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -		                       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
>> @@ -1432,7 +1432,7 @@ static int cipso_v4_parsetag_enum(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -			               netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
>> @@ -1527,7 +1527,7 @@ static int cipso_v4_parsetag_rng(const struct cipso_v4_doi *doi_def,
>>  
>>  	if (tag_len > 4) {
>>  		secattr->attr.mls.cat =
>> -			               netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>> +				       netlbl_secattr_catmap_alloc(GFP_ATOMIC);
>>  		if (secattr->attr.mls.cat == NULL)
>>  			return -ENOMEM;
>>  
> [...]
> 
> These lines are still excessively indented (one extra tab is enough),
> and could just be appended to the lines above them:
> 
> 		secattr->attr.mls.cat = netlbl_secattr_catmap_alloc(GFP_ATOMIC);
> 
> (exactly 80 columns long).
> 
> Ben.
> 
OK,
That's very good,
Thanks!


  reply	other threads:[~2013-12-23  2:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 11:57 [patch net-next 0/7] fix checkpatch errors Chen Weilong
2013-12-20 11:57 ` Chen Weilong
2013-12-20 11:57 ` [patch net-next 1/7] ipv4: do clean up with spaces Chen Weilong
2013-12-20 11:57   ` Chen Weilong
2013-12-20 11:57 ` [patch net-next 3/7] ipv4: fix checkpatch error with foo * bar Chen Weilong
2013-12-20 11:57   ` Chen Weilong
2013-12-20 11:57 ` [patch net-next 4/7] ipv4: fix all space errors in file igmp.c Chen Weilong
2013-12-20 11:57   ` Chen Weilong
2013-12-20 11:57 ` [patch net-next 5/7] ipv4: ERROR: do not initialise globals to 0 or NULL Chen Weilong
2013-12-20 11:57   ` Chen Weilong
2013-12-20 11:57 ` [patch net-next 6/7] ipv4: ERROR: code indent should use tabs where possible Chen Weilong
2013-12-20 11:57   ` Chen Weilong
2013-12-20 17:53   ` Ben Hutchings
2013-12-20 17:53     ` Ben Hutchings
2013-12-23  2:11     ` chenweilong [this message]
2013-12-23  2:11       ` chenweilong
2013-12-20 11:57 ` [patch net-next 7/7] ipv4: ERROR: do not use C99 // comments Chen Weilong
2013-12-20 11:57   ` Chen Weilong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52B79BDC.4060107@huawei.com \
    --to=chenweilong@huawei.com \
    --cc=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=jmorris@namei.org \
    --cc=kaber@trash.net \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=netdev@vger.kernel.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=netfilter@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.