public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/5] x86: Coding style fixes to arch/x86/lib/strstr_32.c
@ 2008-08-02 19:24 Paolo Ciarrocchi
  2008-08-04  6:20 ` Dmitri Vorobiev
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Ciarrocchi @ 2008-08-02 19:24 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: hpa, tglx, Linux Kernel

Before:
total: 3 errors, 0 warnings, 31 lines checked

After:
total: 0 errors, 0 warnings, 31 lines checked

paolo@paolo-desktop:~/linux.trees.git$ md5sum /tmp/strstr_32.o.*
c96006ec3387862e5bacb139207a3098  /tmp/strstr_32.o.after
c96006ec3387862e5bacb139207a3098  /tmp/strstr_32.o.before

Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
---
 arch/x86/lib/strstr_32.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/lib/strstr_32.c b/arch/x86/lib/strstr_32.c
index 42e8a50..8e2d55f 100644
--- a/arch/x86/lib/strstr_32.c
+++ b/arch/x86/lib/strstr_32.c
@@ -23,9 +23,9 @@ __asm__ __volatile__(
 	"jne 1b\n\t"
 	"xorl %%eax,%%eax\n\t"
 	"2:"
-	:"=a" (__res), "=&c" (d0), "=&S" (d1)
-	:"0" (0), "1" (0xffffffff), "2" (cs), "g" (ct)
-	:"dx", "di");
+	: "=a" (__res), "=&c" (d0), "=&S" (d1)
+	: "0" (0), "1" (0xffffffff), "2" (cs), "g" (ct)
+	: "dx", "di");
 return __res;
 }
 
-- 
1.5.6.rc1.21.g03300


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

* Re: [PATCH 3/5] x86: Coding style fixes to arch/x86/lib/strstr_32.c
  2008-08-02 19:24 [PATCH 3/5] x86: Coding style fixes to arch/x86/lib/strstr_32.c Paolo Ciarrocchi
@ 2008-08-04  6:20 ` Dmitri Vorobiev
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitri Vorobiev @ 2008-08-04  6:20 UTC (permalink / raw)
  To: Paolo Ciarrocchi; +Cc: Ingo Molnar, hpa, tglx, Linux Kernel

Paolo Ciarrocchi wrote:
> Before:
> total: 3 errors, 0 warnings, 31 lines checked
> 
> After:
> total: 0 errors, 0 warnings, 31 lines checked
> 
> paolo@paolo-desktop:~/linux.trees.git$ md5sum /tmp/strstr_32.o.*

It seems very tempting to merge this file with arch/x86/lib/string_32.c, or is there any compelling reason to keep these two separate?

> c96006ec3387862e5bacb139207a3098  /tmp/strstr_32.o.after
> c96006ec3387862e5bacb139207a3098  /tmp/strstr_32.o.before
> 
> Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
> ---
>  arch/x86/lib/strstr_32.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/x86/lib/strstr_32.c b/arch/x86/lib/strstr_32.c
> index 42e8a50..8e2d55f 100644
> --- a/arch/x86/lib/strstr_32.c
> +++ b/arch/x86/lib/strstr_32.c
> @@ -23,9 +23,9 @@ __asm__ __volatile__(
>  	"jne 1b\n\t"
>  	"xorl %%eax,%%eax\n\t"
>  	"2:"
> -	:"=a" (__res), "=&c" (d0), "=&S" (d1)
> -	:"0" (0), "1" (0xffffffff), "2" (cs), "g" (ct)
> -	:"dx", "di");
> +	: "=a" (__res), "=&c" (d0), "=&S" (d1)
> +	: "0" (0), "1" (0xffffffff), "2" (cs), "g" (ct)
> +	: "dx", "di");
>  return __res;

It's strange that checkpatch.pl does not cater for such an obvious style violation as this last line.

Dmitri

>  }
>  


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

end of thread, other threads:[~2008-08-04  6:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02 19:24 [PATCH 3/5] x86: Coding style fixes to arch/x86/lib/strstr_32.c Paolo Ciarrocchi
2008-08-04  6:20 ` Dmitri Vorobiev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox