Re: [PATCH] pinctrl: Fix "warning: 'struct pinctrl_dev' declaredinside parameter list"

From: Linus Walleij
Date: Fri Oct 28 2011 - 16:03:36 EST


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

> From: Barry Song <Baohua.Song@xxxxxxx>
>
> 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@xxxxxxx>

OK applied.

Thanks,
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/