Re: [PATCH v2] gpiolib: add missing declarations

From: Linus Walleij
Date: Thu Nov 28 2013 - 09:32:42 EST


On Mon, Nov 25, 2013 at 10:34 AM, Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:

> Add declaration of 'struct of_phandle_args' to avoid the following
> warning:
>
> In file included from arch/arm/mach-tegra/board-paz00.c:21:0:
> include/linux/gpio/driver.h:102:17: warning: 'struct of_phandle_args' declared inside parameter list
> include/linux/gpio/driver.h:102:17: warning: its scope is only this definition or declaration, which is probably not what you want
>
> Also proactively add other definitions/includes that could be missing
> in other contexts.
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Reported-by: Stephen Warren <swarren@xxxxxxxxxxxxx>
> Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>

Patch applied for fixes.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/