linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bogdan Togorean <bogdan.togorean@analog.com>,
	linux-media@vger.kernel.org
Cc: kbuild-all@lists.01.org,
	Bogdan Togorean <bogdan.togorean@analog.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	Jacopo Mondi <jacopo+renesas@jmondi.org>,
	Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
	Bingbu Cao <bingbu.cao@intel.com>, Shawn Tu <shawnx.tu@intel.com>
Subject: Re: [PATCH v2 1/2] media: i2c: Add driver for the Analog Devices ADDI9036 ToF front-end
Date: Sat, 3 Oct 2020 00:54:41 +0800	[thread overview]
Message-ID: <202010030024.AztwjcNb-lkp@intel.com> (raw)
In-Reply-To: <20201002133537.172379-1-bogdan.togorean@analog.com>

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

Hi Bogdan,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on linus/master v5.9-rc7 next-20201002]
[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]

url:    https://github.com/0day-ci/linux/commits/Bogdan-Togorean/media-i2c-Add-driver-for-the-Analog-Devices-ADDI9036-ToF-front-end/20201002-213657
base:   git://linuxtv.org/media_tree.git master
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/20f15c0bb888393b2a87ef884a36cb7b5c796698
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Bogdan-Togorean/media-i2c-Add-driver-for-the-Analog-Devices-ADDI9036-ToF-front-end/20201002-213657
        git checkout 20f15c0bb888393b2a87ef884a36cb7b5c796698
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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 >>):

   In file included from include/linux/build_bug.h:5,
                    from include/linux/bits.h:22,
                    from include/linux/gpio/consumer.h:5,
                    from drivers/media/i2c/addi9036.c:9:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   In file included from include/linux/printk.h:405,
                    from include/linux/kernel.h:15,
                    from include/asm-generic/bug.h:20,
                    from arch/m68k/include/asm/bug.h:32,
                    from include/linux/bug.h:5,
                    from include/linux/gpio/consumer.h:6,
                    from drivers/media/i2c/addi9036.c:9:
   drivers/media/i2c/addi9036.c: In function 'addi9036_s_stream':
>> drivers/media/i2c/addi9036.c:476:26: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'ssize_t' {aka 'int'} [-Wformat=]
     476 |   dev_dbg(addi9036->dev, "Writen %lu registers\n",
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
     125 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
     157 |  _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:115:2: note: in expansion of macro 'dynamic_dev_dbg'
     115 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~
   include/linux/dev_printk.h:115:23: note: in expansion of macro 'dev_fmt'
     115 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                       ^~~~~~~
   drivers/media/i2c/addi9036.c:476:3: note: in expansion of macro 'dev_dbg'
     476 |   dev_dbg(addi9036->dev, "Writen %lu registers\n",
         |   ^~~~~~~
   drivers/media/i2c/addi9036.c:476:36: note: format string is defined here
     476 |   dev_dbg(addi9036->dev, "Writen %lu registers\n",
         |                                  ~~^
         |                                    |
         |                                    long unsigned int
         |                                  %u

vim +476 drivers/media/i2c/addi9036.c

   453	
   454	static int addi9036_s_stream(struct v4l2_subdev *subdev, int enable)
   455	{
   456		struct addi9036 *addi9036 = to_addi9036(subdev);
   457		uint8_t mode = addi9036->curr_operating_mode;
   458		int ret = 0;
   459	
   460		dev_dbg(addi9036->dev, "s_stream: %d\n", enable);
   461	
   462		if (addi9036->streaming == enable)
   463			return 0;
   464	
   465		if (enable) {
   466			if (addi9036->mode_fw_blocks[mode].mode_regs == NULL) {
   467				dev_err(addi9036->dev, "Selected mode has no data\n");
   468				return -EINVAL;
   469			}
   470	
   471			dev_dbg(addi9036->dev, "Applying mode: %u\n", mode);
   472			ret = regmap_multi_reg_write(addi9036->regmap,
   473					addi9036->mode_fw_blocks[mode].mode_regs,
   474					addi9036->mode_fw_blocks[mode].regs_count);
   475	
 > 476			dev_dbg(addi9036->dev, "Writen %lu registers\n",
   477				addi9036->mode_fw_blocks[mode].regs_count);
   478		}
   479	
   480		addi9036->streaming = enable;
   481		return ret;
   482	}
   483	

---
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: 57832 bytes --]

  parent reply	other threads:[~2020-10-02 16:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-02 13:35 [PATCH v2 1/2] media: i2c: Add driver for the Analog Devices ADDI9036 ToF front-end Bogdan Togorean
2020-10-02 13:35 ` [PATCH v2 2/2] media: dt-bindings: media: i2c: Add bindings for ADDI9036 Bogdan Togorean
2020-10-06 20:47   ` Rob Herring
2020-10-08  6:23     ` Togorean, Bogdan
2020-10-08  6:35       ` Sakari Ailus
2020-10-08  6:42         ` Togorean, Bogdan
2020-10-02 16:54 ` kernel test robot [this message]
2020-10-07 11:18 ` [PATCH v2 1/2] media: i2c: Add driver for the Analog Devices ADDI9036 ToF front-end Sakari Ailus
2020-10-08  6:49   ` Togorean, Bogdan

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=202010030024.AztwjcNb-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bingbu.cao@intel.com \
    --cc=bogdan.togorean@analog.com \
    --cc=jacopo+renesas@jmondi.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=shawnx.tu@intel.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;
as well as URLs for NNTP newsgroup(s).