lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 2 Feb 2016 11:22:59 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Bean Huo <jackyard88@...il.com>
Cc:	kbuild-all@...org, richard@....at, dedekind1@...il.com,
	adrian.hunter@...el.com, computersforpeace@...il.com,
	boris.brezillon@...e-electrons.com, beanhuo@...ron.com,
	linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org,
	zszubbocsev@...ron.com, peterpandong@...ron.com
Subject: Re: [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@...ron.com>
:::::: CC: 0day robot <fengguang.wu@...el.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/octet-stream" (45115 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