drivers: net: Fix dependency for EEPROM_93CX6
PATCH 1/1 drivers: net: Fix dependency for EEPROM_93CX6
Fix the following build warning:
warning: (KS8851 && AX88796_93CX6 && RTL8180 && RTL8187 && ADM8211 && RT2400PCI && RT2500PCI && RT61PCI && RT2800PCI && R8187SE) selects EEPROM_93CX6 which has unmet direct dependencies (MISC_DEVICES)
--- drivers/net/ethernet/8390/Kconfig | 2 +- drivers/net/ethernet/micrel/Kconfig | 3 +-- drivers/net/wireless/Kconfig | 2 +- drivers/net/wireless/rt2x00/Kconfig | 8 ++++---- drivers/net/wireless/rtl818x/Kconfig | 4 ++-- 5 files changed, 9 insertions(+), 10 deletions(-)
drivers/net/ethernet/8390/Kconfig +1 -1
@@ -69,7 +69,7 @@ config AX88796 config AX88796_93CX6 bool "ASIX AX88796 external 93CX6 eeprom support" depends on AX88796 - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- Select this if your platform comes with an external 93CX6 eeprom.
drivers/net/ethernet/micrel/Kconfig +1 -2
@@ -42,8 +42,7 @@ config KS8851 select NET_CORE select MII select CRC32 - select MISC_DEVICES - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- SPI driver for Micrel KS8851 SPI attached network chip.
drivers/net/wireless/Kconfig +1 -1
@@ -223,7 +223,7 @@ config ADM8211 tristate "ADMtek ADM8211 support" depends on MAC80211 && PCI && EXPERIMENTAL select CRC32 - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- This driver is for ADM8211A, ADM8211B, and ADM8211C based cards. These are PCI/mini-PCI/Cardbus 802.11b chips found in cards such as:
drivers/net/wireless/rt2x00/Kconfig +4 -4
@@ -21,7 +21,7 @@ config RT2400PCI tristate "Ralink rt2400 (PCI/PCMCIA) support" depends on PCI select RT2X00_LIB_PCI - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- This adds support for rt2400 wireless chipset family. Supported chips: RT2460.
@@ -32,7 +32,7 @@ config RT2500PCI tristate "Ralink rt2500 (PCI/PCMCIA) support" depends on PCI select RT2X00_LIB_PCI - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- This adds support for rt2500 wireless chipset family. Supported chips: RT2560.
@@ -46,7 +46,7 @@ config RT61PCI select RT2X00_LIB_FIRMWARE select RT2X00_LIB_CRYPTO select CRC_ITU_T - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- This adds support for rt2501 wireless chipset family. Supported chips: RT2561, RT2561S & RT2661.
@@ -62,7 +62,7 @@ config RT2800PCI select RT2X00_LIB_FIRMWARE select RT2X00_LIB_CRYPTO select CRC_CCITT - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- This adds support for rt27xx/rt28xx/rt30xx wireless chipset family. Supported chips: RT2760, RT2790, RT2860, RT2880, RT2890, RT3052,
drivers/net/wireless/rtl818x/Kconfig +2 -2
@@ -4,7 +4,7 @@ config RTL8180 tristate "Realtek 8180/8185 PCI support" depends on MAC80211 && PCI && EXPERIMENTAL - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- This is a driver for RTL8180 and RTL8185 based cards. These are PCI based chips found in cards such as:
@@ -60,7 +60,7 @@ config RTL8180 config RTL8187 tristate "Realtek 8187 and 8187B USB support" depends on MAC80211 && USB - select EEPROM_93CX6 + select EEPROM_93CX6 if MISC_DEVICES ---help--- This is a driver for RTL8187 and RTL8187B based cards. These are USB based chips found in devices such as:
Signature · 1 line
1.7.1
A message that is not in the archive (sent off-list or not yet received): 1325765663-7141-1-git-send-email-festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Quoted 5 lines · Fabio Estevam
Fix the following build warning:
warning: (KS8851 &&
AX88796_93CX6&& RTL8180 && RTL8187 && ADM8211 && RT2400PCI && RT2500PCI && RT61PCI && RT2800PCI && R8187SE) selectsEEPROM_93CX6which has unmet direct dependencies (MISC_DEVICES)Signed-off-by Fabio Estevam <[email protected]>
NAK, at least for the rt2x00 part, but probably for the other parts as well. The rt2x00 drivers actually need the EEPROM_93CX6 driver to be present, otherwise they won't work correctly. Therefore only selecting the symbol when MISC_DEVICES has been enabled can lead to a non-functional configuration for the rt2x00 devices.
A correct fix would be to also select MISC_DEVICES at all locations where EEPROM_93CX6 is selected.
---
Gertjan.
Quoted 117 lines
---
drivers/net/ethernet/8390/Kconfig | 2 +-drivers/net/ethernet/micrel/Kconfig| 3 +--drivers/net/wireless/Kconfig| 2 +-drivers/net/wireless/rt2x00/Kconfig| 8 ++++----drivers/net/wireless/rtl818x/Kconfig| 4 ++--5 files changed, 9 insertions(+), 10 deletions(-)drivers/net/ethernet/8390/Kconfig +0
-0@@ -69,7 +69,7 @@ config AX88796config
AX88796_93CX6
bool "ASIX AX88796 external 93CX6 eeprom support" depends on AX88796
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES
---help---
Select this if your platform comes with an external 93CX6 eeprom.drivers/net/ethernet/micrel/Kconfig +0
-0@@ -42,8 +42,7 @@ config KS8851select
NET_CORE
select MII
select CRC32
- selectMISC_DEVICES
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES
---help---
SPI driver for Micrel KS8851 SPI attached network chip.drivers/net/wireless/Kconfig +0
-0@@ -223,7 +223,7 @@ config ADM8211tristate "ADMtek ADM8211 support"
depends on MAC80211 && PCI && EXPERIMENTAL
select CRC32
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES
---help---
This driver is for ADM8211A, ADM8211B, and ADM8211C based cards. These are PCI/mini-PCI/Cardbus 802.11b chips found in cards such as:drivers/net/wireless/rt2x00/Kconfig +0
-0@@ -21,7 +21,7 @@ config RT2400PCItristate "Ralink rt2400 (PCI/PCMCIA) support" depends on PCI
selectRT2X00_LIB_PCI
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES---help---
This adds support for rt2400 wireless chipset family. Supported chips: RT2460.drivers/net/wireless/rt2x00/Kconfig +0
-0@@ -32,7 +32,7 @@ config RT2500PCItristate "Ralink rt2500 (PCI/PCMCIA) support" depends on PCI
selectRT2X00_LIB_PCI
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES---help---
This adds support for rt2500 wireless chipset family. Supported chips: RT2560.drivers/net/wireless/rt2x00/Kconfig +0
-0@@ -46,7 +46,7 @@ config RT61PCIselect
RT2X00_LIB_FIRMWARE
selectRT2X00_LIB_CRYPTO
selectCRC_ITU_T
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES---help---
This adds support for rt2501 wireless chipset family. Supported chips: RT2561, RT2561S & RT2661.drivers/net/wireless/rt2x00/Kconfig +0
-0@@ -62,7 +62,7 @@ config RT2800PCIselect
RT2X00_LIB_FIRMWARE
selectRT2X00_LIB_CRYPTO
selectCRC_CCITT
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES
---help---
This adds support for rt27xx/rt28xx/rt30xx wireless chipset family. Supported chips: RT2760, RT2790, RT2860, RT2880, RT2890, RT3052,drivers/net/wireless/rtl818x/Kconfig +0
-0@@ -4,7 +4,7 @@config RTL8180
tristate "Realtek 8180/8185 PCI support" depends on MAC80211 && PCI && EXPERIMENTAL
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES---help---
This is a driver for RTL8180 and RTL8185 based cards. These are PCI based chips found in cards such as:drivers/net/wireless/rtl818x/Kconfig +0
-0@@ -60,7 +60,7 @@ config RTL8180config RTL8187
tristate "Realtek 8187 and 8187B USB support" depends on MAC80211 && USB
- selectEEPROM_93CX6
+ selectEEPROM_93CX6ifMISC_DEVICES---help---
This is a driver for RTL8187 and RTL8187B based cards. These are USB based chips found in devices such as:
--
1.7.1--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 6 lines
--- Gertjan -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Gertjan van Wingerde
A correct fix would be to also select
MISC_DEVICESat all locations whereEEPROM_93CX6is selected.
Ok, I guess you mean:
(quoted diff) +0 -0
b/drivers/net/ethernet/8390/Kconfig
index e04ade4..19df534 100644
drivers/net/ethernet/8390/Kconfig +1 -0
@@ -69,6 +69,7 @@ config AX88796 config AX88796_93CX6 bool "ASIX AX88796 external 93CX6 eeprom support" depends on AX88796 + select MISC_DEVICES select EEPROM_93CX6 ---help--- Select this if your platform comes with an external 93CX6 eeprom.
drivers/net/wireless/Kconfig +1 -0
@@ -223,6 +223,7 @@ config ADM8211 tristate "ADMtek ADM8211 support" depends on MAC80211 && PCI && EXPERIMENTAL select CRC32 + select MISC_DEVICES select EEPROM_93CX6 ---help--- This driver is for ADM8211A, ADM8211B, and ADM8211C based cards.
(quoted diff) +0 -0
b/drivers/net/wireless/rt2x00/Kconfig
index a0a7854..f9a1028 100644
drivers/net/wireless/rt2x00/Kconfig +4 -0
@@ -21,6 +21,7 @@ config RT2400PCI tristate "Ralink rt2400 (PCI/PCMCIA) support" depends on PCI select RT2X00_LIB_PCI + select MISC_DEVICES select EEPROM_93CX6 ---help--- This adds support for rt2400 wireless chipset family.
@@ -32,6 +33,7 @@ config RT2500PCI tristate "Ralink rt2500 (PCI/PCMCIA) support" depends on PCI select RT2X00_LIB_PCI + select MISC_DEVICES select EEPROM_93CX6 ---help--- This adds support for rt2500 wireless chipset family.
@@ -46,6 +48,7 @@ config RT61PCI select RT2X00_LIB_FIRMWARE select RT2X00_LIB_CRYPTO select CRC_ITU_T + select MISC_DEVICES select EEPROM_93CX6 ---help--- This adds support for rt2501 wireless chipset family.
@@ -62,6 +65,7 @@ config RT2800PCI select RT2X00_LIB_FIRMWARE select RT2X00_LIB_CRYPTO select CRC_CCITT + select MISC_DEVICES select EEPROM_93CX6 ---help--- This adds support for rt27xx/rt28xx/rt30xx wireless chipset family.
(quoted diff) +0 -0
b/drivers/net/wireless/rtl818x/Kconfig
index 17d80fe..2c8c2f2 100644
drivers/net/wireless/rtl818x/Kconfig +2 -0
@@ -4,6 +4,7 @@ config RTL8180 tristate "Realtek 8180/8185 PCI support" depends on MAC80211 && PCI && EXPERIMENTAL + select MISC_DEVICES select EEPROM_93CX6 ---help--- This is a driver for RTL8180 and RTL8185 based cards.
@@ -60,6 +61,7 @@ config RTL8180 config RTL8187 tristate "Realtek 8187 and 8187B USB support" depends on MAC80211 && USB + select MISC_DEVICES select EEPROM_93CX6 ---help--- This is a driver for RTL8187 and RTL8187B based cards.
,but still get the warnings in this case too.
Regards,
Fabio Estevam
On Thu, Jan 5, 2012 at 11:11 AM, Fabio Estevam <[email protected]> wrote:
...
Quoted 1 line
,but still get the warnings in this case too.
I think the correct fix would be to add MISC_DEVICES into the 'depends on' lines.
Do you agree?
Regards,
Fabio Estevam