From: Kay Sievers <kay.sievers@vrfy.org>
To: David Miller <davem@davemloft.net>
Cc: greg@kroah.com, linux-kernel@vger.kernel.org
Subject: Re: sparc: struct device - replace bus_id with dev_name(), dev_set_name()
Date: Fri, 27 Mar 2009 13:21:56 +0100 [thread overview]
Message-ID: <ac3eb2510903270521i113df787u7ac5d842ece83740@mail.gmail.com> (raw)
In-Reply-To: <20081107.013833.147302570.davem@davemloft.net>
On Fri, Nov 7, 2008 at 10:38, David Miller <davem@davemloft.net> wrote:
> From: "Kay Sievers" <kay.sievers@vrfy.org>
>> >> - if (strlen(bus_id_name) >= BUS_ID_SIZE - 4) {
>> >> + if (strlen(bus_id_name) >= 20 - 4) {
>> > But I don't like this.
>> >
>> > Could you please keep the macro around until everything is converted?
>> > Then you can remove the test entirely.
>> >
>> > Leaving it with just constants there is inviting confusion, no matter
>> > how short amount of time it will be there.
>>
>> I can add a SPARC_BUS_ID_SIZE, to that file, or in a sparc header, but
>> the core will not provide any such value, and have to, go to catch all
>> remaining occurrences across the tree. Where should I add it?
>
> You should keep BUS_ID_SIZE in the device.h header or wherever it is
> now.
>
> Then it's a simply grep to kill that off and all the references (and
> you have to systematically eliminate these no-longer-needed tests
> anyways) in one fell swoop.
Hey David,
it took a while, but it happened now, so this issue is coming back. :)
The name size limit is gone, there is no BUS_ID_SIZE thing anymore in
the driver core. BUS_ID_SIZE should go away in the 2.6.30 timeframe.
Could you please convert/remove BUS_ID_SIZE value from:
drivers/net/gianfar.h: char phy_bus_id[BUS_ID_SIZE];
drivers/net/ucc_geth.h: char phy_bus_id[BUS_ID_SIZE];
drivers/net/pasemi_mac.h: char phy_id[BUS_ID_SIZE];
include/linux/phy.h:#define MII_BUS_ID_SIZE (BUS_ID_SIZE - 3)
include/linux/phy.h: char bus_id[BUS_ID_SIZE];
Or let me know how you want to convert it, so I can do it?
Thanks a lot,
Kay
next prev parent reply other threads:[~2009-03-27 12:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-07 0:43 Kay Sievers
2008-11-07 7:35 ` David Miller
2008-11-07 8:33 ` Kay Sievers
2008-11-07 9:38 ` David Miller
2008-11-07 9:58 ` Kay Sievers
2008-11-07 19:36 ` David Miller
2009-03-27 12:21 ` Kay Sievers [this message]
2009-03-28 0:27 ` David Miller
2009-04-16 16:21 ` Kay Sievers
2009-04-16 22:56 ` David Miller
2009-05-22 11:42 ` Kay Sievers
2009-05-26 9:30 ` David Miller
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=ac3eb2510903270521i113df787u7ac5d842ece83740@mail.gmail.com \
--to=kay.sievers@vrfy.org \
--cc=davem@davemloft.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/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®