mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Matias Bjørling" <m@bjorling.me>
Cc: kbuild-all@01.org, hch@infradead.org, axboe@fb.com,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-nvme@lists.infradead.org, keith.busch@intel.com,
	jg@lightnvm.io, Stephen.Bates@pmcs.com,
	"Matias Bjørling" <m@bjorling.me>
Subject: Re: [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based gc
Date: Thu, 15 Oct 2015 09:09:51 +0800	[thread overview]
Message-ID: <201510150917.fYoN1atS%fengguang.wu@intel.com> (raw)
In-Reply-To: <1444850524-16827-4-git-send-email-m@bjorling.me>

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

  reply	other threads:[~2015-10-15  1:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14 19:21 [PATCH v10 0/5] Support for Open-Channel SSDs Matias Bjørling
2015-10-14 19:22 ` [PATCH v10 1/5] lightnvm: " Matias Bjørling
2015-10-14 20:52   ` [RFC PATCH] lightnvm: nvm_find_target_type() can be static kbuild test robot
2015-10-14 20:55     ` Matias Bjørling
2015-10-14 20:52   ` [PATCH v10 1/5] lightnvm: Support for Open-Channel SSDs kbuild test robot
2015-10-14 19:22 ` [PATCH v10 2/5] gennvm: Generic NVM manager Matias Bjørling
2015-10-14 23:03   ` kbuild test robot
2015-10-14 19:22 ` [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based gc Matias Bjørling
2015-10-15  1:09   ` kbuild test robot [this message]
2015-10-14 19:22 ` [PATCH v10 4/5] null_nvm: LightNVM test driver Matias Bjørling
2015-10-14 19:22 ` [PATCH v10 5/5] nvme: LightNVM support Matias Bjørling

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=201510150917.fYoN1atS%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=Stephen.Bates@pmcs.com \
    --cc=axboe@fb.com \
    --cc=hch@infradead.org \
    --cc=jg@lightnvm.io \
    --cc=kbuild-all@01.org \
    --cc=keith.busch@intel.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=m@bjorling.me \
    /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

all inboxes | Powered by JetHome®