From: kernel test robot <lkp@intel.com>
To: "Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Daniel Vetter" <daniel@ffwll.ch>,
"David Airlie" <airlied@gmail.com>,
"Frank Rowand" <frowand.list@gmail.com>,
"Helge Deller" <deller@gmx.de>,
"Jaroslav Kysela" <perex@perex.cz>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Liam Girdwood" <lgirdwood@gmail.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Mark Brown" <broonie@kernel.org>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Maxime Ripard" <mripard@kernel.org>,
"Michal Simek" <monstr@monstr.eu>,
"Rob Herring" <robh+dt@kernel.org>,
"Saravana Kannan" <saravanak@google.com>,
"Takashi Iwai" <tiwai@suse.com>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org,
alsa-devel@alsa-project.org, devicetree@vger.kernel.org,
linux-fbdev@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH v2 05/13] media: xilinx-tpg: use of_graph_get_next_endpoint_raw()
Date: Tue, 30 Jan 2024 21:35:46 +0800 [thread overview]
Message-ID: <202401302148.K0ZR110q-lkp@intel.com> (raw)
In-Reply-To: <878r49klg1.wl-kuninori.morimoto.gx@renesas.com>
Hi Kuninori,
kernel test robot noticed the following build errors:
[auto build test ERROR on broonie-sound/for-next]
[also build test ERROR on drm-misc/drm-misc-next linus/master v6.8-rc2 next-20240130]
[cannot apply to robh/for-next]
[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/Kuninori-Morimoto/of-property-add-port-base-loop/20240129-085726
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
patch link: https://lore.kernel.org/r/878r49klg1.wl-kuninori.morimoto.gx%40renesas.com
patch subject: [PATCH v2 05/13] media: xilinx-tpg: use of_graph_get_next_endpoint_raw()
config: mips-randconfig-r113-20240130 (https://download.01.org/0day-ci/archive/20240130/202401302148.K0ZR110q-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce: (https://download.01.org/0day-ci/archive/20240130/202401302148.K0ZR110q-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401302148.K0ZR110q-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
>> drivers/media/platform/xilinx/xilinx-tpg.c:747:15: error: implicit declaration of function 'of_graph_get_next_endpoint_raw' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
endpoint = of_graph_get_next_endpoint_raw(port, NULL);
^
drivers/media/platform/xilinx/xilinx-tpg.c:747:15: note: did you mean 'acpi_graph_get_next_endpoint'?
include/linux/acpi.h:1409:1: note: 'acpi_graph_get_next_endpoint' declared here
acpi_graph_get_next_endpoint(const struct fwnode_handle *fwnode,
^
>> drivers/media/platform/xilinx/xilinx-tpg.c:747:13: warning: incompatible integer to pointer conversion assigning to 'struct device_node *' from 'int' [-Wint-conversion]
endpoint = of_graph_get_next_endpoint_raw(port, NULL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +/of_graph_get_next_endpoint_raw +747 drivers/media/platform/xilinx/xilinx-tpg.c
705
706 /* -----------------------------------------------------------------------------
707 * Platform Device Driver
708 */
709
710 static int xtpg_parse_of(struct xtpg_device *xtpg)
711 {
712 struct device *dev = xtpg->xvip.dev;
713 struct device_node *node = xtpg->xvip.dev->of_node;
714 struct device_node *ports;
715 struct device_node *port;
716 unsigned int nports = 0;
717 bool has_endpoint = false;
718
719 ports = of_get_child_by_name(node, "ports");
720 if (ports == NULL)
721 ports = node;
722
723 for_each_child_of_node(ports, port) {
724 const struct xvip_video_format *format;
725 struct device_node *endpoint;
726
727 if (!of_node_name_eq(port, "port"))
728 continue;
729
730 format = xvip_of_get_format(port);
731 if (IS_ERR(format)) {
732 dev_err(dev, "invalid format in DT");
733 of_node_put(port);
734 return PTR_ERR(format);
735 }
736
737 /* Get and check the format description */
738 if (!xtpg->vip_format) {
739 xtpg->vip_format = format;
740 } else if (xtpg->vip_format != format) {
741 dev_err(dev, "in/out format mismatch in DT");
742 of_node_put(port);
743 return -EINVAL;
744 }
745
746 if (nports == 0) {
> 747 endpoint = of_graph_get_next_endpoint_raw(port, NULL);
748 if (endpoint)
749 has_endpoint = true;
750 of_node_put(endpoint);
751 }
752
753 /* Count the number of ports. */
754 nports++;
755 }
756
757 if (nports != 1 && nports != 2) {
758 dev_err(dev, "invalid number of ports %u\n", nports);
759 return -EINVAL;
760 }
761
762 xtpg->npads = nports;
763 if (nports == 2 && has_endpoint)
764 xtpg->has_input = true;
765
766 return 0;
767 }
768
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-01-30 13:36 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-29 0:54 [PATCH v2 00/13] of: property: add port base loop Kuninori Morimoto
2024-01-29 0:54 ` [PATCH v2 01/13] " Kuninori Morimoto
2024-01-29 12:16 ` Tomi Valkeinen
2024-01-31 18:52 ` Rob Herring
2024-01-31 23:25 ` Kuninori Morimoto
2024-01-31 18:59 ` Rob Herring
2024-01-29 0:54 ` [PATCH v2 02/13] of: property: use of_graph_get_next_port() on of_graph_get_next_endpoint() Kuninori Morimoto
2024-01-29 12:18 ` Tomi Valkeinen
2024-01-29 0:54 ` [PATCH v2 03/13] of: property: add of_graph_get_next_endpoint_raw() Kuninori Morimoto
2024-01-29 12:29 ` Tomi Valkeinen
2024-01-29 13:02 ` Laurent Pinchart
2024-01-30 0:08 ` Kuninori Morimoto
2024-01-31 18:43 ` Rob Herring
2024-02-01 0:43 ` Kuninori Morimoto
2024-02-01 1:48 ` Kuninori Morimoto
2024-01-29 13:37 ` Sakari Ailus
2024-01-30 0:37 ` Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 04/13] drm: omapdrm: use of_graph_get_next_endpoint_raw() Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 05/13] media: xilinx-tpg: " Kuninori Morimoto
2024-01-30 13:35 ` kernel test robot [this message]
2024-01-29 0:55 ` [PATCH v2 06/13] ASoC: audio-graph-card: " Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 07/13] ASoC: audio-graph-card2: use of_graph_get_next_port() Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 08/13] ASoC: audio-graph-card2: use of_graph_get_next_endpoint_raw() Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 09/13] ASoC: test-component: use for_each_port_of_node() Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 10/13] fbdev: omapfb: use of_graph_get_remote_port() Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 11/13] fbdev: omapfb: use of_graph_get_next_port() Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 12/13] fbdev: omapfb: use of_graph_get_next_endpoint_raw() Kuninori Morimoto
2024-01-29 0:55 ` [PATCH v2 13/13] fbdev: omapfb: use of_graph_get_next_endpoint() Kuninori Morimoto
2024-01-29 12:27 ` [PATCH v2 00/13] of: property: add port base loop Laurent Pinchart
2024-01-29 13:29 ` Sakari Ailus
2024-01-30 0:34 ` Kuninori Morimoto
2024-01-30 7:31 ` Sakari Ailus
2024-01-30 7:37 ` Tomi Valkeinen
2024-01-30 7:40 ` Sakari Ailus
2024-01-30 23:24 ` Kuninori Morimoto
2024-02-01 9:18 ` Sakari Ailus
2024-02-05 5:31 ` Kuninori Morimoto
2024-02-05 9:26 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202401302148.K0ZR110q-lkp@intel.com \
--to=lkp@intel.com \
--cc=airlied@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=daniel@ffwll.ch \
--cc=deller@gmx.de \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lgirdwood@gmail.com \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mchehab@kernel.org \
--cc=monstr@monstr.eu \
--cc=mripard@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=saravanak@google.com \
--cc=tiwai@suse.com \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tzimmermann@suse.de \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).