The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Ben Collins <bcollins@debian.org>
To: Pavel Machek <pavel@suse.cz>
Cc: "David S. Miller" <davem@redhat.com>,
	linux-kernel@vger.kernel.org, schwidefsky@de.ibm.com, ak@suse.de,
	arnd@bergmann-dalldorf.de
Subject: Re: ioctl32 consolidation -- call for testing
Date: Fri, 28 Feb 2003 10:49:48 -0500	[thread overview]
Message-ID: <20030228154948.GY21100@phunnypharm.org> (raw)
In-Reply-To: <20030228132330.GC8498@atrey.karlin.mff.cuni.cz>

> > One thing I am just now wondering is why struct ioctl_trans defines cmd
> > as an unsigned long instead of just unsigned int. That adds an uneeded
> > bit of space to the array.
> 
> Do you think so?
> 
> cmd probably could be u32 (since it is ioctl32 after all), but I doubt
> it matters, as two following entries are pointers so it looks to me
> like it is going to be lost by alignment, anyway.

The thing is, on sparc64, these pointers were cast to u32's, so the
struct was only 12 bytes instead of the current 24. Dave's concern is
the doubling of this pretty large array.

What you could do is allow each architecture to define the ioctl_trans
struct, and also macros for acessing and setting each member. That would
probably satisfy this special cases.

> > As for your suggestion, sounds great, but I'll leave it to Pavel :)
> 
> First things first, patch probably still breaks all other
> architectures than x86-64 and sparc64....

If you make the change that Dave suggests, it will be fixed :) Even with
this patch, sparc64 is still broken for modules (like alsa and ieee1394)
that register conversions on load.

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/

  reply	other threads:[~2003-02-28 15:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-26 22:26 ioctl32 consolidation -- call for testing Pavel Machek
2003-02-27 19:44 ` Ben Collins
2003-02-27 19:51 ` Ben Collins
2003-02-27 20:27   ` Ben Collins
2003-02-27 20:13     ` David S. Miller
2003-02-27 20:34       ` Ben Collins
2003-02-27 20:21         ` David S. Miller
2003-02-27 20:50           ` Ben Collins
2003-02-27 20:37             ` David S. Miller
2003-02-27 21:12               ` Ben Collins
2003-02-28 13:23                 ` Pavel Machek
2003-02-28 15:49                   ` Ben Collins [this message]
2003-03-01  0:52                   ` David S. Miller
2003-02-28 13:20         ` Pavel Machek

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=20030228154948.GY21100@phunnypharm.org \
    --to=bcollins@debian.org \
    --cc=ak@suse.de \
    --cc=arnd@bergmann-dalldorf.de \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=schwidefsky@de.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox