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 2/5] gennvm: Generic NVM manager
Date: Thu, 15 Oct 2015 07:03:45 +0800	[thread overview]
Message-ID: <201510150725.Mgz2ut75%fengguang.wu@intel.com> (raw)
In-Reply-To: <1444850524-16827-3-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 >>)


vim +109 drivers/lightnvm/gennvm.c

    93	{
    94		struct nvm_dev *dev = private;
    95		struct gen_nvm *gn = dev->mp;
    96		sector_t max_pages = dev->total_pages * (dev->sec_size >> 9);
    97		u64 elba = slba + nlb;
    98		struct gen_lun *lun;
    99		struct nvm_block *blk;
   100		u64 i;
   101		int lun_id;
   102	
   103		if (unlikely(elba > dev->total_pages)) {
   104			pr_err("gen_nvm: L2P data from device is out of bounds!\n");
   105			return -EINVAL;
   106		}
   107	
   108		for (i = 0; i < nlb; i++) {
 > 109			u64 pba = le64_to_cpu(entries[i]);
   110	
   111			if (unlikely(pba >= max_pages && pba != U64_MAX)) {
   112				pr_err("gen_nvm: L2P data entry is out of bounds!\n");
   113				return -EINVAL;
   114			}
   115	
   116			/* Address zero is a special one. The first page on a disk is
   117			 * protected. It often holds internal device boot

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

  reply	other threads:[~2015-10-14 23:03 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 [this message]
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
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=201510150725.Mgz2ut75%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®