ndctl icon indicating copy to clipboard operation
ndctl copied to clipboard

compiling warning on ppc64le

Open yizhanglinux opened this issue 5 years ago • 0 comments

# make
  GEN      version.m4
make --no-print-directory all-recursive
  GEN      version.m4
Making all in .
  GEN      version.m4
  CC       ccan/str/str.o
  CC       ccan/str/debug.o
  CC       ccan/list/list.o
  AR       libccan.a
  CC       util/parse-options.o
  CC       util/usage.o
  CC       util/size.o
  CC       util/main.o
  CC       util/help.o
  CC       util/strbuf.o
  CC       util/wrapper.o
  CC       util/filter.o
  CC       util/bitmap.o
  CC       util/abspath.o
  CC       util/iomem.o
  AR       libutil.a
  GEN      rhel/ndctl.spec
  GEN      sles/ndctl.spec
Making all in daxctl/lib
  CC       ../../util/iomem.lo
  CC       ../../util/sysfs.lo
  CC       ../../util/log.lo
  CC       libdaxctl.lo
  CCLD     libdaxctl.la
  GEN      libdaxctl.pc
Making all in ndctl/lib
  CC       dimm.lo
  CC       inject.lo
  CC       nfit.lo
  CC       smart.lo
  CC       intel.lo
  CC       hpe1.lo
  CC       msft.lo
  CC       hyperv.lo
  CC       ars.lo
In file included from private.h:22,
                 from ars.c:16:
ars.c: In function ‘ndctl_cmd_ars_cap_get_range’:
ars.c:194:12: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘__u64’ {aka ‘long unsigned int’} [-Wformat=]
   dbg(ctx, "range: %llx - %llx\n", cap->address, cap->length);
            ^~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~
../../util/log.h:47:51: note: in definition of macro ‘log_dbg’
 #    define log_dbg(ctx, arg...) log_null(ctx, ## arg)
                                                   ^~~
ars.c:194:3: note: in expansion of macro ‘dbg’
   dbg(ctx, "range: %llx - %llx\n", cap->address, cap->length);
   ^~~
ars.c:194:12: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘__u64’ {aka ‘long unsigned int’} [-Wformat=]
   dbg(ctx, "range: %llx - %llx\n", cap->address, cap->length);
            ^~~~~~~~~~~~~~~~~~~~~~                ~~~~~~~~~~~
../../util/log.h:47:51: note: in definition of macro ‘log_dbg’
 #    define log_dbg(ctx, arg...) log_null(ctx, ## arg)
                                                   ^~~
ars.c:194:3: note: in expansion of macro ‘dbg’
   dbg(ctx, "range: %llx - %llx\n", cap->address, cap->length);
   ^~~
  CC       firmware.lo
  CC       libndctl.lo
  CCLD     libndctl.la
  GEN      libndctl.pc
Making all in ndctl
make --no-print-directory all-am
  CC       ndctl.o
  CC       bus.o
  CC       create-nfit.o
  CC       namespace.o
  CC       check.o
  CC       region.o
  CC       dimm.o
  CC       ../util/log.o
  CC       list.o
  CC       ../util/json.o
  CC       util/json-smart.o
  CC       util/json-firmware.o
  CC       inject-error.o
  CC       inject-smart.o
  CC       monitor.o
  CC       util/keys.o
  CC       load-keys.o
  CCLD     ndctl
Making all in daxctl
make --no-print-directory all-am
  CC       daxctl.o
  CC       list.o
  CC       migrate.o
  CC       device.o
  CC       ../util/json.o
  CCLD     daxctl
Making all in test
make[2]: Nothing to be done for 'all'.

yizhanglinux avatar Jul 08 '20 02:07 yizhanglinux