Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1323762

Re: [PATCH v2 14/17] drivers:mtd:ubi:add backup operation in ubi_io_write

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From kbuild test robot <lkp@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 14/17] drivers:mtd:ubi:add backup operation in ubi_io_write
Date Tue, 02 Feb 2016 04:30:01 +0100
Message-ID <qXzPb-4CF-5@gated-at.bofh.it> (permalink)
References <qXz2O-3Wf-17@gated-at.bofh.it>
X-Original-To Bean Huo <jackyard88@gmail.com>
X-Extloop1 1
X-Ironport-Av E=Sophos;i="5.22,383,1449561600"; d="gz'50?scan'50,208,50";a="874675417"
MIME-Version 1.0
Content-Type multipart/mixed; boundary="WIyZ46R2i8wDzkSu"
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
X-Sa-Exim-Connect-IP <locally generated>
X-Sa-Exim-Mail-From fengguang.wu@intel.com
X-Sa-Exim-Scanned No (on bee); SAEximRunCond expanded to false
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 439
Organization linux.* mail to news gateway
X-Original-Cc kbuild-all@01.org, richard@nod.at, dedekind1@gmail.com, adrian.hunter@intel.com, computersforpeace@gmail.com, boris.brezillon@free-electrons.com, beanhuo@micron.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, zszubbocsev@micron.com, peterpandong@micron.com
X-Original-Date Tue, 2 Feb 2016 11:22:56 +0800
X-Original-Message-ID <201602021112.qa7oOCF2%fengguang.wu@intel.com>
X-Original-References <1454380252-16170-15-git-send-email-jackyard88@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1323762

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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: x86_64-randconfig-x012-201605 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   drivers/mtd/ubi/io.c: In function 'ubi_io_write':
>> drivers/mtd/ubi/io.c:242:6: warning: unused variable 'skip' [-Wunused-variable]
     int skip;
         ^

vim +/skip +242 drivers/mtd/ubi/io.c

   226	 *
   227	 * This function writes @len bytes of data from buffer @buf to offset @offset
   228	 * of physical eraseblock @pnum. If all the data were successfully written,
   229	 * zero is returned. If an error occurred, this function returns a negative
   230	 * error code. If %-EIO is returned, the physical eraseblock most probably went
   231	 * bad.
   232	 *
   233	 * Note, in case of an error, it is possible that something was still written
   234	 * to the flash media, but may be some garbage.
   235	 */
   236	int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset,
   237			 int len, int safeguard)
   238	{
   239		int err;
   240		size_t retlen;
   241		loff_t addr;
 > 242		int skip;
   243	
   244		dbg_io("write %d bytes to PEB %d:%d", len, pnum, offset);
   245	
   246		ubi_assert(pnum >= 0 && pnum < ubi->peb_count);
   247		ubi_assert(offset >= 0 && offset + len <= ubi->peb_size);
   248		ubi_assert(offset % ubi->hdrs_min_io_size == 0);
   249		ubi_assert(len > 0 && len % ubi->hdrs_min_io_size == 0);
   250	

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

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v2 14/17] drivers:mtd:ubi:add backup operation in ubi_io_write Bean Huo <jackyard88@gmail.com> - 2016-02-02 03:40 +0100
  Re: [PATCH v2 14/17] drivers:mtd:ubi:add backup operation in  ubi_io_write kbuild test robot <lkp@intel.com> - 2016-02-02 04:30 +0100

csiph-web