From: kbuild test robot <lkp@intel.com>
To: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Jens Axboe <axboe@kernel.dk>,
Jerome Marchand <jmarchan@redhat.com>,
linux-nvdimm@lists.01.org, Dave Chinner <david@fromorbit.com>,
linux-kernel@vger.kernel.org,
Matthew Wilcox <willy@infradead.org>,
Christoph Hellwig <hch@lst.de>, Minchan Kim <minchan@kernel.org>,
kbuild-all@01.org, seungho1.park@lge.com, Jan Kara <jack@suse.cz>,
Andrew Morton <akpm@linux-foundation.org>,
"karam . lee" <karam.lee@lge.com>,
Nitin Gupta <ngupta@vflare.org>
Subject: Re: [PATCH 1/3] btt: remove btt_rw_page()
Date: Fri, 4 Aug 2017 00:15:17 +0800 [thread overview]
Message-ID: <201708040050.bRY4Rqpb%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170728165604.10455-2-ross.zwisler@linux.intel.com>
Hi Ross,
[auto build test WARNING on linux-nvdimm/libnvdimm-for-next]
[also build test WARNING on v4.13-rc3]
[cannot apply to next-20170803]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Ross-Zwisler/btt-remove-btt_rw_page/20170729-165642
base: https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git libnvdimm-for-next
config: i386-randconfig-h0-08032208 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All warnings (new ones prefixed by >>):
In file included from drivers/nvdimm/btt.c:27:0:
drivers/nvdimm/btt.c: In function 'btt_make_request':
>> drivers/nvdimm/nd.h:407:2: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
generic_end_io_acct(bio_data_dir(bio), &disk->part0, start);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/nvdimm/btt.c:1202:16: note: 'start' was declared here
unsigned long start;
^~~~~
vim +/start +407 drivers/nvdimm/nd.h
cd03412a5 Dan Williams 2016-03-11 340
3d88002e4 Dan Williams 2015-05-31 341 struct nd_region *to_nd_region(struct device *dev);
3d88002e4 Dan Williams 2015-05-31 342 int nd_region_to_nstype(struct nd_region *nd_region);
3d88002e4 Dan Williams 2015-05-31 343 int nd_region_register_namespaces(struct nd_region *nd_region, int *err);
c12c48ce8 Dan Williams 2017-06-04 344 u64 nd_region_interleave_set_cookie(struct nd_region *nd_region,
c12c48ce8 Dan Williams 2017-06-04 345 struct nd_namespace_index *nsindex);
86ef58a4e Dan Williams 2017-02-28 346 u64 nd_region_interleave_set_altcookie(struct nd_region *nd_region);
3d88002e4 Dan Williams 2015-05-31 347 void nvdimm_bus_lock(struct device *dev);
3d88002e4 Dan Williams 2015-05-31 348 void nvdimm_bus_unlock(struct device *dev);
3d88002e4 Dan Williams 2015-05-31 349 bool is_nvdimm_bus_locked(struct device *dev);
581388209 Dan Williams 2015-06-23 350 int nvdimm_revalidate_disk(struct gendisk *disk);
bf9bccc14 Dan Williams 2015-06-17 351 void nvdimm_drvdata_release(struct kref *kref);
bf9bccc14 Dan Williams 2015-06-17 352 void put_ndd(struct nvdimm_drvdata *ndd);
4a826c83d Dan Williams 2015-06-09 353 int nd_label_reserve_dpa(struct nvdimm_drvdata *ndd);
4a826c83d Dan Williams 2015-06-09 354 void nvdimm_free_dpa(struct nvdimm_drvdata *ndd, struct resource *res);
4a826c83d Dan Williams 2015-06-09 355 struct resource *nvdimm_allocate_dpa(struct nvdimm_drvdata *ndd,
4a826c83d Dan Williams 2015-06-09 356 struct nd_label_id *label_id, resource_size_t start,
4a826c83d Dan Williams 2015-06-09 357 resource_size_t n);
8c2f7e865 Dan Williams 2015-06-25 358 resource_size_t nvdimm_namespace_capacity(struct nd_namespace_common *ndns);
8c2f7e865 Dan Williams 2015-06-25 359 struct nd_namespace_common *nvdimm_namespace_common_probe(struct device *dev);
5212e11fd Vishal Verma 2015-06-25 360 int nvdimm_namespace_attach_btt(struct nd_namespace_common *ndns);
298f2bc5d Dan Williams 2016-03-15 361 int nvdimm_namespace_detach_btt(struct nd_btt *nd_btt);
5212e11fd Vishal Verma 2015-06-25 362 const char *nvdimm_namespace_disk_name(struct nd_namespace_common *ndns,
5212e11fd Vishal Verma 2015-06-25 363 char *name);
f979b13c3 Dan Williams 2017-06-04 364 unsigned int pmem_sector_size(struct nd_namespace_common *ndns);
a39018029 Dan Williams 2016-04-07 365 void nvdimm_badblocks_populate(struct nd_region *nd_region,
a39018029 Dan Williams 2016-04-07 366 struct badblocks *bb, const struct resource *res);
200c79da8 Dan Williams 2016-03-22 367 #if IS_ENABLED(CONFIG_ND_CLAIM)
ac515c084 Dan Williams 2016-03-22 368 struct vmem_altmap *nvdimm_setup_pfn(struct nd_pfn *nd_pfn,
ac515c084 Dan Williams 2016-03-22 369 struct resource *res, struct vmem_altmap *altmap);
200c79da8 Dan Williams 2016-03-22 370 int devm_nsio_enable(struct device *dev, struct nd_namespace_io *nsio);
200c79da8 Dan Williams 2016-03-22 371 void devm_nsio_disable(struct device *dev, struct nd_namespace_io *nsio);
200c79da8 Dan Williams 2016-03-22 372 #else
ac515c084 Dan Williams 2016-03-22 373 static inline struct vmem_altmap *nvdimm_setup_pfn(struct nd_pfn *nd_pfn,
ac515c084 Dan Williams 2016-03-22 374 struct resource *res, struct vmem_altmap *altmap)
ac515c084 Dan Williams 2016-03-22 375 {
ac515c084 Dan Williams 2016-03-22 376 return ERR_PTR(-ENXIO);
ac515c084 Dan Williams 2016-03-22 377 }
200c79da8 Dan Williams 2016-03-22 378 static inline int devm_nsio_enable(struct device *dev,
200c79da8 Dan Williams 2016-03-22 379 struct nd_namespace_io *nsio)
200c79da8 Dan Williams 2016-03-22 380 {
200c79da8 Dan Williams 2016-03-22 381 return -ENXIO;
200c79da8 Dan Williams 2016-03-22 382 }
200c79da8 Dan Williams 2016-03-22 383 static inline void devm_nsio_disable(struct device *dev,
200c79da8 Dan Williams 2016-03-22 384 struct nd_namespace_io *nsio)
200c79da8 Dan Williams 2016-03-22 385 {
200c79da8 Dan Williams 2016-03-22 386 }
200c79da8 Dan Williams 2016-03-22 387 #endif
047fc8a1f Ross Zwisler 2015-06-25 388 int nd_blk_region_init(struct nd_region *nd_region);
e5ae3b252 Dan Williams 2016-06-07 389 int nd_region_activate(struct nd_region *nd_region);
f0dc089ce Dan Williams 2015-05-16 390 void __nd_iostat_start(struct bio *bio, unsigned long *start);
f0dc089ce Dan Williams 2015-05-16 391 static inline bool nd_iostat_start(struct bio *bio, unsigned long *start)
f0dc089ce Dan Williams 2015-05-16 392 {
f0dc089ce Dan Williams 2015-05-16 393 struct gendisk *disk = bio->bi_bdev->bd_disk;
f0dc089ce Dan Williams 2015-05-16 394
f0dc089ce Dan Williams 2015-05-16 395 if (!blk_queue_io_stat(disk->queue))
f0dc089ce Dan Williams 2015-05-16 396 return false;
f0dc089ce Dan Williams 2015-05-16 397
8d7c22ac0 Toshi Kani 2016-10-19 398 *start = jiffies;
8d7c22ac0 Toshi Kani 2016-10-19 399 generic_start_io_acct(bio_data_dir(bio),
8d7c22ac0 Toshi Kani 2016-10-19 400 bio_sectors(bio), &disk->part0);
f0dc089ce Dan Williams 2015-05-16 401 return true;
f0dc089ce Dan Williams 2015-05-16 402 }
8d7c22ac0 Toshi Kani 2016-10-19 403 static inline void nd_iostat_end(struct bio *bio, unsigned long start)
8d7c22ac0 Toshi Kani 2016-10-19 404 {
8d7c22ac0 Toshi Kani 2016-10-19 405 struct gendisk *disk = bio->bi_bdev->bd_disk;
8d7c22ac0 Toshi Kani 2016-10-19 406
8d7c22ac0 Toshi Kani 2016-10-19 @407 generic_end_io_acct(bio_data_dir(bio), &disk->part0, start);
:::::: The code at line 407 was first introduced by commit
:::::: 8d7c22ac0c036978a072b7e13c607b5402c474e0 libnvdimm: use generic iostat interfaces
:::::: TO: Toshi Kani <toshi.kani@hpe.com>
:::::: CC: Dan Williams <dan.j.williams@intel.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
next prev parent reply other threads:[~2017-08-03 16:13 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 16:56 [PATCH 0/3] remove rw_page() from brd, pmem and btt Ross Zwisler
2017-07-28 16:56 ` [PATCH 1/3] btt: remove btt_rw_page() Ross Zwisler
2017-08-03 16:15 ` kbuild test robot [this message]
2017-07-28 16:56 ` [PATCH 2/3] pmem: remove pmem_rw_page() Ross Zwisler
2017-07-28 16:56 ` [PATCH 3/3] brd: remove brd_rw_page() Ross Zwisler
2017-07-28 17:31 ` [PATCH 0/3] remove rw_page() from brd, pmem and btt Matthew Wilcox
2017-07-28 21:21 ` Andrew Morton
2017-07-30 22:16 ` Minchan Kim
2017-07-30 22:38 ` Minchan Kim
2017-07-31 7:17 ` Christoph Hellwig
2017-07-31 7:36 ` Minchan Kim
2017-07-31 7:42 ` Christoph Hellwig
2017-07-31 7:44 ` Christoph Hellwig
2017-08-01 6:23 ` Minchan Kim
2017-08-02 22:13 ` Ross Zwisler
2017-08-03 0:13 ` Minchan Kim
2017-08-03 0:34 ` Dan Williams
2017-08-03 8:05 ` Christoph Hellwig
2017-08-04 0:57 ` Minchan Kim
2017-08-03 21:13 ` Ross Zwisler
2017-08-03 21:17 ` Jens Axboe
2017-08-04 3:54 ` Minchan Kim
2017-08-04 8:17 ` Minchan Kim
2017-08-04 18:01 ` Dan Williams
2017-08-04 18:21 ` Ross Zwisler
2017-08-04 18:24 ` Dan Williams
2017-08-07 8:23 ` Minchan Kim
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=201708040050.bRY4Rqpb%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=axboe@kernel.dk \
--cc=david@fromorbit.com \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=jmarchan@redhat.com \
--cc=karam.lee@lge.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvdimm@lists.01.org \
--cc=minchan@kernel.org \
--cc=ngupta@vflare.org \
--cc=ross.zwisler@linux.intel.com \
--cc=seungho1.park@lge.com \
--cc=willy@infradead.org \
/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