Re: [PATCH] serial: st-asc: Use new GPIOD API to obtain RTS pin

From: Andy Shevchenko
Date: Wed Feb 08 2017 - 11:32:06 EST


On Wed, 2017-02-08 at 21:48 +0800, kbuild test robot wrote:
> Hi Lee,
>
> [auto build test ERROR on tty/tty-testing]
> [cannot apply to v4.10-rc7 next-20170208]
> [if your patch is applied to the wrong git tree, please drop us a note
> to help improve the system]
>
> url:ÂÂÂÂhttps://github.com/0day-ci/linux/commits/Lee-Jones/serial-st-a
> sc-Use-new-GPIOD-API-to-obtain-RTS-pin/20170208-180609
> base:ÂÂÂhttps://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
> tty-testing
> config: x86_64-allmodconfig (attached as .config)
> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> reproduce:
> ÂÂÂÂÂÂÂÂ# save the attached .config to linux build tree
> ÂÂÂÂÂÂÂÂmake ARCH=x86_64Â
>

It requires to have immutable branch in one of the subsystem which the
other one can pull.

> All errors (new ones prefixed by >>):
>
> ÂÂÂdrivers/tty/serial/st-asc.c: In function 'asc_set_termios':
> > > drivers/tty/serial/st-asc.c:578:12: error: implicit declaration of
> > > function 'devm_fwnode_get_gpiod_from_child' [-Werror=implicit-
> > > function-declaration]
>
> ÂÂÂÂÂÂÂgpiod = devm_fwnode_get_gpiod_from_child(port->dev,
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ÂÂÂdrivers/tty/serial/st-asc.c:578:10: warning: assignment makes
> pointer from integer without a cast [-Wint-conversion]
> ÂÂÂÂÂÂÂgpiod = devm_fwnode_get_gpiod_from_child(port->dev,
> ÂÂÂÂÂÂÂÂÂÂÂÂÂ^
> ÂÂÂcc1: some warnings being treated as errors
>
> vim +/devm_fwnode_get_gpiod_from_child +578 drivers/tty/serial/st-
> asc.c
>
> ÂÂÂ572 } else {
> ÂÂÂ573 /* If flow-control disabled, it's safe
> to handle RTS manually */
> ÂÂÂ574 if (!ascport->rts && ascport-
> >states[NO_HW_FLOWCTRL]) {
> ÂÂÂ575 pinctrl_select_state(ascport-
> >pinctrl,
> ÂÂÂ576 ÂÂÂÂÂascport-
> >states[NO_HW_FLOWCTRL]);
> ÂÂÂ577
> Â> 578 gpiod =
> devm_fwnode_get_gpiod_from_child(port->dev,
> ÂÂÂ579
> Â"rts",
> ÂÂÂ580
> Â&np->fwnode,
> ÂÂÂ581
> ÂGPIOD_OUT_LOW,
>
> ---
> 0-DAY kernel test infrastructureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂOpen Source Technology
> Center
> https://lists.01.org/pipermail/kbuild-allÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂIntel
> Corporation

--
Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Intel Finland Oy