linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM:kernel: a bug by a redundancy charactor ';'
@ 2013-02-16  6:49 Chen Gang
  2013-02-16  8:04 ` Dirk Behme
  0 siblings, 1 reply; 8+ messages in thread
From: Chen Gang @ 2013-02-16  6:49 UTC (permalink / raw)
  To: linux-arm-kernel


  delete the redundancy charactor ';', which will cause issue.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/arm/kernel/perf_event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
index 31e0eb3..a892067 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
 	}
 
 	if (event->group_leader != event) {
-		if (validate_group(event) != 0);
+		if (validate_group(event) != 0)
 			return -EINVAL;
 	}
 
-- 
1.7.7.6

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

* [PATCH] ARM:kernel: a bug by a redundancy charactor ';'
  2013-02-16  6:49 [PATCH] ARM:kernel: a bug by a redundancy charactor ';' Chen Gang
@ 2013-02-16  8:04 ` Dirk Behme
  2013-02-16  8:38   ` Chen Gang
  0 siblings, 1 reply; 8+ messages in thread
From: Dirk Behme @ 2013-02-16  8:04 UTC (permalink / raw)
  To: linux-arm-kernel

Am 16.02.2013 07:49, schrieb Chen Gang:
>
>    delete the redundancy charactor ';', which will cause issue.
>
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> ---
>   arch/arm/kernel/perf_event.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
> index 31e0eb3..a892067 100644
> --- a/arch/arm/kernel/perf_event.c
> +++ b/arch/arm/kernel/perf_event.c
> @@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
>   	}
>
>   	if (event->group_leader != event) {
> -		if (validate_group(event) != 0);
> +		if (validate_group(event) != 0)
>   			return -EINVAL;
>   	}

Wondering against which branch this patch is, I found that this issue 
isn't in recent mainline from today, but in -next. Introduced by the patch

ARM: perf: simplify __hw_perf_event_init err handling
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=9dcbf466559f6f2f55d60eb5a1bbebc8e694b52a

While the subject/commit message could be improved (at least 
mentioning 'perf' somehow and charactor -> character), the change 
itself looks good.

Best regards

Dirk

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

* [PATCH] ARM:kernel: a bug by a redundancy charactor ';'
  2013-02-16  8:04 ` Dirk Behme
@ 2013-02-16  8:38   ` Chen Gang
  2013-02-16 12:26     ` Will Deacon
  0 siblings, 1 reply; 8+ messages in thread
From: Chen Gang @ 2013-02-16  8:38 UTC (permalink / raw)
  To: linux-arm-kernel

? 2013?02?16? 16:04, Dirk Behme ??:
> 
> Wondering against which branch this patch is, I found that this issue
> isn't in recent mainline from today, but in -next. Introduced by the patch
> 
> ARM: perf: simplify __hw_perf_event_init err handling
> http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=9dcbf466559f6f2f55d60eb5a1bbebc8e694b52a
> 

  for me, either regressing the original patch or committing current
patch are all OK.

> 
> While the subject/commit message could be improved (at least mentioning
> 'perf' somehow and charactor -> character), the change itself looks good.

  if still suggest to commit current patch:
    does the subject like this ?
     [PATCH] ARM:kernel: a bug for perf by a redundancy character ';'


  :-)

  thanks.

-- 
Chen Gang

Asianux Corporation

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

