From: Mikael Pettersson <mikpe@csd.uu.se>
To: "Moore, Eric Dean" <Emoore@lsil.com>
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
Keith Owens <kaos@ocs.com.au>,
linux-kernel@vger.kernel.org
Subject: RE: 2.4.25-rc1: Inconsistent ioctl symbol usage in drivers/messag e/fusion/mptctl.c
Date: Tue, 10 Feb 2004 10:47:25 +0100 [thread overview]
Message-ID: <16424.43181.502341.118903@alkaid.it.uu.se> (raw)
In-Reply-To: <0E3FA95632D6D047BA649F95DAB60E5703D1A827@exa-atlanta.se.lsil.com>
Moore, Eric Dean writes:
> On Monday, February 09, 2004 5:27 AM, Marcelo Tosatti wrote
> > Hi Eric,
> >
> > Can you please fix this up?
> >
> > On Mon, 9 Feb 2004, Keith Owens wrote:
> >
> > > 2.4.25-rc1 drivers/message/fusion/mptctl.c expects sys_ioctl,
> > > register_ioctl32_conversion and unregister_ioctl32_conversion to be
> > > exported symbols when MPT_CONFIG_COMPAT is defined. That symbol is
> > > defined for __sparc_v9__, __x86_64__ and __ia64__.
> > >
> > > The symbols are not exported in ia64, mptctl.o gets
> > unresolved symbols
> > > when it is a module on ia64.
> > >
> > > x64_64 exports register_ioctl32_conversion and
> > unregister_ioctl32_conversion,
> > > but not sys_ioctl.
> >
>
>
> Marcelo - Here is a fix for the x86_64 issue.
> In Redhat/Suse kernels this "sys_ioctl" symbol is exported, but
> not in generic kernel. The ia64 problem is going to require
> a fix in the mptctl driver.
>
>
> --- linux-2.4.25-pre8-ref/arch/x86_64/ia32/ia32_ioctl.c 2004-02-09
> 12:49:05.000000000 -0700
> +++ linux-2.4.25-pre8/arch/x86_64/ia32/ia32_ioctl.c 2004-02-09
> 12:00:52.000000000 -0700
> @@ -129,6 +129,8 @@
> #define EXT2_IOC32_GETVERSION _IOR('v', 1, int)
> #define EXT2_IOC32_SETVERSION _IOW('v', 2, int)
>
> +EXPORT_SYMBOL(sys_ioctl);
> +
Can't you just use register_ioctl32_conversion()'s convention that
a NULL handler defaults to sys_ioctl? Alternatively you could just
write the one-liner
filp->f_op->ioctl(filp->f_dentry->d_inode, filp, cmd, arg)
in your handler.
next prev parent reply other threads:[~2004-02-10 9:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-09 19:43 Moore, Eric Dean
2004-02-10 9:47 ` Mikael Pettersson [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-10 23:53 Moore, Eric Dean
2004-02-11 11:14 ` Mikael Pettersson
2004-02-10 16:10 Moore, Eric Dean
2004-02-10 16:24 ` Mikael Pettersson
2004-02-09 15:58 Moore, Eric Dean
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=16424.43181.502341.118903@alkaid.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=Emoore@lsil.com \
--cc=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.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
all inboxes | Powered by JetHome®