Spdk/test/unit/lib/bdev
yidong0635 9714818d04 test/bdev_ut: fix warning about unitialize value.
gcc version 10.1.1 20200619 releases/gcc-10.1.0-223-gf8e16e23d0
(Clear Linux OS for Intel Architecture)

Issue reports:

  CC test/unit/lib/nvme/nvme_ns_cmd.c/nvme_ns_cmd_ut.o
bdev_ut.c: In function ‘bdev_io_alignment_with_boundary’:
bdev_ut.c:2146:2: error: ‘buf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2146 |  free(buf);
      |  ^~~~~~~~~
bdev_ut.c: In function ‘bdev_io_alignment’:
bdev_ut.c:2008:2: error: ‘buf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2008 |  free(buf);
      |  ^~~~~~~~~

Signed-off-by: yidong0635 <dongx.yi@intel.com>
Change-Id: I6d1bbf74b230b7bc51646454ddba0db4792f5900
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4693
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2020-10-16 08:15:57 +00:00
..
bdev_ocssd.c bdev/nvme: add a function for specifying a multipath trid. 2020-08-07 15:06:01 +00:00
bdev_zone.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
bdev.c test/bdev_ut: fix warning about unitialize value. 2020-10-16 08:15:57 +00:00
compress.c bdev/compress: Pass bdev name instead of bdev pointer to _prepare_for_load_init() 2020-10-16 08:14:34 +00:00
crypto.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
gpt module/bdev_gpt: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00
mt lib/bdev: Use not SPDK thread count but core count for mempool cache size 2020-06-08 09:33:50 +00:00
part.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
pmem module/bdev_pmem: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00
raid module/raid_bdev: remove spdk prefix from static functions. 2020-05-15 07:58:03 +00:00
scsi_nvme.c ut: make use of CUnit macro to reduce duplications 2020-04-02 14:50:12 +00:00
vbdev_lvol.c lvol: remove lvol_task structure 2020-04-24 15:45:21 +00:00
vbdev_zone_block.c lib/thread: Wait until thread_is_exited() is true by thread_poll() after thread_exit() 2020-04-08 06:43:05 +00:00
Makefile ut/raid: put bdev_raid.c into 'raid' subdirectory 2020-02-20 14:40:19 +00:00