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


Groups > linux.kernel > #1247282 > unrolled thread

Re: [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based gc

Started bykbuild test robot <lkp@intel.com>
First post2015-10-15 03:10 +0200
Last post2015-10-15 03:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based  gc kbuild test robot <lkp@intel.com> - 2015-10-15 03:10 +0200

#1247282 — Re: [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based gc

Fromkbuild test robot <lkp@intel.com>
Date2015-10-15 03:10 +0200
SubjectRe: [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based gc
Message-ID<qjFdo-7FB-5@gated-at.bofh.it>
Hi Matias,

[auto build test WARNING on block/for-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url:    https://github.com/0day-ci/linux/commits/Matias-Bj-rling/Support-for-Open-Channel-SSDs/20151014-224617
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/lightnvm/rrpc.c:917:27: sparse: cast to restricted __le64

vim +917 drivers/lightnvm/rrpc.c

   901	static int rrpc_l2p_update(u64 slba, u64 nlb, u64 *entries, void *private)
   902	{
   903		struct rrpc *rrpc = (struct rrpc *)private;
   904		struct nvm_dev *dev = rrpc->dev;
   905		struct rrpc_addr *addr = rrpc->trans_map + slba;
   906		struct rrpc_rev_addr *raddr = rrpc->rev_trans_map;
   907		sector_t max_pages = dev->total_pages * (dev->sec_size >> 9);
   908		u64 elba = slba + nlb;
   909		u64 i;
   910	
   911		if (unlikely(elba > dev->total_pages)) {
   912			pr_err("nvm: L2P data from device is out of bounds!\n");
   913			return -EINVAL;
   914		}
   915	
   916		for (i = 0; i < nlb; i++) {
 > 917			u64 pba = le64_to_cpu(entries[i]);
   918			/* LNVM treats address-spaces as silos, LBA and PBA are
   919			 * equally large and zero-indexed.
   920			 */
   921			if (unlikely(pba >= max_pages && pba != U64_MAX)) {
   922				pr_err("nvm: L2P data entry is out of bounds!\n");
   923				return -EINVAL;
   924			}
   925	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web