* [PATCH] ARM:kernel: a bug by a redundancy charactor ';'
  2013-02-16  8:38   ` Chen Gang
@ 2013-02-16 12:26     ` Will Deacon
  2013-02-16 13:44       ` Dirk Behme
                         ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Will Deacon @ 2013-02-16 12:26 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Feb 16, 2013 at 08:38:12AM +0000, Chen Gang wrote:
> ? 2013?02?16? 16:04, Dirk Behme ??:
> > 
> > Wondering against which branch this patch is, I found that this issue
> > isn't in recent mainline from today, but in -next. Introduced by the patch
> > 
> > ARM: perf: simplify __hw_perf_event_init err handling
> > http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=9dcbf466559f6f2f55d60eb5a1bbebc8e694b52a
> > 

Damn, I really should have spotted this. Thanks for reporting/fixing it.

> > While the subject/commit message could be improved (at least mentioning
> > 'perf' somehow and charactor -> character), the change itself looks good.
> 
>   if still suggest to commit current patch:
>     does the subject like this ?
>      [PATCH] ARM:kernel: a bug for perf by a redundancy character ';'

If you're ok with the following patch, I'll take it into the ARM perf
tree.

Cheers,

Will

--->8

>From 21fa771c94c4359807bb92dc8532b25c323ac543 Mon Sep 17 00:00:00 2001
From: Chen Gang <gang.chen@asianux.com>
Date: Sat, 16 Feb 2013 06:49:49 +0000
Subject: [PATCH] ARM: perf: remove erroneous semicolon from event
 initialisation

Commit 9dcbf466559f ("ARM: perf: simplify __hw_perf_event_init err
handling") tidied up the error handling code for perf event
initialisation on ARM, but a copy-and-paste error left a dangling
semicolon at the end of an if statement.

This patch removes the broken semicolon, restoring the old group
validation semantics.

Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
---
 arch/arm/kernel/perf_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
index 31e0eb3..a892067 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
 	}
 
 	if (event->group_leader != event) {
-		if (validate_group(event) != 0);
+		if (validate_group(event) != 0)
 			return -EINVAL;
 	}
 
-- 
1.8.0

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

* [PATCH] ARM:kernel: a bug by a redundancy charactor ';'
  2013-02-16 12:26     ` Will Deacon
@ 2013-02-16 13:44       ` Dirk Behme
  2013-02-17  2:07       ` Chen Gang
  2013-02-17  2:09       ` [PATCH] ARM:kernel: a bug for perf by a redundancy character ';' Chen Gang
  2 siblings, 0 replies; 8+ messages in thread
From: Dirk Behme @ 2013-02-16 13:44 UTC (permalink / raw)
  To: linux-arm-kernel

Am 16.02.2013 13:26, schrieb Will Deacon:
> On Sat, Feb 16, 2013 at 08:38:12AM +0000, Chen Gang wrote:
>> ? 2013?02?16? 16:04, Dirk Behme ??:
>>>
>>> Wondering against which branch this patch is, I found that this issue
>>> isn't in recent mainline from today, but in -next. Introduced by the patch
>>>
>>> ARM: perf: simplify __hw_perf_event_init err handling
>>> http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=9dcbf466559f6f2f55d60eb5a1bbebc8e694b52a
>>>
>
> Damn, I really should have spotted this. Thanks for reporting/fixing it.
>
>>> While the subject/commit message could be improved (at least mentioning
>>> 'perf' somehow and charactor -> character), the change itself looks good.
>>
>>    if still suggest to commit current patch:
>>      does the subject like this ?
>>       [PATCH] ARM:kernel: a bug for perf by a redundancy character ';'
>
> If you're ok with the following patch, I'll take it into the ARM perf
> tree.
>
> Cheers,
>
> Will
>
> --->8
>
>>From 21fa771c94c4359807bb92dc8532b25c323ac543 Mon Sep 17 00:00:00 2001
> From: Chen Gang <gang.chen@asianux.com>
> Date: Sat, 16 Feb 2013 06:49:49 +0000
> Subject: [PATCH] ARM: perf: remove erroneous semicolon from event
>   initialisation
>
> Commit 9dcbf466559f ("ARM: perf: simplify __hw_perf_event_init err
> handling") tidied up the error handling code for perf event
> initialisation on ARM, but a copy-and-paste error left a dangling
> semicolon at the end of an if statement.
>
> This patch removes the broken semicolon, restoring the old group
> validation semantics.
>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> Signed-off-by: Will Deacon <will.deacon@arm.com>

Acked-by: Dirk Behme <dirk.behme@gmail.com>

Dirk

> ---
>   arch/arm/kernel/perf_event.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
> index 31e0eb3..a892067 100644
> --- a/arch/arm/kernel/perf_event.c
> +++ b/arch/arm/kernel/perf_event.c
> @@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
>   	}
>
>   	if (event->group_leader != event) {
> -		if (validate_group(event) != 0);
> +		if (validate_group(event) != 0)
>   			return -EINVAL;
>   	}
>
>

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

* [PATCH] ARM:kernel: a bug by a redundancy charactor ';'
  2013-02-16 12:26     ` Will Deacon
  2013-02-16 13:44       ` Dirk Behme
@ 2013-02-17  2:07       ` Chen Gang
  2013-02-17  2:09       ` [PATCH] ARM:kernel: a bug for perf by a redundancy character ';' Chen Gang
  2 siblings, 0 replies; 8+ messages in thread
From: Chen Gang @ 2013-02-17  2:07 UTC (permalink / raw)
  To: linux-arm-kernel

? 2013?02?16? 20:26, Will Deacon ??:
>>> While the subject/commit message could be improved (at least mentioning
>>> > > 'perf' somehow and charactor -> character), the change itself looks good.
>> > 
>> >   if still suggest to commit current patch:
>> >     does the subject like this ?
>> >      [PATCH] ARM:kernel: a bug for perf by a redundancy character ';'
> If you're ok with the following patch, I'll take it into the ARM perf
> tree.

  ok, I will send patch v2.
  but use [PATCH] instead of [PATCH v2], since need change the subject.

  thanks.

-- 
Chen Gang

Asianux Corporation

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

* [PATCH] ARM:kernel: a bug for perf by a redundancy character ';'
  2013-02-16 12:26     ` Will Deacon
  2013-02-16 13:44       ` Dirk Behme
  2013-02-17  2:07       ` Chen Gang
