All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v5 2/2] media: i2c: Add imx334 camera sensor driver
Date: Tue, 02 Feb 2021 20:16:39 +0800	[thread overview]
Message-ID: <202102022002.sEQf7mcm-lkp@intel.com> (raw)
In-Reply-To: <20210201172445.164-3-martinax.krasteva@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 4099 bytes --]

Hi Martina,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on fd821bf0ed9a7db09d2e007df697f4d9ecfda99a]

url:    https://github.com/0day-ci/linux/commits/Martina-Krasteva/IMX334-Camera-Sensor-Driver/20210202-094552
base:   fd821bf0ed9a7db09d2e007df697f4d9ecfda99a
config: nds32-randconfig-r031-20210202 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/57bf371289c42fe7cc648f2de6cd6680df675f09
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Martina-Krasteva/IMX334-Camera-Sensor-Driver/20210202-094552
        git checkout 57bf371289c42fe7cc648f2de6cd6680df675f09
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/media/i2c/imx334.c:751:5: warning: no previous prototype for 'imx334_parse_hw_config' [-Wmissing-prototypes]
     751 | int imx334_parse_hw_config(struct imx334 *imx334)
         |     ^~~~~~~~~~~~~~~~~~~~~~


vim +/imx334_parse_hw_config +751 drivers/media/i2c/imx334.c

   744	
   745	/**
   746	 * imx334_parse_hw_config() - Parse HW configuration and check if supported
   747	 * @imx334: pointer to imx334 device
   748	 *
   749	 * Return: 0 if successful, error code otherwise.
   750	 */
 > 751	int imx334_parse_hw_config(struct imx334 *imx334)
   752	{
   753		struct fwnode_handle *fwnode = dev_fwnode(imx334->dev);
   754		struct v4l2_fwnode_endpoint bus_cfg = {
   755			.bus_type = V4L2_MBUS_CSI2_DPHY
   756		};
   757		struct fwnode_handle *ep;
   758		unsigned long rate;
   759		int ret;
   760		int i;
   761	
   762		if (!fwnode)
   763			return -ENXIO;
   764	
   765		/* Request optional reset pin */
   766		imx334->reset_gpio = devm_gpiod_get_optional(imx334->dev, "reset",
   767							     GPIOD_OUT_LOW);
   768		if (IS_ERR(imx334->reset_gpio)) {
   769			dev_err(imx334->dev, "failed to get reset gpio %d", ret);
   770			return PTR_ERR(imx334->reset_gpio);
   771		}
   772	
   773		/* Get sensor input clock */
   774		imx334->inclk = devm_clk_get(imx334->dev, "inclk");
   775		if (IS_ERR(imx334->inclk)) {
   776			dev_err(imx334->dev, "could not get inclk");
   777			return PTR_ERR(imx334->inclk);
   778		}
   779	
   780		rate = clk_get_rate(imx334->inclk);
   781		if (rate != IMX334_INCLK_RATE) {
   782			dev_err(imx334->dev, "inclk frequency mismatch");
   783			return -EINVAL;
   784		}
   785	
   786		ep = fwnode_graph_get_next_endpoint(fwnode, NULL);
   787		if (!ep)
   788			return -ENXIO;
   789	
   790		ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg);
   791		fwnode_handle_put(ep);
   792		if (ret)
   793			return ret;
   794	
   795		if (bus_cfg.bus.mipi_csi2.num_data_lanes != IMX334_NUM_DATA_LANES) {
   796			dev_err(imx334->dev,
   797				"number of CSI2 data lanes %d is not supported",
   798				bus_cfg.bus.mipi_csi2.num_data_lanes);
   799			ret = -EINVAL;
   800			goto done_endpoint_free;
   801		}
   802	
   803		if (!bus_cfg.nr_of_link_frequencies) {
   804			dev_err(imx334->dev, "no link frequencies defined");
   805			ret = -EINVAL;
   806			goto done_endpoint_free;
   807		}
   808	
   809		for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++)
   810			if (bus_cfg.link_frequencies[i] == IMX334_LINK_FREQ)
   811				goto done_endpoint_free;
   812	
   813		ret = -EINVAL;
   814	
   815	done_endpoint_free:
   816		v4l2_fwnode_endpoint_free(&bus_cfg);
   817	
   818		return ret;
   819	}
   820	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19774 bytes --]

  reply	other threads:[~2021-02-02 12:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 17:24 [PATCH v5 0/2] IMX334 Camera Sensor Driver Martina Krasteva
2021-02-01 17:24 ` [PATCH v5 1/2] dt-bindings: media: Add bindings for imx334 Martina Krasteva
2021-02-02 18:57   ` Sakari Ailus
2021-02-01 17:24 ` [PATCH v5 2/2] media: i2c: Add imx334 camera sensor driver Martina Krasteva
2021-02-02 12:16   ` kernel test robot [this message]
2021-02-02 22:09   ` kernel test robot

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=202102022002.sEQf7mcm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.