leftover b43-related cruft in drivers/net/wireless?
i have a shell script that scans selected parts of the kernel source
tree to locate, among other things, unused config variables in Kconfig files, and it identified the following under drivers/net/wireless:
$ find_unused_configs.sh drivers/net/wireless
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_BCMA_PIO
drivers/net/wireless/b43/Kconfig:113:config B43_BCMA_PIO
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_BUSES_SSB
drivers/net/wireless/b43/Kconfig:52:config B43_BUSES_SSB
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43LEGACY_DMA_MODE
drivers/net/wireless/b43legacy/Kconfig:85:config B43LEGACY_DMA_MODE
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43LEGACY_PCICORE_AUTOSELECT
drivers/net/wireless/b43legacy/Kconfig:31:config B43LEGACY_PCICORE_AUTOSELECT
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43LEGACY_PIO_MODE
drivers/net/wireless/b43legacy/Kconfig:92:config B43LEGACY_PIO_MODE
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_PCICORE_AUTOSELECT
drivers/net/wireless/b43/Kconfig:68:config B43_PCICORE_AUTOSELECT
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_PIO
drivers/net/wireless/b43/Kconfig:119:config B43_PIO $
no real harm, just means that there are Kconfig definitions of the
above variables that no one appears to be testing for in the entire kernel source tree, so they're potentially safe to be removed.
feel free to do with that what you will.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 17 lines · Robert P. J. Day
i have a shell script that scans selected parts of the kernel source
tree to locate, among other things, unused config variables inKconfigfiles, and it identified the following underdrivers/net/wireless:$ find_unused_configs.sh drivers/net/wirelessQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_BCMA_PIOdrivers/net/wireless/b43/Kconfig:113:config
B43_BCMA_PIOQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_BUSES_SSBdrivers/net/wireless/b43/Kconfig:52:config
B43_BUSES_SSBQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43LEGACY_DMA_MODEdrivers/net/wireless/b43legacy/Kconfig:85:config
B43LEGACY_DMA_MODEQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43LEGACY_PCICORE_AUTOSELECTdrivers/net/wireless/b43legacy/Kconfig:31:config
B43LEGACY_PCICORE_AUTOSELECTQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43LEGACY_PIO_MODEdrivers/net/wireless/b43legacy/Kconfig:92:config
B43LEGACY_PIO_MODEQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_PCICORE_AUTOSELECT
Quoted 8 lines
drivers/net/wireless/b43/Kconfig:68:config
B43_PCICORE_AUTOSELECTQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
B43_PIOdrivers/net/wireless/b43/Kconfig:119:config
B43_PIO$no real harm, just means that there are
Kconfigdefinitions of the
above variables that no one appears to be testing for in the entire kernel source tree, so they're potentially safe to be removed.
I didn't check all the symbols, but some of them are kind of helpers for configuring the driver.
For example B43_BUSES_SSB while looks unused, it is here for select-ing B43_SSB. I wanted to use "choice" to prevent users from compiling b43 without any bus support which doesn't make much sense.
The same applies to the B43_BCMA_PIO and B43_PIO (this one should be B43_SSB_PIO actually), they are helpers for selecting PIO support at bus driver level.