]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: dell-smbios: Resolve dependency error on DCDBAS
authorDarren Hart (VMware) <dvhart@infradead.org>
Wed, 7 Mar 2018 02:01:04 +0000 (18:01 -0800)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 9 Mar 2018 17:35:46 +0000 (09:35 -0800)
commitb0e4e02689a50c19483c66e31c4fc020bb737486
tree99c6e874c1ee9c2841fdadbbc202078b7d506023
parent4dc39e1c649b58568e28f64db9b4e3fe8e95a915
platform/x86: dell-smbios: Resolve dependency error on DCDBAS

When the DELL_SMBIOS_SMM backend is enabled, the DELL_SMBIOS symbol
depends on DELL_DCDBAS, and we must avoid the situation where
DELL_SMBIOS=y and DCDBAS=m.

Adding the conditional dependency to DELL_SMBIOS such as:

depends !DELL_SMBIOS_SMM || (DCDBAS || DCDBAS=n)

results in the Kconfig tooling complaining about a circular dependency,
although it appears to work in practice.

Avoid the errors by simplifying the dependency and forcing DELL_SMBIOS
to be <= DCDBAS if DCDBAS is enabled (thanks to Greg KH for the
suggestion).

Cc: Mario.Limonciello@dell.com
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/Kconfig