lkml.org 
[lkml]   [2016]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 17/17] drivers:mtd:ubi: Kconfig Makefile
Hi Bean,

[auto build test WARNING on v4.5-rc2]
[also build test WARNING on next-20160201]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Bean-Huo/Add-a-bakvol-module-in-UBI-layer-for-MLC-paired-page-power-loss-issue/20160202-104450
config: sparc64-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sparc64

All warnings (new ones prefixed by >>):

drivers/mtd/ubi/io.c: In function 'ubi_io_write':
>> drivers/mtd/ubi/io.c:321:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]
ubi_err(ubi, "Written %d bytes", retlen);
^

vim +321 drivers/mtd/ubi/io.c

d6f52420 Bean Huo 2016-02-02 305 if (len_temp/ubi->min_io_size)
d6f52420 Bean Huo 2016-02-02 306 writelen = ubi->min_io_size;
d6f52420 Bean Huo 2016-02-02 307 else
d6f52420 Bean Huo 2016-02-02 308 writelen %= ubi->min_io_size;
d6f52420 Bean Huo 2016-02-02 309
d6f52420 Bean Huo 2016-02-02 310 if (is_backup_need(ubi, addr_temp)) {
d6f52420 Bean Huo 2016-02-02 311 err = ubi_duplicate_data_to_bakvol(ubi,
d6f52420 Bean Huo 2016-02-02 312 addr_temp, writelen, &retlen, buf_temp);
d6f52420 Bean Huo 2016-02-02 313 } else
d6f52420 Bean Huo 2016-02-02 314 err = mtd_write(ubi->mtd, addr_temp, writelen,
d6f52420 Bean Huo 2016-02-02 315 &retlen, buf_temp);
d6f52420 Bean Huo 2016-02-02 316
801c135c Artem B. Bityutskiy 2006-06-27 317 if (err) {
d6f52420 Bean Huo 2016-02-02 318 ubi_err(ubi, "Writing %d byptes to PEB %d:%d",
d6f52420 Bean Huo 2016-02-02 319 writelen, pnum, offset);
d6f52420 Bean Huo 2016-02-02 320 ubi_err(ubi, "Error %d", err);
d6f52420 Bean Huo 2016-02-02 @321 ubi_err(ubi, "Written %d bytes", retlen);
d6f52420 Bean Huo 2016-02-02 322 dump_stack();
d6f52420 Bean Huo 2016-02-02 323 ubi_dump_flash(ubi, pnum, offset, writelen);
d6f52420 Bean Huo 2016-02-02 324 } else
d6f52420 Bean Huo 2016-02-02 325 ubi_assert(retlen == writelen);
d6f52420 Bean Huo 2016-02-02 326 }
d6f52420 Bean Huo 2016-02-02 327 } else
d6f52420 Bean Huo 2016-02-02 328 #endif
d6f52420 Bean Huo 2016-02-02 329 {

:::::: The code at line 321 was first introduced by commit
:::::: d6f5242053d5a5125b0c80134fb017a3ce027d55 drivers:mtd:ubi:add backup operation in ubi_io_write

:::::: TO: Bean Huo <beanhuo@micron.com>
:::::: CC: 0day robot <fengguang.wu@intel.com>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2016-02-02 04:41    [W:0.150 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site