]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
Subject: compilation issue on ppc.
authorWen Xiong <wenxiong@linux.vnet.ibm.com>
Mon, 14 Dec 2015 19:12:53 +0000 (13:12 -0600)
committerKeith Busch <keith.busch@intel.com>
Mon, 14 Dec 2015 19:50:55 +0000 (12:50 -0700)
commited3848130bdcdc62353707116a72a12a2cf64034
tree0288de801a3ba09c148ea2b7daced9e13bb0fd60
parentc4c24a0844a7d57a668f7baac08387506409842f
Subject: compilation issue on ppc.

We saw the following compilation issue on ppc.

[root@everest-lp2 nvme-cli]# make
cc -I ./src -D_GNU_SOURCE -std=gnu99 -O2 -g -Wall -Werror
-DNVME_VERSION='"0.2.15.gc4c2"' nvme.c  -o nvme argconfig.         o
suffix.o common.o
nvme.c: In function âmânvme.c:2227:2: error: passing argument 2 of
âgconfig_parse_comma_sep_array_longârom incompatible pointer type [-
Werror]
  ns = argconfig_parse_comma_sep_array_long(cfg.slbas, slbas, 256);
  ^
In file included from nvme.c:52:0:
src/argconfig.h:106:10: note: expected âng long unsigned int *âut
argument is of type âu64 *âunsigned
argconfig_parse_comma_sep_array_long(char *string, unsigned long long
*ret,
          ^
cc1: all warnings being treated as errors
make: *** [nvme] Error 1

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
nvme.c