linux-next: build warning after merge of the battery tree
Hi Sebastian,
After merging the battery tree, today's linux-next build (powerpc ppc64_defconfig and x86_64 allmodconfig) produced this warning:
fs/sysfs/Kconfig:1:error: recursive dependency detected!fs/sysfs/Kconfig:1: symbol SYSFS is selected by CHARGER_MAX14577drivers/power/Kconfig:327: symbol CHARGER_MAX14577 depends on POWER_SUPPLYdrivers/power/Kconfig:1: symbol POWER_SUPPLY is selected by HID_SONYdrivers/hid/Kconfig:649: symbol HID_SONY depends on NEW_LEDSdrivers/leds/Kconfig:8: symbol NEW_LEDS is selected by SENSORS_APPLESMCdrivers/hwmon/Kconfig:299: symbol SENSORS_APPLESMC depends on HWMONdrivers/hwmon/Kconfig:5: symbol HWMON is selected by EEEPC_LAPTOPdrivers/platform/x86/Kconfig:496: symbol EEEPC_LAPTOP depends on HOTPLUG_PCIdrivers/pci/hotplug/Kconfig:5: symbol HOTPLUG_PCI depends on SYSFS
Caused by commit e30110e9c96f ("charger: max14577: Configure battery-dependent settings from DTS and sysfs"). Consider depending on SYSFS instead of selecting it ... or maybe making your driver work even without it.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 16 lines · Stephen Rothwell
Hi Sebastian,
After merging the battery tree, today's linux-next build (powerpc
ppc64_defconfigandx86_64allmodconfig) produced this warning:fs/sysfs/Kconfig:1:error: recursive dependency detected!
fs/sysfs/Kconfig:1: symbol SYSFS is selected byCHARGER_MAX14577drivers/power/Kconfig:327: symbolCHARGER_MAX14577depends onPOWER_SUPPLYdrivers/power/Kconfig:1: symbolPOWER_SUPPLYis selected byHID_SONYdrivers/hid/Kconfig:649: symbolHID_SONYdepends onNEW_LEDSdrivers/leds/Kconfig:8: symbolNEW_LEDSis selected bySENSORS_APPLESMCdrivers/hwmon/Kconfig:299: symbolSENSORS_APPLESMCdepends on HWMONdrivers/hwmon/Kconfig:5: symbol HWMON is selected byEEEPC_LAPTOPdrivers/platform/x86/Kconfig:496: symbolEEEPC_LAPTOPdepends onHOTPLUG_PCIdrivers/pci/hotplug/Kconfig:5: symbolHOTPLUG_PCIdepends on SYSFS
Quoted 4 lines
Caused by commit
e30110e9c96f("charger: max14577: Configure battery-dependent settings from DTS and sysfs"). Consider depending on SYSFS instead of selecting it ... or maybe making your driver work even without it.
I'll send a patch changing to "depends on".
Best regards,
Krzysztof