Re: [announce] new tree: "fix all build warnings, on all configs"

From: Ingo Molnar
Date: Tue Oct 21 2008 - 07:17:50 EST



* Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

> > * acpi_pm_disable_gpes - Disable the GPEs.
> > */
> > -static int acpi_pm_disable_gpes(void)
> > +static inline int acpi_pm_disable_gpes(void)
>
> Just to satisfy my curiosity, what compiler warning does marking
> functions inline fix?

the commit log below explains the situation. The warning exposed a maze
of #ifdefs in drivers/acpi/sleep/main.c. It's not the warning we need to
"fix" but that maze, obviously.

Ingo

-------------------------------------------->