linux
Selecting ACPI_VIDEO but not its dependencies causes a build error
Config option STUB_POULSBO will select ACPI_VIDEO if ACPI is enabled, but it does not make sure that ACPI_VIDEO dependencies are met as well. Note that Kconfig will not select dependencies automatically.
Bug fixed by commit 7c6048b7c83
| Type | UndefinedSymbol |
| Config | "STUB_POULSBO && ACPI_VIDEO && !BACKLIGHT_CLASS_DEVICE" (3rd degree) |
| Fix-in | model |
| Location | drivers/gpu/ |
#if defined(CONFIG_ACPI) && defined(CONFIG_STUB_POULSBO)
#define CONFIG_ACPI_VIDEO
#endif
#ifdef CONFIG_BACKLIGHT_CLASS_DEVICE
void backlight_device_unregister()
{
return;
}
#endif
#ifdef CONFIG_ACPI_VIDEO
static int acpi_video_bus_put_one_device()
{
backlight_device_unregister();
return 0;
}
#endif
int main(int argc, char** argv)
{
#if defined(CONFIG_ACPI) && defined(CONFIG_STUB_POULSBO)
acpi_video_bus_put_one_device();
#endif
return 0;
}
diff --git a/simple/7c6048b.c b/simple/7c6048b.c --- a/simple/7c6048b.c +++ b/simple/7c6048b.c @@ -1,6 +1,7 @@ #if defined(CONFIG_ACPI) && defined(CONFIG_STUB_POULSBO) #define CONFIG_ACPI_VIDEO +#define CONFIG_BACKLIGHT_CLASS_DEVICE #endif #ifdef CONFIG_BACKLIGHT_CLASS_DEVICE