From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Andrew Morton <akpm@osdl.org>
Cc: Dave Jones <davej@redhat.com>,
linux-kernel@vger.kernel.org,
linux1394-devel@lists.sourceforge.net,
Jody McIntyre <scjody@modernduck.com>
Subject: Re: Fix broken module aliases in ieee1394
Date: Thu, 29 Sep 2005 22:36:25 +0200 [thread overview]
Message-ID: <433C5049.9020505@s5r6.in-berlin.de> (raw)
In-Reply-To: <20050929121038.54d4cef0.akpm@osdl.org>
Andrew Morton wrote:
> Dave Jones <davej@redhat.com> wrote:
>>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134047
This bug has been reported in 12/2004 (shame on us) at
http://bugzilla.kernel.org/show_bug.cgi?id=3966
>>The ieee1394 drivers have buggered module aliases.
>>
>>alias: char-major-171-0 * 16
>>
>>This is because MODULE_ALIAS_CHARDEV stringifies its arguments.
>
> hm. There are a bunch of 1394 patches in -mm which appear to remove
> most/all of this stuff.
Yes, that is the plan. These module aliases have been unnecessary for
some time.
> So what-the-heck I think I'll send those patches on to Linus today. Please
> review the result and send any remaining fixups on to Linus for 2.6.14.
> (I'm offline for ~10 days, starting tomorrow).
>
>
>
>>--- linux-2.6.13/drivers/ieee1394/amdtp.c~ 2005-09-29 03:50:20.000000000 -0400
>>+++ linux-2.6.13/drivers/ieee1394/amdtp.c 2005-09-29 03:50:54.000000000 -0400
>>@@ -1234,7 +1234,7 @@ static void amdtp_add_host(struct hpsb_h
>>
>> hpsb_set_hostinfo_key(&amdtp_highlevel, host, ah->host->id);
>>
>>- minor = IEEE1394_MINOR_BLOCK_AMDTP * 16 + ah->host->id;
>>+ minor = IEEE1394_MINOR_BLOCK_AMDTP + ah->host->id;
>>
>> INIT_LIST_HEAD(&ah->stream_list);
>> spin_lock_init(&ah->stream_list_lock);
>>@@ -1297,4 +1297,4 @@ static void __exit amdtp_exit_module (vo
>>
>> module_init(amdtp_init_module);
>> module_exit(amdtp_exit_module);
>>-MODULE_ALIAS_CHARDEV(IEEE1394_MAJOR, IEEE1394_MINOR_BLOCK_AMDTP * 16);
>>+MODULE_ALIAS_CHARDEV(IEEE1394_MAJOR, IEEE1394_MINOR_BLOCK_AMDTP);
[...same for the other 1394 hi-level drivers]
This not a correct fix as far as I can see. Each of these drivers has a
block of minor numbers assigned, and we would need to create aliases for
all of the numbers in the blocks --- if we wanted these aliases badly.
Brief discussion in August:
http://marc.theaimsgroup.com/?l=linux1394-devel&t=112341382400002
--
Stefan Richter
-=====-=-=-= =--= ===-=
http://arcgraph.de/sr/
prev parent reply other threads:[~2005-09-29 20:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-29 18:57 Dave Jones
2005-09-29 19:10 ` Andrew Morton
2005-09-29 19:51 ` Jody McIntyre
2005-09-29 20:36 ` Stefan Richter [this message]
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=433C5049.9020505@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=akpm@osdl.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=scjody@modernduck.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®