Re: [PATCH v7 3/4] gpio: rpmsg: add generic rpmsg GPIO driver

From: kernel test robot

Date: Wed Feb 11 2026 - 00:57:34 EST


Hi Shenwei,

kernel test robot noticed the following build errors:

[auto build test ERROR on brgl/gpio/for-next]
[also build test ERROR on robh/for-next remoteproc/rproc-next linus/master v6.19 next-20260210]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Shenwei-Wang/dt-bindings-remoteproc-imx_rproc-Add-rpmsg-subnode-support/20260211-011505
base: https://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git gpio/for-next
patch link: https://lore.kernel.org/r/20260210170814.406883-4-shenwei.wang%40nxp.com
patch subject: [PATCH v7 3/4] gpio: rpmsg: add generic rpmsg GPIO driver
config: nios2-randconfig-r054-20260211 (https://download.01.org/0day-ci/archive/20260211/202602111320.C3eHRtNV-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260211/202602111320.C3eHRtNV-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602111320.C3eHRtNV-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

nios2-linux-ld: drivers/gpio/gpio-rpmsg.o: in function `rpmsg_get_channel_ofnode':
>> drivers/gpio/gpio-rpmsg.c:473: undefined reference to `rproc_get_by_child'
>> drivers/gpio/gpio-rpmsg.c:473:(.text+0x454): relocation truncated to fit: R_NIOS2_CALL26 against `rproc_get_by_child'
nios2-linux-ld: drivers/gpio/gpio-rpmsg.o: in function `rpmsg_get_rproc_node_name':
drivers/gpio/gpio-rpmsg.c:450: undefined reference to `rproc_get_by_child'
drivers/gpio/gpio-rpmsg.c:450:(.text+0x4e0): relocation truncated to fit: R_NIOS2_CALL26 against `rproc_get_by_child'


vim +473 drivers/gpio/gpio-rpmsg.c

466
467 static struct device_node *
468 rpmsg_get_channel_ofnode(struct rpmsg_device *rpdev, char *chan_name)
469 {
470 struct device_node *np_chan = NULL, *np;
471 struct rproc *rproc;
472
> 473 rproc = rproc_get_by_child(&rpdev->dev);
474 if (!rproc)
475 return NULL;
476
477 np = of_node_get(rproc->dev.of_node);
478 if (!np && rproc->dev.parent)
479 np = of_node_get(rproc->dev.parent->of_node);
480
481 if (np) {
482 /* Balance the of_node_put() performed by of_find_node_by_name(). */
483 of_node_get(np);
484 np_chan = of_find_node_by_name(np, chan_name);
485 of_node_put(np);
486 }
487
488 return np_chan;
489 }
490

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki