linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise.
@ 2013-08-20 21:19 dl9pf
  2013-08-21  6:50 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: dl9pf @ 2013-08-20 21:19 UTC (permalink / raw)
  To: dl9pf
  Cc: PaX Team, Behan Webster, James E.J. Bottomley, linux-scsi,
	linux-kernel

From: Jan-Simon Möller <dl9pf@gmx.de>

Author:  PaX Team <pageexec at freemail.hu>
ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html
URL:     http://llvm.linuxfoundation.org

Merge:   Jan-Simon Möller <dl9pf at gmx.de>

Description:
  Clang chokes on the notation "insw (%%dx)" but works for "insw %%dx" (outsw likewise);
  GNU as accepts both forms.

Signed-off-by: Jan-Simon Möller <dl9pf@gmx.de>

CC: Jan-Simon Möller <dl9pf@gmx.de>
CC: PaX Team <pageexec@freemail.hu>
CC: Behan Webster <behanw@converseincode.com>
CC: "James E.J. Bottomley" <JBottomley@parallels.com>
CC: linux-scsi@vger.kernel.org
CC: linux-kernel@vger.kernel.org
---
 drivers/scsi/in2000.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/in2000.h b/drivers/scsi/in2000.h
index 5821e1f..cd8d852 100644
--- a/drivers/scsi/in2000.h
+++ b/drivers/scsi/in2000.h
@@ -72,7 +72,7 @@ int __dummy_1,__dummy_2; \
    orl %%ecx, %%ecx       \n \
    jz 1f                  \n \
    rep                    \n \
-   insw (%%dx),%%es:(%%edi) \n \
+   insw %%dx,%%es:(%%edi) \n \
 1: "                       \
    : "=D" (sp) ,"=c" (__dummy_1) ,"=d" (__dummy_2)  /* output */   \
    : "2" (f), "0" (sp), "1" (i)  /* input */    \
@@ -87,7 +87,7 @@ int __dummy_1,__dummy_2; \
    orl %%ecx, %%ecx       \n \
    jz 1f                  \n \
    rep                    \n \
-   outsw %%ds:(%%esi),(%%dx) \n \
+   outsw %%ds:(%%esi),%%dx \n \
 1: "                       \
    : "=S" (sp) ,"=c" (__dummy_1) ,"=d" (__dummy_2)/* output */   \
    : "2" (f), "0" (sp), "1" (i)  /* input */    \
-- 
1.8.1.4


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

* Re: [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise.
  2013-08-20 21:19 [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise dl9pf
@ 2013-08-21  6:50 ` Christoph Hellwig
  2013-08-21  7:26   ` Jan-Simon Möller
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2013-08-21  6:50 UTC (permalink / raw)
  To: dl9pf
  Cc: PaX Team, Behan Webster, James E.J. Bottomley, linux-scsi,
	linux-kernel

On Tue, Aug 20, 2013 at 11:19:06PM +0200, dl9pf@gmx.de wrote:
> From: Jan-Simon M??ller <dl9pf@gmx.de>
> 
> Author:  PaX Team <pageexec at freemail.hu>
> ML-Post: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120507/142707.html
> URL:     http://llvm.linuxfoundation.org
> 
> Merge:   Jan-Simon M??ller <dl9pf at gmx.de>
> 
> Description:
>   Clang chokes on the notation "insw (%%dx)" but works for "insw %%dx" (outsw likewise);
>   GNU as accepts both forms.
> 
> Signed-off-by: Jan-Simon M??ller <dl9pf@gmx.de>

I think the right fix is to simply kill the FAST_READ_IO/FAST_WRITE_IO
defines and their associated inline assembly entirely.


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

* Re: [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise.
  2013-08-21  6:50 ` Christoph Hellwig
@ 2013-08-21  7:26   ` Jan-Simon Möller
  2013-08-21 13:11     ` Jan-Simon Möller
  0 siblings, 1 reply; 5+ messages in thread
From: Jan-Simon Möller @ 2013-08-21  7:26 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: PaX Team, Behan Webster, James E.J. Bottomley, linux-scsi,
	linux-kernel

> > 
> > Description:
> >   Clang chokes on the notation "insw (%%dx)" but works for "insw %%dx"
> >   (outsw likewise); GNU as accepts both forms.
> > 
> > Signed-off-by: Jan-Simon M??ller <dl9pf@gmx.de>
> 
> I think the right fix is to simply kill the FAST_READ_IO/FAST_WRITE_IO
> defines and their associated inline assembly entirely.

No objection ;) .

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

* Re: [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise.
  2013-08-21  7:26   ` Jan-Simon Möller
@ 2013-08-21 13:11     ` Jan-Simon Möller
  2013-08-29 14:13       ` Jan-Simon Möller
  0 siblings, 1 reply; 5+ messages in thread
From: Jan-Simon Möller @ 2013-08-21 13:11 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: PaX Team, Behan Webster, James E.J. Bottomley, linux-scsi,
	linux-kernel

On Wednesday 21 August 2013 09:26:14 Jan-Simon Möller wrote:
> > > Description:
> > >   Clang chokes on the notation "insw (%%dx)" but works for "insw %%dx"
> > >   (outsw likewise); GNU as accepts both forms.
> > > 
> > > Signed-off-by: Jan-Simon M??ller <dl9pf@gmx.de>
> > 
> > I think the right fix is to simply kill the FAST_READ_IO/FAST_WRITE_IO
> > defines and their associated inline assembly entirely.
> 
> No objection ;) .
@Christoph Hellwig:
Do you take care of removing it then ?

BR,
JS

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

* Re: [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise.
  2013-08-21 13:11     ` Jan-Simon Möller
@ 2013-08-29 14:13       ` Jan-Simon Möller
  0 siblings, 0 replies; 5+ messages in thread
From: Jan-Simon Möller @ 2013-08-29 14:13 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: PaX Team, Behan Webster, James E.J. Bottomley, linux-scsi,
	linux-kernel

Ping.
@Christoph  do you take care of removing then ? 

Or can we merge this patch as-is now.

Best,
JS


On Wednesday 21 August 2013 15:11:33 Jan-Simon Möller wrote:
> On Wednesday 21 August 2013 09:26:14 Jan-Simon Möller wrote:
> > > > Description:
> > > >   Clang chokes on the notation "insw (%%dx)" but works for "insw %%dx"
> > > >   (outsw likewise); GNU as accepts both forms.
> > > > 
> > > > Signed-off-by: Jan-Simon M??ller <dl9pf@gmx.de>
> > > 
> > > I think the right fix is to simply kill the FAST_READ_IO/FAST_WRITE_IO
> > > defines and their associated inline assembly entirely.
> > 
> > No objection ;) .
> 
> @Christoph Hellwig:
> Do you take care of removing it then ?
> 
> BR,
> JS


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

end of thread, other threads:[~2013-08-29 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-20 21:19 [PATCH] [TRIVIAL] Remove braces in drivers/scsi/in2000.h to fix build for clang. No functional change otherwise dl9pf
2013-08-21  6:50 ` Christoph Hellwig
2013-08-21  7:26   ` Jan-Simon Möller
2013-08-21 13:11     ` Jan-Simon Möller
2013-08-29 14:13       ` Jan-Simon Möller

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).