mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ioctl32: kill code duplication (sparc64 tester wanted)
@ 2003-05-12 11:40 Pavel Machek
  2003-05-12 12:43 ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Machek @ 2003-05-12 11:40 UTC (permalink / raw)
  To: kernel list

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

Hi!

Attached patch shares ioctl32 handles between x86-64 and sparc64 (and
it should be possible/easy to share with other archs, too).

I'd like sparc64 person to test/comment on it...
						Pavel
-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.

[-- Attachment #2: delme.gz --]
[-- Type: application/octet-stream, Size: 50557 bytes --]

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

* Re: ioctl32: kill code duplication (sparc64 tester wanted)
  2003-05-12 11:40 ioctl32: kill code duplication (sparc64 tester wanted) Pavel Machek
@ 2003-05-12 12:43 ` Christoph Hellwig
  2003-05-12 13:05   ` Pavel Machek
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2003-05-12 12:43 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Mon, May 12, 2003 at 01:40:55PM +0200, Pavel Machek wrote:
> Hi!
> 
> Attached patch shares ioctl32 handles between x86-64 and sparc64 (and
> it should be possible/easy to share with other archs, too).
> 
> I'd like sparc64 person to test/comment on it...

I don't have a sparc64, but there's certainly no <asm/mtrr.h> for that arch..

Also #including c files is ugly as hell.  What's the #ifdef INCLUDES
supposed to help?


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

* Re: ioctl32: kill code duplication (sparc64 tester wanted)
  2003-05-12 12:43 ` Christoph Hellwig
@ 2003-05-12 13:05   ` Pavel Machek
  2003-05-12 13:08     ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Machek @ 2003-05-12 13:05 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: kernel list

Hi!

> > Attached patch shares ioctl32 handles between x86-64 and sparc64 (and
> > it should be possible/easy to share with other archs, too).
> > 
> > I'd like sparc64 person to test/comment on it...
> 
> I don't have a sparc64, but there's certainly no <asm/mtrr.h> for
> > that arch..

I thought I killed that one?

> Also #including c files is ugly as hell.  What's the #ifdef INCLUDES
> supposed to help?

Yes, but do you have better proposal how to kill 4000+ lines of code
from each 64-bit architecture?
								Pavel
-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.

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

* Re: ioctl32: kill code duplication (sparc64 tester wanted)
  2003-05-12 13:05   ` Pavel Machek
@ 2003-05-12 13:08     ` Christoph Hellwig
  2003-05-12 13:13       ` Pavel Machek
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2003-05-12 13:08 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Christoph Hellwig, kernel list

On Mon, May 12, 2003 at 03:05:19PM +0200, Pavel Machek wrote:
> Hi!
> > I don't have a sparc64, but there's certainly no <asm/mtrr.h> for
> > > that arch..
> 
> I thought I killed that one?

The patch you attached added it..

> > Also #including c files is ugly as hell.  What's the #ifdef INCLUDES
> > supposed to help?
> 
> Yes, but do you have better proposal how to kill 4000+ lines of code
> from each 64-bit architecture?

What's the reason you can't build fs/compat_ioctl.c normally and pull
in the arch magic through a magic asm/ header?  You still haven't answered
the second question, btw.. 

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

* Re: ioctl32: kill code duplication (sparc64 tester wanted)
  2003-05-12 13:08     ` Christoph Hellwig
@ 2003-05-12 13:13       ` Pavel Machek
  2003-05-12 13:16         ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Machek @ 2003-05-12 13:13 UTC (permalink / raw)
  To: Christoph Hellwig, Pavel Machek, kernel list

Hi!

> > > I don't have a sparc64, but there's certainly no <asm/mtrr.h> for
> > > > that arch..
> > 
> > I thought I killed that one?
> 
> The patch you attached added it..

There are probably more such mistake. It should be easy for anyone
with sparc64 to kill them all at once.

> > > Also #including c files is ugly as hell.  What's the #ifdef INCLUDES
> > > supposed to help?
> > 
> > Yes, but do you have better proposal how to kill 4000+ lines of code
> > from each 64-bit architecture?
> 
> What's the reason you can't build fs/compat_ioctl.c normally and pull
> in the arch magic through a magic asm/ header?  

Some architectures need special stuff (mtrr's), so I'd have to include
.c files, too (the other way). [Look at how the table of ioctls is
generated, its asm magic].

> You still haven't answered
> the second question, btw.. 

Are you asking why are there #includes in compat_ioctl.c? Its because
there is so many of them, and having to update all archs when you
tuoch fs/compat_ioctl.c would be bad.

								Pavel
-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.

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

* Re: ioctl32: kill code duplication (sparc64 tester wanted)
  2003-05-12 13:13       ` Pavel Machek
@ 2003-05-12 13:16         ` Christoph Hellwig
  2003-05-12 14:19           ` Pavel Machek
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2003-05-12 13:16 UTC (permalink / raw)
  To: Pavel Machek; +Cc: kernel list

On Mon, May 12, 2003 at 03:13:26PM +0200, Pavel Machek wrote:
> > What's the reason you can't build fs/compat_ioctl.c normally and pull
> > in the arch magic through a magic asm/ header?  
> 
> Some architectures need special stuff (mtrr's), so I'd have to include
> .c files, too (the other way). [Look at how the table of ioctls is
> generated, its asm magic].

Shouldn't that special stuff move to the dynamic ioctl handler
registration method or the new ->compat_ioctl?

> Are you asking why are there #includes in compat_ioctl.c? Its because
> there is so many of them, and having to update all archs when you
> tuoch fs/compat_ioctl.c would be bad.

I'm asking for the #ifdef INCLUDES in fs/compat_ioctl.c.  Why do you
need it instead of including the headers uncondtionally?


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

* Re: ioctl32: kill code duplication (sparc64 tester wanted)
  2003-05-12 13:16         ` Christoph Hellwig
@ 2003-05-12 14:19           ` Pavel Machek
  0 siblings, 0 replies; 7+ messages in thread
From: Pavel Machek @ 2003-05-12 14:19 UTC (permalink / raw)
  To: Christoph Hellwig, Pavel Machek, kernel list

Hi!


> > > What's the reason you can't build fs/compat_ioctl.c normally and pull
> > > in the arch magic through a magic asm/ header?  
> > 
> > Some architectures need special stuff (mtrr's), so I'd have to include
> > .c files, too (the other way). [Look at how the table of ioctls is
> > generated, its asm magic].
> 
> Shouldn't that special stuff move to the dynamic ioctl handler
> registration method or the new ->compat_ioctl?

Davem probably would not like bloat
resulting from that (There's a lot of
arch specific stuff out there). Agreed it
would be nice to do that, but I feel
we need to make small steps.


> 
> > Are you asking why are there #includes in compat_ioctl.c? Its because
> > there is so many of them, and having to update all archs when you
> > tuoch fs/compat_ioctl.c would be bad.
> 
> I'm asking for the #ifdef INCLUDES in fs/compat_ioctl.c.  Why do you
> need it instead of including the headers uncondtionally?

Because I'm including compat_ioctl.c from few places.
-- 
Horseback riding is like software...
...vgf orggre jura vgf serr.

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

end of thread, other threads:[~2003-05-12 14:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 11:40 ioctl32: kill code duplication (sparc64 tester wanted) Pavel Machek
2003-05-12 12:43 ` Christoph Hellwig
2003-05-12 13:05   ` Pavel Machek
2003-05-12 13:08     ` Christoph Hellwig
2003-05-12 13:13       ` Pavel Machek
2003-05-12 13:16         ` Christoph Hellwig
2003-05-12 14:19           ` Pavel Machek

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

all inboxes | Powered by JetHome®