public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Heiko Schocher <hs@denx.de>, linux-mtd@lists.infradead.org
Cc: kbuild-all@lists.01.org, Heiko Schocher <hs@denx.de>,
	Fabio Estevam <festevam@denx.de>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] mtd: devices: add support for microchip 48l640 EERAM
Date: Sat, 29 May 2021 20:53:03 +0800	[thread overview]
Message-ID: <202105292054.81P1s2Tq-lkp@intel.com> (raw)
In-Reply-To: <20210529102744.1251220-3-hs@denx.de>

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

Hi Heiko,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mtd/mtd/next]
[also build test WARNING on mtd/mtd/fixes linux/master linus/master v5.13-rc3 next-20210528]
[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/Heiko-Schocher/mtd-devices-add-support-for-microchip-48l640-EERAM/20210529-182943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/eccf3abb95a75cb12c0506c6db8d129b69c71a9c
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Heiko-Schocher/mtd-devices-add-support-for-microchip-48l640-EERAM/20210529-182943
        git checkout eccf3abb95a75cb12c0506c6db8d129b69c71a9c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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/printk.h:409,
                    from include/linux/kernel.h:17,
                    from include/linux/delay.h:22,
                    from drivers/mtd/devices/mchp48l640.c:14:
   drivers/mtd/devices/mchp48l640.c: In function 'mchp48l640_read':
>> drivers/mtd/devices/mchp48l640.c:280:28: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
     280 |  dev_dbg(&flash->spi->dev, "read len: %ld from: %llx", len, from);
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:129:15: note: in definition of macro '__dynamic_func_call'
     129 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:161:2: note: in expansion of macro '_dynamic_func_call'
     161 |  _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:2: note: in expansion of macro 'dynamic_dev_dbg'
     123 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:23: note: in expansion of macro 'dev_fmt'
     123 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                       ^~~~~~~
   drivers/mtd/devices/mchp48l640.c:280:2: note: in expansion of macro 'dev_dbg'
     280 |  dev_dbg(&flash->spi->dev, "read len: %ld from: %llx", len, from);
         |  ^~~~~~~
   drivers/mtd/devices/mchp48l640.c:280:41: note: format string is defined here
     280 |  dev_dbg(&flash->spi->dev, "read len: %ld from: %llx", len, from);
         |                                       ~~^
         |                                         |
         |                                         long int
         |                                       %d


vim +280 drivers/mtd/devices/mchp48l640.c

   265	
   266	static int mchp48l640_read(struct mtd_info *mtd, loff_t from, size_t len,
   267				   size_t *retlen, unsigned char *buf)
   268	{
   269		struct mchp48l640_flash *flash = to_mchp48l640_flash(mtd);
   270		int ret;
   271		size_t wlen = 0;
   272		loff_t woff = from;
   273		size_t ws;
   274		size_t page_sz = flash->caps->page_size;
   275	
   276		/*
   277		 * we set PRO bit (page rollover), but if read length > page size
   278		 * does result in total chaos in result ...
   279		 */
 > 280		dev_dbg(&flash->spi->dev, "read len: %ld from: %llx", len, from);
   281		while (wlen < len) {
   282			ws = min((len - wlen), page_sz);
   283			ret = mchp48l640_read_page(mtd, woff, ws, retlen, &buf[wlen]);
   284			if (ret)
   285				return ret;
   286			wlen += ws;
   287			woff += ws;
   288		}
   289	
   290		return ret;
   291	};
   292	

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

[-- Attachment #3: Type: text/plain, Size: 144 bytes --]

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

      reply	other threads:[~2021-05-29 12:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 10:27 [PATCH v2 0/2] mtd: devices: add support for microchip 48l640 EERAM Heiko Schocher
2021-05-29 10:27 ` [PATCH v2 1/2] mtd: devices: add devicetree documentation for microchip 48l640 Heiko Schocher
2021-05-29 10:27 ` [PATCH v2 2/2] mtd: devices: add support for microchip 48l640 EERAM Heiko Schocher
2021-05-29 12:53   ` kernel test robot [this message]

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=202105292054.81P1s2Tq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@denx.de \
    --cc=hs@denx.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=vigneshr@ti.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