Skip to contentSkip to conversation

nouveau_pm.c: Build error

DISCUSSION Stratos Psomadakis 2 participants 2 messages Apr 11, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

In nouveau_pm.c, in the function nouveau_pm_acpi_event(), there's no check for CONFIG_POWER_SUPPLY.

If CONFIG_POWER_SUPPLY is set to either n or m, the power_supply_is_system_supplied() is 'missing' and there's a build error.

One solution is to add an #ifdef CONFIG_POWER_SUPPLY along with the #ifdef CONFIG_ACPI before the function.

Signature · 2 lines
Stratos Psomadakis
<[email protected]>

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 8 lines · Stratos Psomadakis

In nouveau_pm.c, in the function nouveau_pm_acpi_event(), there's no check for CONFIG_POWER_SUPPLY.

If CONFIG_POWER_SUPPLY is set to either n or m, the power_supply_is_system_supplied() is 'missing' and there's a build error.

One solution is to add an #ifdef CONFIG_POWER_SUPPLY along with the #ifdef CONFIG_ACPI before the function.

Thanks, I'll send a patch for that tonight.

Can I add a Reported-by: line with your name and email address?