@ 2013-02-17  2:09       ` Chen Gang
  2013-02-17  4:22         ` Chen Gang
  2 siblings, 1 reply; 8+ messages in thread
From: Chen Gang @ 2013-02-17  2:09 UTC (permalink / raw)
  To: linux-arm-kernel


  delete the redundancy charactor ';', which will cause issue.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Acked-by: Dirk Behme <dirk.behme@gmail.com>
---
 arch/arm/kernel/perf_event.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
index 31e0eb3..a892067 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
 	}
 
 	if (event->group_leader != event) {
-		if (validate_group(event) != 0);
+		if (validate_group(event) != 0)
 			return -EINVAL;
 	}
 
-- 
1.7.7.6

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

* [PATCH] ARM:kernel: a bug for perf by a redundancy character ';'
  2013-02-17  2:09       ` [PATCH] ARM:kernel: a bug for perf by a redundancy character ';' Chen Gang
@ 2013-02-17  4:22         ` Chen Gang
  0 siblings, 0 replies; 8+ messages in thread
From: Chen Gang @ 2013-02-17  4:22 UTC (permalink / raw)
  To: linux-arm-kernel


  oh, sorry, the comments still use charactor.

  I will send pach v2.

gchen.

? 2013?02?17? 10:09, Chen Gang ??:
> 
>   delete the redundancy charactor ';', which will cause issue.
> 
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> Acked-by: Dirk Behme <dirk.behme@gmail.com>
> ---
>  arch/arm/kernel/perf_event.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
> index 31e0eb3..a892067 100644
> --- a/arch/arm/kernel/perf_event.c
> +++ b/arch/arm/kernel/perf_event.c
> @@ -400,7 +400,7 @@ __hw_perf_event_init(struct perf_event *event)
>  	}
>  
>  	if (event->group_leader != event) {
> -		if (validate_group(event) != 0);
> +		if (validate_group(event) != 0)
>  			return -EINVAL;
>  	}
>  
> 


-- 
Chen Gang

Asianux Corporation

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

end of thread, other threads:[~2013-02-17  4:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-16  6:49 [PATCH] ARM:kernel: a bug by a redundancy charactor ';' Chen Gang
2013-02-16  8:04 ` Dirk Behme
2013-02-16  8:38   ` Chen Gang
2013-02-16 12:26     ` Will Deacon
2013-02-16 13:44       ` Dirk Behme
2013-02-17  2:07       ` Chen Gang
2013-02-17  2:09       ` [PATCH] ARM:kernel: a bug for perf by a redundancy character ';' Chen Gang
2013-02-17  4:22         ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).