bcm43xx symbol clash problems
Subsystems (2)
Hi,
I looked into the symbol clash problems between bcm43xx and bcm43xx-d80211 you mentioned at the wireless summit.
Well, IMHO it is pretty hard to find a good solution to this.
The situation is: We have several nonstatic functions in the bcm driver. These functions have the same name in the softmac and dscape versions. It's quite a lot of functions.
We can't make them static, because the driver is splitted over several files. I would _really_ want to prevent renaming them all, because that is lots of work, which will be thrown away anyway.
Does kbuild perhaps have some magic to handle that?
This needs to be solved soon, but I have no idea how.
I also wanna note that I am looking into using quilt for bcm43xx development. git is not the perfect solution for bcm43xx development. Maybe quilt is. Who knows... Let's try it.
Signature · 1 line
Greetings Michael, who would like to have the namespace keyword in C.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Michael Buesch
Does kbuild perhaps have some magic to handle that?
This needs to be solved soon, but I have no idea how.
You want to have bcm43xx and bcm43xx-dscape conflict anyway, since there's no point in building both into the kernel, only one can be bound to a device. Yes, I know one could still bind them manually, but that's about as icky as building them as modules imho. And whoever really needs a static kernel will not need both of them.
I don't know how the Kconfig there is laid out, but wouldn't it be possible to make them conflict on both yes?
johannes
Quoted 5 lines · Johannes Berg
Quoted 3 lines · Michael Buesch
Does kbuild perhaps have some magic to handle that?
This needs to be solved soon, but I have no idea how.
Quoted 8 lines
You want to have bcm43xx and bcm43xx-dscape conflict anyway, since there's no point in building both into the kernel, only one can be bound to a device. Yes, I know one could still bind them manually, but that's about as icky as building them as modules imho. And whoever really needs a static kernel will not need both of them.
I don't know how the
Kconfigthere is laid out, but wouldn't it be possible to make them conflict on both yes?
Sure. I would probably say that both m should conflict, too. And one y and the other m, too.
This can be done with ugly "depends" statements.
Signature · 1 line
Greetings Michael.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line · Michael Buesch
Sure. I would probably say that both m should conflict, too.
Nah, you probably want both m for testing.
Quoted 1 line
And one y and the other m, too.
Yeah that should conflict too.
Quoted 1 line
This can be done with ugly "depends" statements.
I have no idea.
johannes
Quoted 5 lines · Johannes Berg
Quoted 1 line · Michael Buesch
Sure. I would probably say that both m should conflict, too.
Nah, you probably want both m for testing.
I am OK with this, but it fucks up module autoloading. But that is probably OK.
Signature · 1 line
Greetings Michael.