Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1247282
| Path | csiph.com!au2pb.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | kbuild test robot <lkp@intel.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v10 3/5] rrpc: Round-robin sector target with cost-based gc |
| Date | Thu, 15 Oct 2015 03:10:02 +0200 |
| Message-ID | <qjFdo-7FB-5@gated-at.bofh.it> (permalink) |
| References | <qjzUm-83J-1@gated-at.bofh.it> |
| X-Original-To | Matias Bjørling <m@bjorling.me> |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.17,683,1437462000"; d="scan'208";a="664588679" |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| 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 | 51 |
| Organization | linux.* mail to news gateway |
| X-Original-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> |
| X-Original-Date | Thu, 15 Oct 2015 09:09:51 +0800 |
| X-Original-Message-ID | <201510150917.fYoN1atS%fengguang.wu@intel.com> |
| X-Original-References | <1444850524-16827-4-git-send-email-m@bjorling.me> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1247282 |
Show key headers only | View raw
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/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
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
csiph-web