[PATCH] pinctrl: Fix "warning: 'struct pinctrl_dev' declared inside parameter list"

Linus Walleij linus.walleij at linaro.org
Fri Oct 28 16:03:34 EDT 2011


On Fri, Oct 28, 2011 at 5:38 AM, Barry Song <Barry.Song at csr.com> wrote:

> From: Barry Song <Baohua.Song at csr.com>
>
> when pinctl subsystem is not selected, when compiling drivers including
> the include/linux/pinctrl/pinctrl.h, we will get the warning as below:
> In file included from include/linux/pinctrl/pinmux.h:17,
>                 from drivers/tty/serial/sirfsoc_uart.c:25:
> include/linux/pinctrl/pinctrl.h:126: warning: 'struct pinctrl_dev'
>                declared inside parameter list
> include/linux/pinctrl/pinctrl.h:126: warning: its scope is only this
>      definition or declaration, which is probably not what you want
>
> Signed-off-by: Barry Song <Baohua.Song at csr.com>

OK applied.

Thanks,
Linus Walleij



More information about the linux-arm-kernel mailing list