public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Tommaso Merciai <tomm.merciai@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, jacopo.mondi@ideasonboard.com,
	laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu,
	michael.roeder@avnet.eu, linuxfancy@googlegroups.com,
	"Tommaso Merciai" <tomm.merciai@gmail.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	linux-media@vger.kernel.org,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	"Mark Brown" <broonie@kernel.org>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Hans Verkuil" <hverkuil@xs4all.nl>,
	"Marco Felsch" <m.felsch@pengutronix.de>,
	"Gerald Loacker" <gerald.loacker@wolfvision.net>,
	"Nicholas Roth" <nicholas@rothemail.net>,
	"Krzysztof Hałasa" <khalasa@piap.pl>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
	"Mikhail Rudenko" <mike.rudenko@gmail.com>,
	"Shawn Tu" <shawnx.tu@intel.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 3/3] media: i2c: Add support for alvium camera
Date: Fri, 9 Jun 2023 05:08:11 +0800	[thread overview]
Message-ID: <202306090401.jEkSrYuJ-lkp@intel.com> (raw)
In-Reply-To: <20230608083127.545750-4-tomm.merciai@gmail.com>

Hi Tommaso,

kernel test robot noticed the following build warnings:

[auto build test WARNING on media-tree/master]
[also build test WARNING on robh/for-next linus/master v6.4-rc5 next-20230608]
[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/Tommaso-Merciai/dt-bindings-vendor-prefixes-Add-prefix-alliedvision/20230608-163423
base:   git://linuxtv.org/media_tree.git master
patch link:    https://lore.kernel.org/r/20230608083127.545750-4-tomm.merciai%40gmail.com
patch subject: [PATCH v5 3/3] media: i2c: Add support for alvium camera
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230609/202306090401.jEkSrYuJ-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add media-tree git://linuxtv.org/media_tree.git
        git fetch media-tree master
        git checkout media-tree/master
        b4 shazam https://lore.kernel.org/r/20230608083127.545750-4-tomm.merciai@gmail.com
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/media/i2c/

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/202306090401.jEkSrYuJ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/media/i2c/alvium-csi2.c: In function 'alvium_get_dt_data':
>> drivers/media/i2c/alvium-csi2.c:3245:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
    3245 |         int ret = 0;
         |             ^~~


vim +/ret +3245 drivers/media/i2c/alvium-csi2.c

  3239	
  3240	static int alvium_get_dt_data(struct alvium_dev *alvium)
  3241	{
  3242		struct device *dev = &alvium->i2c_client->dev;
  3243		struct device_node *node = dev->of_node;
  3244		struct fwnode_handle *endpoint;
> 3245		int ret = 0;
  3246	
  3247		if (!node)
  3248			return -EINVAL;
  3249	
  3250		ret = fwnode_property_read_u32(dev_fwnode(dev),
  3251				  "alliedvision,lp2hs-delay-us",
  3252				  &alvium->lp2hs_delay);
  3253	
  3254		endpoint = fwnode_graph_get_next_endpoint(dev_fwnode(dev), NULL);
  3255		if (!endpoint) {
  3256			dev_err(dev, "endpoint node not found\n");
  3257			return -EINVAL;
  3258		}
  3259	
  3260		if (v4l2_fwnode_endpoint_alloc_parse(endpoint, &alvium->ep)) {
  3261			dev_err(dev, "could not parse endpoint\n");
  3262			return 0;
  3263		}
  3264	
  3265		if (alvium->ep.bus_type != V4L2_MBUS_CSI2_DPHY) {
  3266			dev_err(dev, "unsupported bus type\n");
  3267			return -EINVAL;
  3268		}
  3269	
  3270		if (!alvium->ep.nr_of_link_frequencies) {
  3271			dev_err(dev, "no link frequencies defined");
  3272			return -EINVAL;
  3273		}
  3274	
  3275		dev_info(dev, "freq: %llu\n",
  3276					    alvium->ep.link_frequencies[0]);
  3277		dev_info(dev, "lanes: %d\n",
  3278					    alvium->ep.bus.mipi_csi2.num_data_lanes);
  3279	
  3280		return 0;
  3281	}
  3282	

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

  reply	other threads:[~2023-06-08 21:08 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-08  8:31 [PATCH v5 0/3] media: i2c: Add support for alvium camera Tommaso Merciai
2023-06-08  8:31 ` [PATCH v5 1/3] dt-bindings: vendor-prefixes: Add prefix alliedvision Tommaso Merciai
2023-06-08  8:31 ` [PATCH v5 2/3] media: dt-bindings: alvium: add document YAML binding Tommaso Merciai
2023-06-09  8:35   ` Sakari Ailus
2023-06-09  9:41     ` Tommaso Merciai
2023-06-09  9:44       ` Sakari Ailus
2023-06-09 10:04         ` Tommaso Merciai
2023-06-08  8:31 ` [PATCH v5 3/3] media: i2c: Add support for alvium camera Tommaso Merciai
2023-06-08 21:08   ` kernel test robot [this message]
2023-06-09  9:17   ` Sakari Ailus
2023-06-09 13:09     ` Tommaso Merciai
2023-06-19 10:50       ` Sakari Ailus
2023-06-19 14:13         ` Tommaso Merciai
2023-06-19 14:24         ` Laurent Pinchart
2023-06-20  4:54           ` Tommaso Merciai
2023-06-20  9:43             ` Laurent Pinchart
2023-06-20 10:39               ` Tommaso Merciai
2023-06-20 10:53                 ` Laurent Pinchart
2023-06-20 11:09                   ` Tommaso Merciai

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=202306090401.jEkSrYuJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=benjamin.mugnier@foss.st.com \
    --cc=broonie@kernel.org \
    --cc=gerald.loacker@wolfvision.net \
    --cc=hverkuil@xs4all.nl \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=khalasa@piap.pl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linuxfancy@googlegroups.com \
    --cc=m.felsch@pengutronix.de \
    --cc=martin.hecht@avnet.eu \
    --cc=mchehab@kernel.org \
    --cc=michael.roeder@avnet.eu \
    --cc=mike.rudenko@gmail.com \
    --cc=nicholas@rothemail.net \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sakari.ailus@linux.intel.com \
    --cc=shawnx.tu@intel.com \
    --cc=tomm.merciai@gmail.com \
    /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