>>> ndctl: Building community/ndctl 80-r0 (using abuild 3.14.1-r1) started Wed, 30 Oct 2024 04:35:31 +0000 >>> ndctl: Validating /home/buildozer/aports/community/ndctl/APKBUILD... >>> ndctl: Analyzing dependencies... >>> ndctl: Installing for build: build-base kmod asciidoc asciidoctor bash-completion-dev eudev-dev iniparser-dev json-c-dev keyutils-dev kmod-dev libtraceevent-dev libtracefs-dev linux-headers meson util-linux-dev (1/86) Installing xz-libs (5.6.3-r0) (2/86) Installing kmod (33-r2) (3/86) Installing libbz2 (1.0.8-r6) (4/86) Installing libffi (3.4.6-r0) (5/86) Installing gdbm (1.24-r0) (6/86) Installing mpdecimal (4.0.0-r0) (7/86) Installing libpanelw (6.5_p20241006-r1) (8/86) Installing sqlite-libs (3.47.0-r0) (9/86) Installing python3 (3.12.7-r1) (10/86) Installing python3-pycache-pyc0 (3.12.7-r1) (11/86) Installing pyc (3.12.7-r1) (12/86) Installing libxml2 (2.13.4-r2) (13/86) Installing libxml2-utils (2.13.4-r2) (14/86) Installing libgpg-error (1.50-r0) (15/86) Installing libgcrypt (1.10.3-r1) (16/86) Installing libxslt (1.1.42-r1) (17/86) Installing docbook-xml (4.5-r9) Executing docbook-xml-4.5-r9.post-install (18/86) Installing docbook-xsl (1.79.2-r9) Executing docbook-xsl-1.79.2-r9.post-install (19/86) Installing asciidoc-pyc (10.2.1-r0) (20/86) Installing python3-pyc (3.12.7-r1) (21/86) Installing asciidoc (10.2.1-r0) (22/86) Installing ca-certificates (20240705-r0) (23/86) Installing yaml (0.2.5-r2) (24/86) Installing ruby-libs (3.3.3-r2) (25/86) Installing libucontext (1.3.2-r0) (26/86) Installing ruby (3.3.3-r2) (27/86) Installing asciidoctor (2.0.23-r0) (28/86) Installing bash-completion-dev (2.14.0-r0) (29/86) Installing eudev-libs (3.2.14-r5) (30/86) Installing eudev-dev (3.2.14-r5) (31/86) Installing iniparser (4.2.1-r0) (32/86) Installing iniparser-dev (4.2.1-r0) (33/86) Installing json-c (0.18-r0) (34/86) Installing json-c-dev (0.18-r0) (35/86) Installing keyutils-libs (1.6.3-r4) (36/86) Installing keyutils-dev (1.6.3-r4) (37/86) Installing kmod-libs (33-r2) (38/86) Installing kmod-dev (33-r2) (39/86) Installing linux-headers (6.6-r1) (40/86) Installing libtraceevent (1.8.4-r0) (41/86) Installing libtraceevent-dev (1.8.4-r0) (42/86) Installing libtracefs (1.8.1-r1) (43/86) Installing libtracefs-dev (1.8.1-r1) (44/86) Installing samurai (1.2-r6) (45/86) Installing meson (1.6.0-r0) (46/86) Installing meson-pyc (1.6.0-r0) (47/86) Installing libeconf (0.6.3-r0) (48/86) Installing libblkid (2.40.2-r3) (49/86) Installing libuuid (2.40.2-r3) (50/86) Installing libfdisk (2.40.2-r3) (51/86) Installing libmount (2.40.2-r3) (52/86) Installing libsmartcols (2.40.2-r3) (53/86) Installing sqlite (3.47.0-r0) (54/86) Installing sqlite-dev (3.47.0-r0) (55/86) Installing util-linux (2.40.2-r3) (56/86) Installing dmesg (2.40.2-r3) (57/86) Installing setarch (2.40.2-r3) (58/86) Installing skalibs-libs (2.14.3.0-r0) (59/86) Installing util-linux-misc (2.40.2-r3) (60/86) Installing utmps-libs (0.1.2.3-r2) (61/86) Installing linux-pam (1.6.1-r1) (62/86) Installing runuser (2.40.2-r3) (63/86) Installing mount (2.40.2-r3) (64/86) Installing losetup (2.40.2-r3) (65/86) Installing hexdump (2.40.2-r3) (66/86) Installing uuidgen (2.40.2-r3) (67/86) Installing blkid (2.40.2-r3) (68/86) Installing sfdisk (2.40.2-r3) (69/86) Installing mcookie (2.40.2-r3) (70/86) Installing agetty (2.40.2-r3) (71/86) Installing wipefs (2.40.2-r3) (72/86) Installing cfdisk (2.40.2-r3) (73/86) Installing umount (2.40.2-r3) (74/86) Installing flock (2.40.2-r3) (75/86) Installing lsblk (2.40.2-r3) (76/86) Installing libcap-ng (0.8.5-r0) (77/86) Installing setpriv (2.40.2-r3) (78/86) Installing lscpu (2.40.2-r3) (79/86) Installing logger (2.40.2-r3) (80/86) Installing partx (2.40.2-r3) (81/86) Installing fstrim (2.40.2-r3) (82/86) Installing findmnt (2.40.2-r3) (83/86) Installing util-linux-dev (2.40.2-r3) (84/86) Installing .makedepends-ndctl (20241030.043531) (85/86) Installing util-linux-openrc (2.40.2-r3) (86/86) Installing agetty-openrc (0.55.1-r2) Executing busybox-1.37.0-r3.trigger Executing ca-certificates-20240705-r0.trigger OK: 355 MiB in 187 packages >>> ndctl: Cleaning up srcdir >>> ndctl: Cleaning up pkgdir >>> ndctl: Cleaning up tmpdir >>> ndctl: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/ndctl-80.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) wget: server returned error: HTTP/1.1 404 Not Found >>> ndctl: Fetching ndctl-80.tar.gz::https://github.com/pmem/ndctl/archive/v80.tar.gz Connecting to github.com (140.82.121.3:443) Connecting to codeload.github.com (140.82.121.10:443) saving to '/var/cache/distfiles/v3.21/ndctl-80.tar.gz.part' ndctl-80.tar.gz.part 100% |********************************| 426k 0:00:00 ETA '/var/cache/distfiles/v3.21/ndctl-80.tar.gz.part' saved >>> ndctl: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/ndctl-80.tar.gz >>> ndctl: Checking sha512sums... ndctl-80.tar.gz: OK basename.patch: OK no-bash.patch: OK tracefs-include.patch: OK >>> ndctl: Unpacking /var/cache/distfiles/v3.21/ndctl-80.tar.gz... >>> ndctl: basename.patch patching file daxctl/device.c >>> ndctl: no-bash.patch patching file clean_config.sh >>> ndctl: tracefs-include.patch patching file cxl/json.c The Meson build system Version: 1.6.0 Source dir: /home/buildozer/aports/community/ndctl/src/ndctl-80 Build dir: /home/buildozer/aports/community/ndctl/src/ndctl-80/output Build type: native build Project name: ndctl Project version: 80 C compiler for the host machine: gcc (gcc 14.2.0 "gcc (Alpine 14.2.0) 14.2.0") C linker for the host machine: gcc ld.bfd 2.43.1 Host machine cpu family: arm Host machine cpu: armv8l Compiler for C supports arguments -Wchar-subscripts: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Wnested-externs : NO Compiler for C supports arguments -Wshadow: YES Compiler for C supports arguments -Wsign-compare: YES Compiler for C supports arguments -Wstrict-prototypes: YES Compiler for C supports arguments -Wtype-limits: YES Compiler for C supports arguments -Wmaybe-uninitialized: YES Compiler for C supports arguments -Wdeclaration-after-statement: YES Compiler for C supports arguments -Wunused-result: YES Compiler for C supports arguments -D_FORTIFY_SOURCE=2: YES Program git found: YES (/usr/bin/git) Program env found: YES (/usr/bin/env) Configuring version.h using configuration Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0 Run-time dependency libkmod found: YES 33 Run-time dependency libudev found: YES 251 Run-time dependency uuid found: YES 2.40.2 Run-time dependency json-c found: YES 0.18 Run-time dependency libtraceevent found: YES 1.8.4 Run-time dependency libtracefs found: YES 1.8.1 Program asciidoctor found: YES (/usr/bin/asciidoctor) Library keyutils found: YES Message: Looking for iniparser include headers ['iniparser.h', 'dictionary.h'] Has header "iniparser.h" : YES Has header "dictionary.h" : YES Library iniparser found: YES Has header "dlfcn.h" : YES Has header "inttypes.h" : YES Has header "keyutils.h" : YES Has header "linux/version.h" : YES Has header "memory.h" : YES Has header "stdint.h" : YES Has header "stdlib.h" : YES Has header "strings.h" : YES Has header "string.h" : YES Has header "sys/stat.h" : YES Has header "sys/types.h" : YES Has header "unistd.h" : YES Header "signal.h" has symbol "BUS_MCEERR_AR" : YES Header "linux/mman.h" has symbol "MAP_SHARED_VALIDATE" : YES Header "linux/mman.h" has symbol "MAP_SYNC" : YES Checking for function "secure_getenv" : YES Checking for function "__secure_getenv" : NO Checking for function "json_object_new_uint64" with dependency json-c: YES Configuring config.h using configuration Program create.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/create.sh) Program clear.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/clear.sh) Program pmem-errors.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/pmem-errors.sh) Program daxdev-errors.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/daxdev-errors.sh) Program multi-dax.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/multi-dax.sh) Program btt-check.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/btt-check.sh) Program label-compat.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/label-compat.sh) Program sector-mode.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/sector-mode.sh) Program inject-error.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/inject-error.sh) Program btt-errors.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/btt-errors.sh) Program btt-pad-compat.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/btt-pad-compat.sh) Program firmware-update.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/firmware-update.sh) Program rescan-partitions.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/rescan-partitions.sh) Program inject-smart.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/inject-smart.sh) Program monitor.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/monitor.sh) Program max_available_extent_ns.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/max_available_extent_ns.sh) Program pfn-meta-errors.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/pfn-meta-errors.sh) Program track-uuid.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/track-uuid.sh) Program cxl-topology.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-topology.sh) Program cxl-region-sysfs.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-region-sysfs.sh) Program cxl-labels.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-labels.sh) Program cxl-create-region.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-create-region.sh) Program cxl-xor-region.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-xor-region.sh) Program cxl-update-firmware.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-update-firmware.sh) Program cxl-events.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-events.sh) Program cxl-sanitize.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-sanitize.sh) Program cxl-destroy-region.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-destroy-region.sh) Program cxl-qos-class.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-qos-class.sh) Program cxl-poison.sh found: YES (/bin/bash /home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-poison.sh) Program nfit-security.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/nfit-security.sh) Program cxl-security.sh found: YES (/home/buildozer/aports/community/ndctl/src/ndctl-80/test/cxl-security.sh) Run-time dependency bash-completion found: YES 2.14.0 contrib/meson.build:5: WARNING: Project does not target a minimum version but uses feature deprecated since '0.56.0': dependency.get_pkgconfig_variable. use dependency.get_variable(pkgconfig : ...) instead Build targets in project: 96 WARNING: Deprecated features used: * 0.56.0: {'dependency.get_pkgconfig_variable'} ndctl 80 User defined options auto_features : auto b_lto : true b_pie : true b_staticpic : true bindir : /usr/bin buildtype : plain datadir : /usr/share includedir : /usr/include infodir : /usr/share/info libdir : /usr/lib libexecdir : /usr/libexec localedir : /usr/share/locale localstatedir : /var mandir : /usr/share/man prefix : /usr python.bytecompile: 0 sbindir : /usr/sbin sharedstatedir : /var/lib sysconfdir : /etc systemd : disabled version-tag : 80 werror : false wrap_mode : nodownload Found ninja-1.9 at /usr/bin/ninja ninja: entering directory '/home/buildozer/aports/community/ndctl/src/ndctl-80/output' [1/242] Compiling C object test/revoke_devmem.p/dax-dev.c.o [2/242] Compiling C object test/revoke_devmem.p/revoke-devmem.c.o [3/242] Compiling C object test/revoke_devmem.p/.._util_sysfs.c.o [4/242] Compiling C object test/revoke_devmem.p/.._util_log.c.o [5/242] Compiling C object test/revoke_devmem.p/core.c.o [6/242] Compiling C object test/device-dax.p/dax-poison.c.o [7/242] Compiling C object test/device-dax.p/dax-pmd.c.o [8/242] Compiling C object test/device-dax.p/dax-dev.c.o [9/242] Compiling C object test/device-dax.p/device-dax.c.o [10/242] Compiling C object test/device-dax.p/.._daxctl_json.c.o [11/242] Compiling C object test/device-dax.p/.._daxctl_filter.c.o [12/242] Compiling C object test/device-dax.p/.._ndctl_json.c.o [13/242] Compiling C object test/device-dax.p/.._util_json.c.o [14/242] Compiling C object test/device-dax.p/.._ndctl_check.c.o [15/242] Compiling C object test/device-dax.p/.._ndctl_filter.c.o [16/242] Compiling C object test/device-dax.p/.._ndctl_namespace.c.o [17/242] Compiling C object test/device-dax.p/.._util_sysfs.c.o [18/242] Compiling C object test/device-dax.p/.._util_log.c.o [19/242] Compiling C object test/device-dax.p/core.c.o [20/242] Compiling C object test/pmem-ns.p/pmem_namespaces.c.o [21/242] Compiling C object test/pmem-ns.p/.._util_sysfs.c.o [22/242] Compiling C object test/pmem-ns.p/.._util_log.c.o [23/242] Compiling C object test/pmem-ns.p/core.c.o [24/242] Compiling C object test/smart-listen.p/smart-listen.c.o [25/242] Generating Documentation/cxl/lib/asciidoctor-extensions.rb with a custom command (wrapped by meson to capture output) [26/242] Generating Documentation/cxl/asciidoctor-extensions.rb with a custom command (wrapped by meson to capture output) [27/242] Generating Documentation/daxctl/asciidoctor-extensions.rb with a custom command (wrapped by meson to capture output) [28/242] Generating Documentation/ndctl/asciidoctor-extensions.rb with a custom command (wrapped by meson to capture output) [29/242] Generating cxl/lib/libcxl.pc with a custom command (wrapped by meson to capture output) [30/242] Generating ndctl/lib/libndctl.pc with a custom command (wrapped by meson to capture output) [31/242] Generating daxctl/lib/libdaxctl.pc with a custom command (wrapped by meson to capture output) [32/242] Compiling C object libccan.a.p/ccan_list_list.c.o [33/242] Compiling C object libccan.a.p/ccan_str_str.c.o [34/242] Compiling C object test/ack-shutdown-count-set.p/ack-shutdown-count-set.c.o [35/242] Compiling C object test/ack-shutdown-count-set.p/.._util_sysfs.c.o [36/242] Compiling C object test/ack-shutdown-count-set.p/.._util_log.c.o [37/242] Compiling C object test/ack-shutdown-count-set.p/core.c.o [38/242] Compiling C object test/hugetlb.p/dax-poison.c.o [39/242] Compiling C object test/hugetlb.p/dax-pmd.c.o [40/242] Compiling C object test/hugetlb.p/hugetlb.c.o [41/242] Compiling C object test/hugetlb.p/.._util_sysfs.c.o [42/242] Compiling C object test/hugetlb.p/.._util_log.c.o [43/242] Compiling C object test/hugetlb.p/core.c.o [44/242] Compiling C object test/dsm-fail.p/dsm-fail.c.o [45/242] Compiling C object test/dsm-fail.p/.._daxctl_json.c.o [46/242] Compiling C object test/dsm-fail.p/.._daxctl_filter.c.o [47/242] Compiling C object test/dsm-fail.p/.._ndctl_json.c.o [48/242] Compiling C object test/dsm-fail.p/.._util_json.c.o [49/242] Compiling C object test/dsm-fail.p/.._ndctl_check.c.o [50/242] Compiling C object test/dsm-fail.p/.._ndctl_filter.c.o [51/242] Compiling C object test/dsm-fail.p/.._ndctl_namespace.c.o [52/242] Compiling C object test/dsm-fail.p/.._util_sysfs.c.o [53/242] Compiling C object test/dsm-fail.p/.._util_log.c.o [54/242] Compiling C object test/dsm-fail.p/core.c.o [55/242] Compiling C object test/mmap.p/mmap.c.o [56/242] Compiling C object test/dax-dev.p/dax-dev.c.o [57/242] Compiling C object test/dax-dev.p/.._util_sysfs.c.o [58/242] Compiling C object test/dax-dev.p/.._util_log.c.o [59/242] Compiling C object test/dax-dev.p/core.c.o [60/242] Compiling C object test/daxdev-errors.p/.._util_sysfs.c.o [61/242] Compiling C object test/daxdev-errors.p/.._util_log.c.o [62/242] Compiling C object test/daxdev-errors.p/daxdev-errors.c.o [63/242] Compiling C object test/dax-errors.p/dax-errors.c.o [64/242] Compiling C object test/dax-pmd.p/dax-poison.c.o [65/242] Compiling C object test/dax-pmd.p/dax-pmd.c.o [66/242] Compiling C object test/dax-pmd.p/.._util_sysfs.c.o [67/242] Compiling C object test/dax-pmd.p/.._util_log.c.o [68/242] Compiling C object test/dax-pmd.p/core.c.o [69/242] Compiling C object test/list-smart-dimm.p/.._daxctl_filter.c.o [70/242] Compiling C object test/list-smart-dimm.p/.._daxctl_json.c.o [71/242] Compiling C object test/list-smart-dimm.p/.._ndctl_json.c.o [72/242] Compiling C object test/list-smart-dimm.p/.._util_json.c.o [73/242] Compiling C object test/list-smart-dimm.p/.._ndctl_filter.c.o [74/242] Compiling C object test/list-smart-dimm.p/list-smart-dimm.c.o [75/242] Compiling C object test/smart-notify.p/smart-notify.c.o [76/242] Compiling C object cxl/cxl.p/monitor.c.o [77/242] Compiling C object cxl/cxl.p/.._util_event_trace.c.o [78/242] Compiling C object cxl/cxl.p/.._daxctl_filter.c.o [79/242] Compiling C object cxl/cxl.p/.._daxctl_json.c.o [80/242] Compiling C object cxl/cxl.p/filter.c.o [81/242] Compiling C object cxl/cxl.p/json.c.o [82/242] Compiling C object cxl/cxl.p/memdev.c.o [83/242] Compiling C object cxl/cxl.p/region.c.o [84/242] Linking static target libccan.a [85/242] Compiling C object cxl/cxl.p/bus.c.o [86/242] Compiling C object cxl/cxl.p/port.c.o [87/242] Compiling C object cxl/cxl.p/list.c.o ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [88/242] Compiling C object cxl/cxl.p/cxl.c.o ../util/json.c: In function 'display_size': ../util/json.c:35:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:35:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 53 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 53 | if (bytes < 2L*SZ_1G) { | ^ [89/242] Compiling C object daxctl/daxctl.p/filter.c.o [90/242] Compiling C object daxctl/daxctl.p/json.c.o ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [91/242] Compiling C object daxctl/daxctl.p/device.c.o [92/242] Compiling C object daxctl/daxctl.p/migrate.c.o ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [93/242] Compiling C object daxctl/daxctl.p/list.c.o ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [94/242] Compiling C object daxctl/daxctl.p/acpi.c.o ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [95/242] Compiling C object daxctl/daxctl.p/daxctl.c.o [96/242] Compiling C object util/libutil.a.p/iomem.c.o ../test/dax-poison.c: In function 'test_dax_poison': ../test/dax-poison.c:99:63: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'off_t' {aka 'long long int'} [-Wformat=] 99 | fprintf(stderr, "%s: mmap got %p align: %ld offset: %zd\n", | ~~^ | | | int | %lld 100 | __func__, addr, align, offset); | ~~~~~~ | | | off_t {aka long long int} [97/242] Compiling C object util/libutil.a.p/abspath.c.o [98/242] Compiling C object util/libutil.a.p/bitmap.c.o [99/242] Compiling C object util/libutil.a.p/wrapper.c.o ../util/json.c: In function 'display_size': ../util/json.c:35:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:35:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 53 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 53 | if (bytes < 2L*SZ_1G) { | ^ [100/242] Compiling C object util/libutil.a.p/strbuf.c.o ../test/dax-poison.c: In function 'test_dax_poison': ../test/dax-poison.c:99:63: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'off_t' {aka 'long long int'} [-Wformat=] 99 | fprintf(stderr, "%s: mmap got %p align: %ld offset: %zd\n", | ~~^ | | | int | %lld 100 | __func__, addr, align, offset); | ~~~~~~ | | | off_t {aka long long int} [101/242] Compiling C object util/libutil.a.p/help.c.o [102/242] Compiling C object util/libutil.a.p/main.c.o [103/242] Compiling C object util/libutil.a.p/log.c.o [104/242] Compiling C object util/libutil.a.p/json.c.o [105/242] Compiling C object util/libutil.a.p/size.c.o [106/242] Compiling C object util/libutil.a.p/usage.c.o [107/242] Compiling C object util/libutil.a.p/parse-configs.c.o [108/242] Compiling C object util/libutil.a.p/parse-options.c.o [109/242] Compiling C object cxl/lib/libcxl.so.1.0.7.p/libcxl.c.o [110/242] Compiling C object cxl/lib/libcxl.so.1.0.7.p/.._.._util_log.c.o [111/242] Compiling C object cxl/lib/libcxl.so.1.0.7.p/.._.._util_sysfs.c.o [112/242] Compiling C object ndctl/ndctl.p/load-keys.c.o [113/242] Generating Documentation/daxctl/daxctl-destroy-device with a custom command [114/242] Generating Documentation/daxctl/daxctl-create-device with a custom command [115/242] Generating Documentation/daxctl/daxctl-enable-device with a custom command [116/242] Generating Documentation/cxl/cxl-wait-sanitize with a custom command [117/242] Generating Documentation/cxl/cxl-set-alert-config with a custom command [118/242] Generating Documentation/cxl/cxl-update-firmware with a custom command [119/242] Generating Documentation/ndctl/ndctl-activate-firmware with a custom command [120/242] Generating Documentation/ndctl/ndctl-write-infoblock with a custom command [121/242] Generating Documentation/ndctl/ndctl-read-infoblock with a custom command In file included from ../test/dax-pmd.c:18: ../test/dax-pmd.c: In function 'test_pmd': ../util/size.h:31:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 31 | #define ALIGN(x, a) ((((unsigned long long) x) + (a - 1)) & ~(a - 1)) | ^ ../test/dax-pmd.c:337:19: note: in expansion of macro 'ALIGN' 337 | m_align = ALIGN(base, HPAGE_SIZE) - ((unsigned long) base); | ^~~~~ [122/242] Generating Documentation/ndctl/ndctl-wait-overwrite with a custom command [123/242] Generating Documentation/ndctl/ndctl-load-keys with a custom command [124/242] Generating Documentation/ndctl/ndctl-sanitize-dimm with a custom command ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [125/242] Generating Documentation/ndctl/ndctl-freeze-security with a custom command ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [126/242] Generating Documentation/ndctl/ndctl-remove-passphrase with a custom command ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [127/242] Generating Documentation/ndctl/ndctl-update-passphrase with a custom command [128/242] Generating Documentation/cxl/lib/cxl_new with a custom command ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [129/242] Generating Documentation/cxl/lib/libcxl with a custom command In file included from ../test/dax-pmd.c:18: ../test/dax-pmd.c: In function 'test_pmd': ../util/size.h:31:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 31 | #define ALIGN(x, a) ((((unsigned long long) x) + (a - 1)) & ~(a - 1)) | ^ ../test/dax-pmd.c:337:19: note: in expansion of macro 'ALIGN' 337 | m_align = ALIGN(base, HPAGE_SIZE) - ((unsigned long) base); | ^~~~~ [130/242] Generating Documentation/ndctl/ndctl-setup-passphrase with a custom command [131/242] Linking target test/dax-errors [132/242] Generating Documentation/ndctl/ndctl-monitor with a custom command [133/242] Generating Documentation/ndctl/ndctl-list with a custom command [134/242] Linking target test/mmap [135/242] Generating Documentation/ndctl/ndctl-update-firmware with a custom command ../util/json.c: In function 'display_size': ../util/json.c:35:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:35:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 53 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 53 | if (bytes < 2L*SZ_1G) { | ^ [136/242] Generating Documentation/ndctl/ndctl-inject-smart with a custom command ../test/dax-poison.c: In function 'test_dax_poison': ../test/dax-poison.c:99:63: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'off_t' {aka 'long long int'} [-Wformat=] 99 | fprintf(stderr, "%s: mmap got %p align: %ld offset: %zd\n", | ~~^ | | | int | %lld 100 | __func__, addr, align, offset); | ~~~~~~ | | | off_t {aka long long int} [137/242] Generating Documentation/ndctl/ndctl-inject-error with a custom command [138/242] Generating Documentation/ndctl/ndctl-clear-errors with a custom command [139/242] Generating Documentation/ndctl/ndctl-check-namespace with a custom command [140/242] Generating Documentation/ndctl/ndctl-destroy-namespace with a custom command [141/242] Generating Documentation/ndctl/ndctl-create-namespace with a custom command [142/242] Generating Documentation/ndctl/ndctl-disable-namespace with a custom command [143/242] Generating Documentation/ndctl/ndctl-enable-namespace with a custom command ../test/device-dax.c: In function 'verify_data': ../test/device-dax.c:124:73: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'suseconds_t' {aka 'long long int'} [-Wformat=] 124 | fprintf(stderr, "%s: verify loop took too long usecs: %ld\n", | ~~^ | | | long int | %lld 125 | daxctl_dev_get_devname(dev), tv_diff.tv_usec); | ~~~~~~~~~~~~~~~ | | | suseconds_t {aka long long int} [144/242] Generating Documentation/ndctl/ndctl-disable-dimm with a custom command [145/242] Generating Documentation/ndctl/ndctl-enable-dimm with a custom command [146/242] Generating Documentation/ndctl/ndctl-disable-region with a custom command [147/242] Generating Documentation/ndctl/ndctl-enable-region with a custom command [148/242] Generating Documentation/ndctl/ndctl-check-labels with a custom command [149/242] Generating Documentation/ndctl/ndctl-init-labels with a custom command [150/242] Generating Documentation/ndctl/ndctl-write-labels with a custom command [151/242] Generating Documentation/ndctl/ndctl-read-labels with a custom command [152/242] Generating Documentation/ndctl/ndctl-zero-labels with a custom command [153/242] Generating Documentation/ndctl/ndctl-start-scrub with a custom command [154/242] Generating Documentation/ndctl/ndctl-wait-scrub with a custom command [155/242] Generating Documentation/ndctl/ndctl with a custom command [156/242] Generating Documentation/cxl/cxl-monitor with a custom command [157/242] Generating Documentation/cxl/cxl-destroy-region with a custom command [158/242] Generating Documentation/cxl/cxl-enable-region with a custom command [159/242] Generating Documentation/cxl/cxl-disable-region with a custom command [160/242] Generating Documentation/cxl/cxl-create-region with a custom command [161/242] Generating Documentation/cxl/cxl-free-dpa with a custom command [162/242] Generating Documentation/cxl/cxl-reserve-dpa with a custom command [163/242] Generating Documentation/cxl/cxl-set-partition with a custom command [164/242] Generating Documentation/cxl/cxl-disable-bus with a custom command In file included from ../test/dax-pmd.c:18: ../test/dax-pmd.c: In function 'test_pmd': ../util/size.h:31:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 31 | #define ALIGN(x, a) ((((unsigned long long) x) + (a - 1)) & ~(a - 1)) | ^ ../test/dax-pmd.c:337:19: note: in expansion of macro 'ALIGN' 337 | m_align = ALIGN(base, HPAGE_SIZE) - ((unsigned long) base); | ^~~~~ [165/242] Generating Documentation/cxl/cxl-disable-port with a custom command ../util/json.c: In function 'display_size': ../util/json.c:35:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:35:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 35 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:31: warning: integer overflow in expression of type 'long int' results in '-2147483648' [-Woverflow] 53 | if (bytes < 2L*SZ_1G) { | ^ ../util/json.c:53:27: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long int' [-Wsign-compare] 53 | if (bytes < 2L*SZ_1G) { | ^ [166/242] Generating Documentation/cxl/cxl-enable-port with a custom command [167/242] Generating Documentation/cxl/cxl-disable-memdev with a custom command [168/242] Generating Documentation/cxl/cxl-enable-memdev with a custom command ../test/daxdev-errors.c: In function 'test_daxdev_clear_error': ../test/daxdev-errors.c:297:29: warning: format '%lu' expects argument of type 'long unsigned int *', but argument 3 has type 'uint64_t *' {aka 'long long unsigned int *'} [-Wformat=] 297 | rc = sscanf(buf, "%lu %lu", &offset, &blocks); | ~~^ ~~~~~~~ | | | | | uint64_t * {aka long long unsigned int *} | long unsigned int * | %llu ../test/daxdev-errors.c:297:33: warning: format '%lu' expects argument of type 'long unsigned int *', but argument 4 has type 'uint64_t *' {aka 'long long unsigned int *'} [-Wformat=] 297 | rc = sscanf(buf, "%lu %lu", &offset, &blocks); | ~~^ ~~~~~~~ | | | | | uint64_t * {aka long long unsigned int *} | long unsigned int * | %llu [169/242] Generating Documentation/cxl/cxl-zero-labels with a custom command ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [170/242] Generating Documentation/cxl/cxl-write-labels with a custom command ../util/help.c: In function 'exec_man_konqueror': ../util/help.c:56:48: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 56 | warning("failed to exec '%s': %s", path, | ~^ | | | char * | %d 57 | strerror_r(errno, sbuf, sizeof(sbuf))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int ../util/help.c: In function 'exec_man_man': ../util/help.c:68:40: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'int' [-Wformat=] 68 | warning("failed to exec '%s': %s", path, | ~^ | | | char * | %d 69 | strerror_r(errno, sbuf, sizeof(sbuf))); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | int [171/242] Generating Documentation/cxl/cxl-read-labels with a custom command [172/242] Generating Documentation/cxl/cxl-list with a custom command [173/242] Generating Documentation/cxl/cxl with a custom command ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [174/242] Generating Documentation/daxctl/daxctl-disable-device with a custom command [175/242] Generating Documentation/daxctl/daxctl-offline-memory with a custom command [176/242] Generating Documentation/daxctl/daxctl-online-memory with a custom command [177/242] Generating Documentation/daxctl/daxctl-reconfigure-device with a custom command [178/242] Generating Documentation/daxctl/daxctl-migrate-device-model with a custom command [179/242] Generating Documentation/daxctl/daxctl-list with a custom command [180/242] Generating Documentation/daxctl/daxctl with a custom command [181/242] Compiling C object ndctl/ndctl.p/keys.c.o [182/242] Linking static target util/libutil.a [183/242] Compiling C object ndctl/ndctl.p/monitor.c.o [184/242] Compiling C object ndctl/ndctl.p/inject-smart.c.o [185/242] Compiling C object ndctl/ndctl.p/inject-error.c.o [186/242] Compiling C object ndctl/ndctl.p/json-smart.c.o In file included from ../cxl/region.c:8: ../cxl/region.c: In function 'parse_create_options': ../cxl/region.c:353:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 353 | "size (%lu) is not an integral multiple of interleave-ways (%u)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 354 | p->size, p->ways); | ~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../cxl/region.c:352:25: note: in expansion of macro 'log_err' 352 | log_err(&rl, | ^~~~~~~ ../cxl/region.c:353:42: note: format string is defined here 353 | "size (%lu) is not an integral multiple of interleave-ways (%u)\n", | ~~^ | | | long unsigned int | %llu ../cxl/region.c: In function 'create_region': ../cxl/region.c:680:25: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 680 | "%s: region size %#lx exceeds max available space\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 681 | cxl_decoder_get_devname(p->root_decoder), size); | ~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../cxl/region.c:679:17: note: in expansion of macro 'log_err' 679 | log_err(&rl, | ^~~~~~~ ../cxl/region.c:680:45: note: format string is defined here 680 | "%s: region size %#lx exceeds max available space\n", | ~~~^ | | | long unsigned int | %#llx [187/242] Compiling C object ndctl/ndctl.p/json.c.o ../daxctl/device.c: In function 'parse_device_options': ../daxctl/device.c:370:39: warning: passing argument 1 of 'basename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 370 | device = basename(argv[0]); | ~~~~^~~ In file included from ../daxctl/device.c:22: /usr/include/libgen.h:9:16: note: expected 'char *' but argument is of type 'const char *' 9 | char *basename(char *); | ^~~~~~ [188/242] Compiling C object ndctl/ndctl.p/.._daxctl_json.c.o In file included from ../ndctl/check.c:14: ../ndctl/check.c: In function 'btt_read_info': ../ndctl/check.c:107:27: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' {aka 'int'} [-Wformat=] 107 | err(bttc, "short read of first info block: %ld\n", size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | ssize_t {aka int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:107:17: note: in expansion of macro 'err' 107 | err(bttc, "short read of first info block: %ld\n", size); | ^~~ ../ndctl/check.c:107:62: note: format string is defined here 107 | err(bttc, "short read of first info block: %ld\n", size); | ~~^ | | | long int | %d ../ndctl/check.c: In function 'btt_write_info': ../ndctl/check.c:129:27: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 130 | off); | ~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:129:17: note: in expansion of macro 'err' 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ^~~ ../ndctl/check.c:129:56: note: format string is defined here 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:134:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:134:9: note: in expansion of macro 'info' 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ^~~~ ../ndctl/check.c:134:59: note: format string is defined here 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:143:27: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' {aka 'int'} [-Wformat=] 143 | err(bttc, "short write of the info block: %ld\n", size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | ssize_t {aka int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:143:17: note: in expansion of macro 'err' 143 | err(bttc, "short write of the info block: %ld\n", size); | ^~~ ../ndctl/check.c:143:61: note: format string is defined here 143 | err(bttc, "short write of the info block: %ld\n", size); | ~~^ | | | long int | %d In file included from ../util/size.h:8, from ../ndctl/check.c:18: ../ndctl/check.c: In function 'btt_copy_to_info2': ../ndctl/check.c:174:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../util/util.h:38:16: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:174:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../util/util.h:38:26: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:174:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../ndctl/check.c: In function 'btt_map_write': ../ndctl/check.c:221:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../util/util.h:38:16: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:221:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../util/util.h:38:26: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:221:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../ndctl/check.c: In function 'btt_discover_arenas': ../ndctl/check.c:824:39: warning: comparison is always true due to limited range of data type [-Wtype-limits] 824 | if (remaining <= ARENA_MAX_SIZE) | ^~ ../ndctl/check.c:835:43: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 836 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:835:33: note: in expansion of macro 'err' 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ^~~ ../ndctl/check.c:835:88: note: format string is defined here 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:841:43: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 842 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:841:33: note: in expansion of macro 'err' 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ^~~ ../ndctl/check.c:841:73: note: format string is defined here 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_mmap': ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:43: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'off_t' {aka 'long long int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:58: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 10 has type 'off_t' {aka 'long long int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:78: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_unmap': ../ndctl/check.c:930:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 931 | (void *) addr, length, page_offset); | ~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:930:9: note: in expansion of macro 'dbg' 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:930:43: note: format string is defined here 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:930:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'off_t' {aka 'long long int'} [-Wformat=] 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 931 | (void *) addr, length, page_offset); | ~~~~~~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:930:9: note: in expansion of macro 'dbg' 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:930:63: note: format string is defined here 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_create_mappings': ../ndctl/check.c:944:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 945 | i, a->map.info_len, a->infooff, strerror(errno)); | ~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:944:25: note: in expansion of macro 'err' 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:944:65: note: format string is defined here 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:944:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 945 | i, a->map.info_len, a->infooff, strerror(errno)); | ~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:944:25: note: in expansion of macro 'err' 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:944:77: note: format string is defined here 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:952:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 953 | i, a->map.data_len, a->dataoff, strerror(errno)); | ~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:952:25: note: in expansion of macro 'err' 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:952:65: note: format string is defined here 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:952:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 953 | i, a->map.data_len, a->dataoff, strerror(errno)); | ~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:952:25: note: in expansion of macro 'err' 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:952:77: note: format string is defined here 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:960:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 961 | i, a->map.map_len, a->mapoff, strerror(errno)); | ~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:960:25: note: in expansion of macro 'err' 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:960:64: note: format string is defined here 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:960:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 961 | i, a->map.map_len, a->mapoff, strerror(errno)); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:960:25: note: in expansion of macro 'err' 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:960:76: note: format string is defined here 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:968:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969 | i, a->map.log_len, a->logoff, strerror(errno)); | ~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:968:25: note: in expansion of macro 'err' 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:968:64: note: format string is defined here 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:968:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969 | i, a->map.log_len, a->logoff, strerror(errno)); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:968:25: note: in expansion of macro 'err' 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:968:76: note: format string is defined here 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:976:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 977 | i, a->map.info2_len, a->info2off, strerror(errno)); | ~~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:976:25: note: in expansion of macro 'err' 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:976:66: note: format string is defined here 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:976:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 977 | i, a->map.info2_len, a->info2off, strerror(errno)); | ~~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:976:25: note: in expansion of macro 'err' 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:976:78: note: format string is defined here 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function '__btt_recover_first_sb': ../ndctl/check.c:1047:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1048 | est_arenas, remaining); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1047:9: note: in expansion of macro 'info' 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ^~~~ ../ndctl/check.c:1047:63: note: format string is defined here 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1065:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1066 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1065:9: note: in expansion of macro 'info' 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ^~~~ ../ndctl/check.c:1065:79: note: format string is defined here 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1094:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1095 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1094:17: note: in expansion of macro 'info' 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ^~~~ ../ndctl/check.c:1094:81: note: format string is defined here 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1127:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1128 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1127:17: note: in expansion of macro 'info' 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ^~~~ ../ndctl/check.c:1127:83: note: format string is defined here 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx [189/242] Compiling C object ndctl/ndctl.p/list.c.o [190/242] Compiling C object ndctl/ndctl.p/filter.c.o [191/242] Compiling C object ndctl/ndctl.p/.._daxctl_filter.c.o In file included from ../ndctl/check.c:14: ../ndctl/check.c: In function 'btt_read_info': ../ndctl/check.c:107:27: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' {aka 'int'} [-Wformat=] 107 | err(bttc, "short read of first info block: %ld\n", size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | ssize_t {aka int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:107:17: note: in expansion of macro 'err' 107 | err(bttc, "short read of first info block: %ld\n", size); | ^~~ ../ndctl/check.c:107:62: note: format string is defined here 107 | err(bttc, "short read of first info block: %ld\n", size); | ~~^ | | | long int | %d ../ndctl/check.c: In function 'btt_write_info': ../ndctl/check.c:129:27: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 130 | off); | ~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:129:17: note: in expansion of macro 'err' 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ^~~ ../ndctl/check.c:129:56: note: format string is defined here 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:134:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:134:9: note: in expansion of macro 'info' 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ^~~~ ../ndctl/check.c:134:59: note: format string is defined here 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:143:27: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' {aka 'int'} [-Wformat=] 143 | err(bttc, "short write of the info block: %ld\n", size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | ssize_t {aka int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:143:17: note: in expansion of macro 'err' 143 | err(bttc, "short write of the info block: %ld\n", size); | ^~~ ../ndctl/check.c:143:61: note: format string is defined here 143 | err(bttc, "short write of the info block: %ld\n", size); | ~~^ | | | long int | %d In file included from ../util/size.h:8, from ../ndctl/check.c:18: ../ndctl/check.c: In function 'btt_copy_to_info2': ../ndctl/check.c:174:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../util/util.h:38:16: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:174:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../util/util.h:38:26: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:174:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../ndctl/check.c: In function 'btt_map_write': ../ndctl/check.c:221:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../util/util.h:38:16: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:221:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../util/util.h:38:26: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:221:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../ndctl/check.c: In function 'btt_discover_arenas': ../ndctl/check.c:824:39: warning: comparison is always true due to limited range of data type [-Wtype-limits] 824 | if (remaining <= ARENA_MAX_SIZE) | ^~ ../ndctl/check.c:835:43: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 836 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:835:33: note: in expansion of macro 'err' 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ^~~ ../ndctl/check.c:835:88: note: format string is defined here 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:841:43: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 842 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:841:33: note: in expansion of macro 'err' 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ^~~ ../ndctl/check.c:841:73: note: format string is defined here 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_mmap': ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:43: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'off_t' {aka 'long long int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:58: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 10 has type 'off_t' {aka 'long long int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:78: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_unmap': ../ndctl/check.c:930:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 931 | (void *) addr, length, page_offset); | ~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:930:9: note: in expansion of macro 'dbg' 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:930:43: note: format string is defined here 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:930:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'off_t' {aka 'long long int'} [-Wformat=] 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 931 | (void *) addr, length, page_offset); | ~~~~~~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:930:9: note: in expansion of macro 'dbg' 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:930:63: note: format string is defined here 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_create_mappings': ../ndctl/check.c:944:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 945 | i, a->map.info_len, a->infooff, strerror(errno)); | ~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:944:25: note: in expansion of macro 'err' 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:944:65: note: format string is defined here 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:944:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 945 | i, a->map.info_len, a->infooff, strerror(errno)); | ~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:944:25: note: in expansion of macro 'err' 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:944:77: note: format string is defined here 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:952:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 953 | i, a->map.data_len, a->dataoff, strerror(errno)); | ~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:952:25: note: in expansion of macro 'err' 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:952:65: note: format string is defined here 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:952:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 953 | i, a->map.data_len, a->dataoff, strerror(errno)); | ~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:952:25: note: in expansion of macro 'err' 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:952:77: note: format string is defined here 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:960:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 961 | i, a->map.map_len, a->mapoff, strerror(errno)); | ~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:960:25: note: in expansion of macro 'err' 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:960:64: note: format string is defined here 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:960:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 961 | i, a->map.map_len, a->mapoff, strerror(errno)); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:960:25: note: in expansion of macro 'err' 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:960:76: note: format string is defined here 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:968:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969 | i, a->map.log_len, a->logoff, strerror(errno)); | ~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:968:25: note: in expansion of macro 'err' 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:968:64: note: format string is defined here 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:968:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969 | i, a->map.log_len, a->logoff, strerror(errno)); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:968:25: note: in expansion of macro 'err' 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:968:76: note: format string is defined here 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:976:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 977 | i, a->map.info2_len, a->info2off, strerror(errno)); | ~~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:976:25: note: in expansion of macro 'err' 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:976:66: note: format string is defined here 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:976:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 977 | i, a->map.info2_len, a->info2off, strerror(errno)); | ~~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:976:25: note: in expansion of macro 'err' 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:976:78: note: format string is defined here 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function '__btt_recover_first_sb': ../ndctl/check.c:1047:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1048 | est_arenas, remaining); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1047:9: note: in expansion of macro 'info' 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ^~~~ ../ndctl/check.c:1047:63: note: format string is defined here 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1065:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1066 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1065:9: note: in expansion of macro 'info' 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ^~~~ ../ndctl/check.c:1065:79: note: format string is defined here 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1094:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1095 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1094:17: note: in expansion of macro 'info' 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ^~~~ ../ndctl/check.c:1094:81: note: format string is defined here 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1127:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1128 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1127:17: note: in expansion of macro 'info' 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ^~~~ ../ndctl/check.c:1127:83: note: format string is defined here 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx [192/242] Compiling C object ndctl/ndctl.p/dimm.c.o [193/242] Compiling C object ndctl/ndctl.p/region.c.o [194/242] Compiling C object ndctl/ndctl.p/check.c.o [195/242] Compiling C object ndctl/ndctl.p/namespace.c.o [196/242] Compiling C object ndctl/ndctl.p/create-nfit.c.o [197/242] Compiling C object ndctl/ndctl.p/bus.c.o [198/242] Compiling C object ndctl/ndctl.p/ndctl.c.o [199/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/libndctl.c.o [200/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/firmware.c.o [201/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/ars.c.o [202/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/papr.c.o [203/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/hyperv.c.o ../ndctl/monitor.c: In function 'notify_dimm_event': ../ndctl/monitor.c:136:33: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 136 | sprintf(timestamp, "%10ld.%09ld", ts.tv_sec, ts.tv_nsec); | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld [204/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/msft.c.o [205/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/hpe1.c.o [206/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/intel.c.o [207/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/smart.c.o [208/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/nfit.c.o [209/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/inject.c.o [210/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/dimm.c.o [211/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/.._.._util_sysfs.c.o [212/242] Compiling C object ndctl/lib/libndctl.so.6.4.21.p/.._.._util_log.c.o [213/242] Compiling C object daxctl/lib/libdaxctl.so.1.0.6.p/libdaxctl.c.o [214/242] Compiling C object daxctl/lib/libdaxctl.so.1.0.6.p/.._.._util_log.c.o [215/242] Compiling C object daxctl/lib/libdaxctl.so.1.0.6.p/.._.._util_sysfs.c.o [216/242] Compiling C object daxctl/lib/libdaxctl.so.1.0.6.p/.._.._util_iomem.c.o [217/242] Compiling C object test/libndctl.p/libndctl.c.o [218/242] Compiling C object test/libndctl.p/.._util_sysfs.c.o [219/242] Compiling C object test/libndctl.p/.._util_log.c.o [220/242] Compiling C object test/libndctl.p/core.c.o ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld ../util/log.c: In function 'log_file': ../util/log.c:36:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 36 | fprintf(f, "[%10ld.%09ld] [%d] ", ts.tv_sec, ts.tv_nsec, | ~~~~^ ~~~~~~~~~ | | | | long int time_t {aka long long int} | %10lld In file included from ../ndctl/lib/papr.c:12: ../ndctl/lib/papr.c: In function 'allocate_cmd': ../ndctl/lib/papr.c:25:47: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 25 | "%s:" _format_str, \ | ^~~~~ ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/lib/papr.c:24:43: note: in expansion of macro 'err' 24 | #define papr_err(_dimm, _format_str, ...) err(_dimm->bus->ctx, \ | ^~~ ../ndctl/lib/papr.c:99:17: note: in expansion of macro 'papr_err' 99 | papr_err(dimm, "Requested payload size too large %lu bytes\n", | ^~~~~~~~ ../ndctl/dimm.c: In function 'dump_index_json': ../ndctl/dimm.c:230:33: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'int'} and 'unsigned int' [-Wsign-compare] 230 | for (offset = 0; offset < nsindex_size * 2; offset += nsindex_size) { | ^ ../ndctl/dimm.c: In function 'rw_bin': ../ndctl/dimm.c:328:44: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'int'} and 'unsigned int' [-Wsign-compare] 328 | for (offset = start_offset; offset < start_offset + size; | ^ In file included from ../ndctl/check.c:14: ../ndctl/check.c: In function 'btt_read_info': ../ndctl/check.c:107:27: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' {aka 'int'} [-Wformat=] 107 | err(bttc, "short read of first info block: %ld\n", size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | ssize_t {aka int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:107:17: note: in expansion of macro 'err' 107 | err(bttc, "short read of first info block: %ld\n", size); | ^~~ ../ndctl/check.c:107:62: note: format string is defined here 107 | err(bttc, "short read of first info block: %ld\n", size); | ~~^ | | | long int | %d ../ndctl/check.c: In function 'btt_write_info': ../ndctl/check.c:129:27: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 130 | off); | ~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:129:17: note: in expansion of macro 'err' 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ^~~ ../ndctl/check.c:129:56: note: format string is defined here 129 | err(bttc, "BTT info block at offset %#lx needs to be restored\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:134:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:134:9: note: in expansion of macro 'info' 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ^~~~ ../ndctl/check.c:134:59: note: format string is defined here 134 | info(bttc, "Restoring BTT info block at offset %#lx\n", off); | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:143:27: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' {aka 'int'} [-Wformat=] 143 | err(bttc, "short write of the info block: %ld\n", size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | ssize_t {aka int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:143:17: note: in expansion of macro 'err' 143 | err(bttc, "short write of the info block: %ld\n", size); | ^~~ ../ndctl/check.c:143:61: note: format string is defined here 143 | err(bttc, "short write of the info block: %ld\n", size); | ~~^ | | | long int | %d In file included from ../util/size.h:8, from ../ndctl/check.c:18: ../ndctl/check.c: In function 'btt_copy_to_info2': ../ndctl/check.c:174:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../util/util.h:38:16: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:174:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../util/util.h:38:26: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:174:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 174 | ms_align = (void *)rounddown((u64)a->map.info2, a->bttc->sys_page_size); | ^ ../ndctl/check.c: In function 'btt_map_write': ../ndctl/check.c:221:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../util/util.h:38:16: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:221:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../util/util.h:38:26: note: in definition of macro 'rounddown' 38 | typeof(x) __x = (x); \ | ^ ../ndctl/check.c:221:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 221 | ms_align = (void *)rounddown((u64)&a->map.map[lba], | ^ ../ndctl/check.c: In function 'btt_discover_arenas': ../ndctl/check.c:824:39: warning: comparison is always true due to limited range of data type [-Wtype-limits] 824 | if (remaining <= ARENA_MAX_SIZE) | ^~ ../ndctl/check.c:835:43: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 836 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:835:33: note: in expansion of macro 'err' 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ^~~ ../ndctl/check.c:835:88: note: format string is defined here 835 | err(bttc, "Unable to read backup info block (offset %#lx)\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:841:43: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 842 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:841:33: note: in expansion of macro 'err' 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ^~~ ../ndctl/check.c:841:73: note: format string is defined here 841 | err(bttc, "Backup info block (offset %#lx) verification failed\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_mmap': ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:43: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'off_t' {aka 'long long int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:58: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:912:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 10 has type 'off_t' {aka 'long long int'} [-Wformat=] 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 913 | (void *) addr, length, offset, page_offset); | ~~~~~~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:912:9: note: in expansion of macro 'dbg' 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:912:78: note: format string is defined here 912 | dbg(bttc, "addr = %p, length = %#lx, offset = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_unmap': ../ndctl/check.c:930:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 931 | (void *) addr, length, page_offset); | ~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:930:9: note: in expansion of macro 'dbg' 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:930:43: note: format string is defined here 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:930:19: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'off_t' {aka 'long long int'} [-Wformat=] 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 931 | (void *) addr, length, page_offset); | ~~~~~~~~~~~ | | | off_t {aka long long int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:930:9: note: in expansion of macro 'dbg' 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ^~~ ../ndctl/check.c:930:63: note: format string is defined here 930 | dbg(bttc, "addr = %p, length = %#lx, page_offset = %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function 'btt_create_mappings': ../ndctl/check.c:944:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 945 | i, a->map.info_len, a->infooff, strerror(errno)); | ~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:944:25: note: in expansion of macro 'err' 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:944:65: note: format string is defined here 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:944:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 945 | i, a->map.info_len, a->infooff, strerror(errno)); | ~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:944:25: note: in expansion of macro 'err' 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:944:77: note: format string is defined here 944 | err(bttc, "mmap arena[%d].info [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:952:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 953 | i, a->map.data_len, a->dataoff, strerror(errno)); | ~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:952:25: note: in expansion of macro 'err' 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:952:65: note: format string is defined here 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:952:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 953 | i, a->map.data_len, a->dataoff, strerror(errno)); | ~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:952:25: note: in expansion of macro 'err' 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:952:77: note: format string is defined here 952 | err(bttc, "mmap arena[%d].data [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:960:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 961 | i, a->map.map_len, a->mapoff, strerror(errno)); | ~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:960:25: note: in expansion of macro 'err' 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:960:64: note: format string is defined here 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:960:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 961 | i, a->map.map_len, a->mapoff, strerror(errno)); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:960:25: note: in expansion of macro 'err' 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:960:76: note: format string is defined here 960 | err(bttc, "mmap arena[%d].map [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:968:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969 | i, a->map.log_len, a->logoff, strerror(errno)); | ~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:968:25: note: in expansion of macro 'err' 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:968:64: note: format string is defined here 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:968:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 969 | i, a->map.log_len, a->logoff, strerror(errno)); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:968:25: note: in expansion of macro 'err' 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:968:76: note: format string is defined here 968 | err(bttc, "mmap arena[%d].log [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:976:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 977 | i, a->map.info2_len, a->info2off, strerror(errno)); | ~~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:976:25: note: in expansion of macro 'err' 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:976:66: note: format string is defined here 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#x ../ndctl/check.c:976:35: warning: format '%lx' expects argument of type 'long unsigned int', but argument 9 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 977 | i, a->map.info2_len, a->info2off, strerror(errno)); | ~~~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/check.c:976:25: note: in expansion of macro 'err' 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ^~~ ../ndctl/check.c:976:78: note: format string is defined here 976 | err(bttc, "mmap arena[%d].info2 [sz = %#lx, off = %#lx] failed: %s\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c: In function '__btt_recover_first_sb': ../ndctl/check.c:1047:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1048 | est_arenas, remaining); | ~~~~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1047:9: note: in expansion of macro 'info' 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ^~~~ ../ndctl/check.c:1047:63: note: format string is defined here 1047 | info(bttc, "estimated arenas: %d, remaining bytes: %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1065:20: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1066 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1065:9: note: in expansion of macro 'info' 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ^~~~ ../ndctl/check.c:1065:79: note: format string is defined here 1065 | info(bttc, "Attempting recover info-block from end-of-arena offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1094:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1095 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1094:17: note: in expansion of macro 'info' 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ^~~~ ../ndctl/check.c:1094:81: note: format string is defined here 1094 | info(bttc, "Attempting to recover info-block from end offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx ../ndctl/check.c:1127:28: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1128 | offset); | ~~~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:56:25: note: in expansion of macro 'log_info' 56 | #define info(x, arg...) log_info(&(x)->ctx, ## arg) | ^~~~~~~~ ../ndctl/check.c:1127:17: note: in expansion of macro 'info' 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ^~~~ ../ndctl/check.c:1127:83: note: format string is defined here 1127 | info(bttc, "Attempting to recover info-block from info2 offset %#lx\n", | ~~~^ | | | long unsigned int | %#llx In file included from ../ndctl/lib/private.h:12, from ../ndctl/lib/dimm.c:10: ../ndctl/lib/dimm.c: In function '__label_validate': ../ndctl/lib/dimm.c:219:34: warning: format '%zx' expects argument of type 'size_t', but argument 8 has type 'u64' {aka 'long long unsigned int'} [-Wformat=] 219 | dbg(ctx, "nsindex%d mysize: %#zx invalid\n", i, size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ | | | u64 {aka long long unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/lib/dimm.c:219:25: note: in expansion of macro 'dbg' 219 | dbg(ctx, "nsindex%d mysize: %#zx invalid\n", i, size); | ^~~ ../ndctl/lib/dimm.c:219:56: note: format string is defined here 219 | dbg(ctx, "nsindex%d mysize: %#zx invalid\n", i, size); | ~~~^ | | | unsigned int | %#llx ../ndctl/lib/dimm.c:227:34: warning: format '%zx' expects argument of type 'size_t', but argument 9 has type 'long unsigned int' [-Wformat=] 227 | dbg(ctx, "nsindex%d nslot: %u invalid, config_size: %#zx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 228 | i, nslot, ndd->config_size); | ~~~~~~~~~~~~~~~~ | | | long unsigned int ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../ndctl/lib/dimm.c:227:25: note: in expansion of macro 'dbg' 227 | dbg(ctx, "nsindex%d nslot: %u invalid, config_size: %#zx\n", | ^~~ ../ndctl/lib/dimm.c:227:80: note: format string is defined here 227 | dbg(ctx, "nsindex%d nslot: %u invalid, config_size: %#zx\n", | ~~~^ | | | unsigned int | %#lx [221/242] Linking target daxctl/lib/libdaxctl.so.1.0.6 ../cxl/lib/libcxl.c: In function 'add_cxl_memdev': ../cxl/lib/libcxl.c:1314:38: warning: comparison is always false due to limited range of data type [-Wtype-limits] 1314 | if (memdev->lsa_size == ULLONG_MAX) | ^~ In file included from ../cxl/lib/libcxl.c:24: ../cxl/lib/libcxl.c: In function 'add_cxl_decoder': ../cxl/lib/libcxl.c:2379:26: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 2379 | dbg(ctx, "%s: target%ld %s phys_path: %s\n", devname, i, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../cxl/lib/libcxl.c:2379:17: note: in expansion of macro 'dbg' 2379 | dbg(ctx, "%s: target%ld %s phys_path: %s\n", devname, i, | ^~~ ../cxl/lib/libcxl.c:2379:39: note: format string is defined here 2379 | dbg(ctx, "%s: target%ld %s phys_path: %s\n", devname, i, | ~~^ | | | long int | %d ../cxl/lib/libcxl.c:2385:26: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 2385 | dbg(ctx, "%s: target%ld %s fw_path: %s\n", devname, i, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:55:24: note: in expansion of macro 'log_dbg' 55 | #define dbg(x, arg...) log_dbg(&(x)->ctx, ## arg) | ^~~~~~~ ../cxl/lib/libcxl.c:2385:17: note: in expansion of macro 'dbg' 2385 | dbg(ctx, "%s: target%ld %s fw_path: %s\n", devname, i, | ^~~ ../cxl/lib/libcxl.c:2385:39: note: format string is defined here 2385 | dbg(ctx, "%s: target%ld %s fw_path: %s\n", devname, i, | ~~^ | | | long int | %d ../cxl/lib/libcxl.c:2395:26: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 2395 | err(ctx, "%s: failed to parse target%ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2396 | devpath_to_devname(cxldecoder_base), i); | ~ | | | size_t {aka unsigned int} ../util/log.h:36:72: note: in definition of macro 'log_cond' 36 | do_log(ctx, prio, __FILE__, __LINE__, __FUNCTION__, ## arg); \ | ^~~ ../util/log.h:57:24: note: in expansion of macro 'log_err' 57 | #define err(x, arg...) log_err(&(x)->ctx, ## arg) | ^~~~~~~ ../cxl/lib/libcxl.c:2395:17: note: in expansion of macro 'err' 2395 | err(ctx, "%s: failed to parse target%ld\n", | ^~~ ../cxl/lib/libcxl.c:2395:55: note: format string is defined here 2395 | err(ctx, "%s: failed to parse target%ld\n", | ~~^ | | | long int | %d ../cxl/lib/libcxl.c: In function 'cxl_cmd_set_input_payload': ../cxl/lib/libcxl.c:3566:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3566 | cmd->send_cmd->in.payload = (u64)cmd->input_payload; | ^ ../cxl/lib/libcxl.c:3573:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3573 | cmd->send_cmd->in.payload = (u64)buf; | ^ ../cxl/lib/libcxl.c: In function 'cxl_cmd_set_output_payload': ../cxl/lib/libcxl.c:3594:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3594 | cmd->send_cmd->out.payload = (u64)cmd->output_payload; | ^ ../cxl/lib/libcxl.c:3601:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3601 | cmd->send_cmd->out.payload = (u64)buf; | ^ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alloc_send': ../cxl/lib/libcxl.c:3628:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3628 | cmd->send_cmd->in.payload = (u64)cmd->input_payload; | ^ ../cxl/lib/libcxl.c:3635:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 3635 | cmd->send_cmd->out.payload = (u64)cmd->output_payload; | ^ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_life_used_prog_warn_threshold_valid': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3749:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3749 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3755:9: note: in expansion of macro 'cmd_alert_get_valid_alerts_field' 3755 | cmd_alert_get_valid_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_dev_over_temperature_prog_warn_threshold_valid': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3749:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3749 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3764:9: note: in expansion of macro 'cmd_alert_get_valid_alerts_field' 3764 | cmd_alert_get_valid_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_dev_under_temperature_prog_warn_threshold_valid': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3749:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3749 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3773:9: note: in expansion of macro 'cmd_alert_get_valid_alerts_field' 3773 | cmd_alert_get_valid_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_corrected_volatile_mem_err_prog_warn_threshold_valid': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3749:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3749 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3782:9: note: in expansion of macro 'cmd_alert_get_valid_alerts_field' 3782 | cmd_alert_get_valid_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_corrected_pmem_err_prog_warn_threshold_valid': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3749:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3749 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3791:9: note: in expansion of macro 'cmd_alert_get_valid_alerts_field' 3791 | cmd_alert_get_valid_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_life_used_prog_warn_threshold_writable': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3797:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3797 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3803:9: note: in expansion of macro 'cmd_alert_get_prog_alerts_field' 3803 | cmd_alert_get_prog_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_dev_over_temperature_prog_warn_threshold_writable': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3797:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3797 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3812:9: note: in expansion of macro 'cmd_alert_get_prog_alerts_field' 3812 | cmd_alert_get_prog_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_dev_under_temperature_prog_warn_threshold_writable': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3797:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3797 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3821:9: note: in expansion of macro 'cmd_alert_get_prog_alerts_field' 3821 | cmd_alert_get_prog_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_corrected_volatile_mem_err_prog_warn_threshold_writable': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3797:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3797 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3830:9: note: in expansion of macro 'cmd_alert_get_prog_alerts_field' 3830 | cmd_alert_get_prog_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_corrected_pmem_err_prog_warn_threshold_writable': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3797:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3797 | cmd_get_field_u8_mask(c, get_alert_config, GET_ALERT_CONFIG, \ | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3839:9: note: in expansion of macro 'cmd_alert_get_prog_alerts_field' 3839 | cmd_alert_get_prog_alerts_field( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_life_used_crit_alert_threshold': ../cxl/lib/libcxl.c:3703:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3703 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3847:9: note: in expansion of macro 'cmd_get_field_u8' 3847 | cmd_get_field_u8(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_life_used_prog_warn_threshold': ../cxl/lib/libcxl.c:3703:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3703 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3854:9: note: in expansion of macro 'cmd_get_field_u8' 3854 | cmd_get_field_u8(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_dev_over_temperature_crit_alert_threshold': ../cxl/lib/libcxl.c:3713:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3713 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3862:9: note: in expansion of macro 'cmd_get_field_u16' 3862 | cmd_get_field_u16(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_dev_under_temperature_crit_alert_threshold': ../cxl/lib/libcxl.c:3713:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3713 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3870:9: note: in expansion of macro 'cmd_get_field_u16' 3870 | cmd_get_field_u16(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_dev_over_temperature_prog_warn_threshold': ../cxl/lib/libcxl.c:3713:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3713 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3878:9: note: in expansion of macro 'cmd_get_field_u16' 3878 | cmd_get_field_u16(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_dev_under_temperature_prog_warn_threshold': ../cxl/lib/libcxl.c:3713:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3713 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3886:9: note: in expansion of macro 'cmd_get_field_u16' 3886 | cmd_get_field_u16(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_corrected_volatile_mem_err_prog_warn_threshold': ../cxl/lib/libcxl.c:3713:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3713 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3894:9: note: in expansion of macro 'cmd_get_field_u16' 3894 | cmd_get_field_u16(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_alert_config_get_corrected_pmem_err_prog_warn_threshold': ../cxl/lib/libcxl.c:3713:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3713 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3901:9: note: in expansion of macro 'cmd_get_field_u16' 3901 | cmd_get_field_u16(cmd, get_alert_config, GET_ALERT_CONFIG, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_maintenance_needed': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3912:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3912 | cmd_get_field_u8_mask(c, get_health_info, GET_HEALTH_INFO, health_status, m) | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3916:9: note: in expansion of macro 'cmd_health_get_status_field' 3916 | cmd_health_get_status_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_performance_degraded': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3912:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3912 | cmd_get_field_u8_mask(c, get_health_info, GET_HEALTH_INFO, health_status, m) | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3922:9: note: in expansion of macro 'cmd_health_get_status_field' 3922 | cmd_health_get_status_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_hw_replacement_needed': ../cxl/lib/libcxl.c:3735:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3735 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3912:9: note: in expansion of macro 'cmd_get_field_u8_mask' 3912 | cmd_get_field_u8_mask(c, get_health_info, GET_HEALTH_INFO, health_status, m) | ^~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c:3928:9: note: in expansion of macro 'cmd_health_get_status_field' 3928 | cmd_health_get_status_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_normal': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3945:9: note: in expansion of macro 'cmd_health_check_media_field' 3945 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_not_ready': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3951:9: note: in expansion of macro 'cmd_health_check_media_field' 3951 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_persistence_lost': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3958:9: note: in expansion of macro 'cmd_health_check_media_field' 3958 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_data_lost': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3964:9: note: in expansion of macro 'cmd_health_check_media_field' 3964 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_powerloss_persistence_loss': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3971:9: note: in expansion of macro 'cmd_health_check_media_field' 3971 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_shutdown_persistence_loss': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3978:9: note: in expansion of macro 'cmd_health_check_media_field' 3978 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_persistence_loss_imminent': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3985:9: note: in expansion of macro 'cmd_health_check_media_field' 3985 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_powerloss_data_loss': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3992:9: note: in expansion of macro 'cmd_health_check_media_field' 3992 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_shutdown_data_loss': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:3999:9: note: in expansion of macro 'cmd_health_check_media_field' 3999 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_media_data_loss_imminent': ../cxl/lib/libcxl.c:3935:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3935 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4006:9: note: in expansion of macro 'cmd_health_check_media_field' 4006 | cmd_health_check_media_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_life_used_normal': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4025:9: note: in expansion of macro 'cmd_health_check_ext_field' 4025 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_life_used_warning': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4032:9: note: in expansion of macro 'cmd_health_check_ext_field' 4032 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_life_used_critical': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4039:9: note: in expansion of macro 'cmd_health_check_ext_field' 4039 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_temperature_normal': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4046:9: note: in expansion of macro 'cmd_health_check_ext_field' 4046 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_temperature_warning': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4053:9: note: in expansion of macro 'cmd_health_check_ext_field' 4053 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_temperature_critical': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4060:9: note: in expansion of macro 'cmd_health_check_ext_field' 4060 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_corrected_volatile_normal': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4067:9: note: in expansion of macro 'cmd_health_check_ext_field' 4067 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_corrected_volatile_warning': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4074:9: note: in expansion of macro 'cmd_health_check_ext_field' 4074 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_corrected_persistent_normal': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4081:9: note: in expansion of macro 'cmd_health_check_ext_field' 4081 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_ext_corrected_persistent_warning': ../cxl/lib/libcxl.c:4013:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4013 | (struct cxl_cmd_get_health_info *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4088:9: note: in expansion of macro 'cmd_health_check_ext_field' 4088 | cmd_health_check_ext_field(cmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'health_info_get_life_used_raw': ../cxl/lib/libcxl.c:3703:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3703 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4094:9: note: in expansion of macro 'cmd_get_field_u8' 4094 | cmd_get_field_u8(cmd, get_health_info, GET_HEALTH_INFO, | ^~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'health_info_get_temperature_raw': ../cxl/lib/libcxl.c:3713:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3713 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4111:9: note: in expansion of macro 'cmd_get_field_u16' 4111 | cmd_get_field_u16(cmd, get_health_info, GET_HEALTH_INFO, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_dirty_shutdowns': ../cxl/lib/libcxl.c:3724:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3724 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4128:9: note: in expansion of macro 'cmd_get_field_u32' 4128 | cmd_get_field_u32(cmd, get_health_info, GET_HEALTH_INFO, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_volatile_errors': ../cxl/lib/libcxl.c:3724:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3724 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4134:9: note: in expansion of macro 'cmd_get_field_u32' 4134 | cmd_get_field_u32(cmd, get_health_info, GET_HEALTH_INFO, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_health_info_get_pmem_errors': ../cxl/lib/libcxl.c:3724:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3724 | (struct cxl_cmd_##n *)cmd->send_cmd->out.payload; \ | ^ ../cxl/lib/libcxl.c:4140:9: note: in expansion of macro 'cmd_get_field_u32' 4140 | cmd_get_field_u32(cmd, get_health_info, GET_HEALTH_INFO, | ^~~~~~~~~~~~~~~~~ ../cxl/lib/libcxl.c: In function 'cxl_cmd_identify_get_fw_rev': ../cxl/lib/libcxl.c:4162:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4162 | (struct cxl_cmd_identify *)cmd->send_cmd->out.payload; | ^ ../cxl/lib/libcxl.c: In function 'cxl_cmd_identify_get_label_size': ../cxl/lib/libcxl.c:4189:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4189 | (struct cxl_cmd_identify *)cmd->send_cmd->out.payload; | ^ ../cxl/lib/libcxl.c: In function 'cxl_cmd_new_read_label': ../cxl/lib/libcxl.c:4261:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4261 | get_lsa = (struct cxl_cmd_get_lsa_in *)cmd->send_cmd->in.payload; | ^ ../cxl/lib/libcxl.c: In function 'cxl_cmd_read_label_get_payload': ../cxl/lib/libcxl.c:4278:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4278 | get_lsa = (struct cxl_cmd_get_lsa_in *)cmd->send_cmd->in.payload; | ^ ../cxl/lib/libcxl.c:4282:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4282 | payload = (void *)cmd->send_cmd->out.payload; | ^ ../cxl/lib/libcxl.c: In function 'cxl_cmd_new_write_label': ../cxl/lib/libcxl.c:4524:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 4524 | set_lsa = (struct cxl_cmd_set_lsa *)cmd->send_cmd->in.payload; | ^ In file included from ../ndctl/lib/libndctl.c:19: ../ndctl/lib/libndctl.c: In function 'ndctl_cmd_vendor_get_output': ../ccan/minmax/minmax.h:30:20: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'ssize_t' {aka 'int'} [-Wsign-compare] 30 | _a < _b ? _a : _b; \ | ^ ../ndctl/lib/libndctl.c:3146:15: note: in expansion of macro 'min' 3146 | len = min(len, out_length); | ^~~ ../ccan/minmax/minmax.h:30:32: warning: operand of '?:' changes signedness from 'ssize_t' {aka 'int'} to 'unsigned int' due to unsignedness of other operand [-Wsign-compare] 30 | _a < _b ? _a : _b; \ | ^~ ../ndctl/lib/libndctl.c:3146:15: note: in expansion of macro 'min' 3146 | len = min(len, out_length); | ^~~ [222/242] Generating symbol file daxctl/lib/libdaxctl.so.1.0.6.p/libdaxctl.so.1.0.6.symbols [223/242] Linking target cxl/lib/libcxl.so.1.0.7 [224/242] Linking target ndctl/lib/libndctl.so.6.4.21 [225/242] Generating symbol file cxl/lib/libcxl.so.1.0.7.p/libcxl.so.1.0.7.symbols [226/242] Linking target cxl/cxl [227/242] Generating symbol file ndctl/lib/libndctl.so.6.4.21.p/libndctl.so.6.4.21.symbols [228/242] Linking target test/revoke_devmem [229/242] Linking target test/device-dax [230/242] Linking target test/dax-pmd [231/242] Linking target test/dax-dev [232/242] Linking target test/pmem-ns [233/242] Linking target test/list-smart-dimm [234/242] Linking target test/daxdev-errors [235/242] Linking target test/smart-listen [236/242] Linking target test/smart-notify [237/242] Linking target test/ack-shutdown-count-set [238/242] Linking target test/hugetlb [239/242] Linking target test/dsm-fail [240/242] Linking target test/libndctl [241/242] Linking target daxctl/daxctl [242/242] Linking target ndctl/ndctl INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /home/buildozer/aports/community/ndctl/src/ndctl-80/output >>> ndctl: Entering fakeroot... Installing daxctl/lib/libdaxctl.so.1.0.6 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib Installing daxctl/lib/libdaxctl.pc to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/pkgconfig Installing ndctl/lib/libndctl.so.6.4.21 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib Installing ndctl/lib/libndctl.pc to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/pkgconfig Installing cxl/lib/libcxl.so.1.0.7 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib Installing cxl/lib/libcxl.pc to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/pkgconfig Installing ndctl/ndctl to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/bin Installing daxctl/daxctl to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/bin Installing cxl/cxl to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/bin Installing Documentation/ndctl/ndctl.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-wait-scrub.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-start-scrub.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-zero-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-read-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-write-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-init-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-check-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-enable-region.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-disable-region.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-enable-dimm.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-disable-dimm.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-enable-namespace.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-disable-namespace.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-create-namespace.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-destroy-namespace.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-check-namespace.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-clear-errors.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-inject-error.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-inject-smart.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-update-firmware.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-list.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-monitor.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-setup-passphrase.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-update-passphrase.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-remove-passphrase.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-freeze-security.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-sanitize-dimm.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-load-keys.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-wait-overwrite.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-read-infoblock.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-write-infoblock.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/ndctl/ndctl-activate-firmware.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-list.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-migrate-device-model.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-reconfigure-device.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-online-memory.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-offline-memory.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-disable-device.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-enable-device.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-create-device.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/daxctl/daxctl-destroy-device.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-list.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-read-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-write-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-zero-labels.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-enable-memdev.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-disable-memdev.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-enable-port.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-disable-port.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-disable-bus.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-set-partition.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-reserve-dpa.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-free-dpa.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-create-region.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-disable-region.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-enable-region.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-destroy-region.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-monitor.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-update-firmware.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-set-alert-config.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/cxl-wait-sanitize.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man1 Installing Documentation/cxl/lib/libcxl.3 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man3 Installing Documentation/cxl/lib/cxl_new.3 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/man/man3 Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/ndctl/libndctl.h to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/include/ndctl Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/ndctl/ndctl.h to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/include/ndctl Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/daxctl/libdaxctl.h to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/include/daxctl Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/cxl/libcxl.h to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/include/cxl Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/daxctl/lib/daxctl.conf to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/daxctl Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/ndctl/monitor.conf to /home/buildozer/aports/community/ndctl/pkg/ndctl/etc/ndctl.conf.d Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/ndctl/ndctl.conf to /home/buildozer/aports/community/ndctl/pkg/ndctl/etc/ndctl.conf.d Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/ndctl/keys.readme to /home/buildozer/aports/community/ndctl/pkg/ndctl/etc/ndctl/keys Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/daxctl/daxctl.example.conf to /home/buildozer/aports/community/ndctl/pkg/ndctl/etc/daxctl.conf.d Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/contrib/ndctl to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/bash-completion/completions Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/contrib/ndctl to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/bash-completion/completions Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/contrib/ndctl to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/share/bash-completion/completions Installing /home/buildozer/aports/community/ndctl/src/ndctl-80/contrib/nvdimm-security.conf to /home/buildozer/aports/community/ndctl/pkg/ndctl/etc/modprobe.d Installing symlink pointing to libdaxctl.so.1.0.6 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/libdaxctl.so.1 Installing symlink pointing to libdaxctl.so.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/libdaxctl.so Installing symlink pointing to libndctl.so.6.4.21 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/libndctl.so.6 Installing symlink pointing to libndctl.so.6 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/libndctl.so Installing symlink pointing to libcxl.so.1.0.7 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/libcxl.so.1 Installing symlink pointing to libcxl.so.1 to /home/buildozer/aports/community/ndctl/pkg/ndctl/usr/lib/libcxl.so >>> ndctl-doc*: Running split function doc... 'usr/share/man' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-doc/usr/share/man' >>> ndctl-doc*: Preparing subpackage ndctl-doc... >>> ndctl-doc*: Running postcheck for ndctl-doc >>> ndctl-dev*: Running split function dev... 'usr/include' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-dev/usr/include' 'usr/lib/pkgconfig' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-dev/usr/lib/pkgconfig' 'usr/lib/libcxl.so' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-dev/usr/lib/libcxl.so' 'usr/lib/libdaxctl.so' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-dev/usr/lib/libdaxctl.so' 'usr/lib/libndctl.so' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-dev/usr/lib/libndctl.so' >>> ndctl-dev*: Preparing subpackage ndctl-dev... >>> ndctl-dev*: Stripping binaries >>> ndctl-dev*: Running postcheck for ndctl-dev >>> ndctl-libs*: Running split function libs... 'usr/lib/libcxl.so.1' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-libs/usr/lib/libcxl.so.1' 'usr/lib/libcxl.so.1.0.7' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-libs/usr/lib/libcxl.so.1.0.7' 'usr/lib/libdaxctl.so.1' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-libs/usr/lib/libdaxctl.so.1' 'usr/lib/libdaxctl.so.1.0.6' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-libs/usr/lib/libdaxctl.so.1.0.6' 'usr/lib/libndctl.so.6' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-libs/usr/lib/libndctl.so.6' 'usr/lib/libndctl.so.6.4.21' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-libs/usr/lib/libndctl.so.6.4.21' >>> ndctl-libs*: Preparing subpackage ndctl-libs... >>> ndctl-libs*: Stripping binaries >>> ndctl-libs*: Running postcheck for ndctl-libs >>> ndctl-bash-completion*: Running split function bashcomp... 'usr/share/bash-completion/completions' -> '/home/buildozer/aports/community/ndctl/pkg/ndctl-bash-completion/usr/share/bash-completion/completions' >>> ndctl-bash-completion*: Preparing subpackage ndctl-bash-completion... >>> ndctl-bash-completion*: Running postcheck for ndctl-bash-completion >>> ndctl*: Running postcheck for ndctl >>> ndctl*: Preparing package ndctl... >>> ndctl*: Stripping binaries >>> ndctl-bash-completion*: Scanning shared objects >>> ndctl-dev*: Scanning shared objects >>> ndctl-doc*: Scanning shared objects >>> ndctl-libs*: Scanning shared objects >>> ndctl*: Scanning shared objects >>> ndctl-bash-completion*: Tracing dependencies... >>> ndctl-bash-completion*: Package size: 44.5 KB >>> ndctl-bash-completion*: Compressing data... >>> ndctl-bash-completion*: Create checksum... >>> ndctl-bash-completion*: Create ndctl-bash-completion-80-r0.apk >>> ndctl-dev*: Tracing dependencies... ndctl-libs=80-r0 pkgconfig >>> ndctl-dev*: Package size: 74.2 KB >>> ndctl-dev*: Compressing data... >>> ndctl-dev*: Create checksum... >>> ndctl-dev*: Create ndctl-dev-80-r0.apk >>> ndctl-doc*: Tracing dependencies... >>> ndctl-doc*: Package size: 133.4 KB >>> ndctl-doc*: Compressing data... >>> ndctl-doc*: Create checksum... >>> ndctl-doc*: Create ndctl-doc-80-r0.apk >>> ndctl-libs*: Tracing dependencies... so:libc.musl-armv7.so.1 so:libkmod.so.2 so:libudev.so.1 so:libuuid.so.1 >>> ndctl-libs*: Package size: 189.0 KB >>> ndctl-libs*: Compressing data... >>> ndctl-libs*: Create checksum... >>> ndctl-libs*: Create ndctl-libs-80-r0.apk >>> ndctl*: Tracing dependencies... kmod so:libc.musl-armv7.so.1 so:libcxl.so.1 so:libdaxctl.so.1 so:libiniparser.so.1 so:libjson-c.so.5 so:libkeyutils.so.1 so:libndctl.so.6 so:libtraceevent.so.1 so:libtracefs.so.1 so:libuuid.so.1 >>> ndctl*: Package size: 280.9 KB >>> ndctl*: Compressing data... >>> ndctl*: Create checksum... >>> ndctl*: Create ndctl-80-r0.apk >>> ndctl: Build complete at Wed, 30 Oct 2024 04:35:41 +0000 elapsed time 0h 0m 10s >>> ndctl: Cleaning up srcdir >>> ndctl: Cleaning up pkgdir >>> ndctl: Uninstalling dependencies... (1/86) Purging .makedepends-ndctl (20241030.043531) (2/86) Purging kmod (33-r2) (3/86) Purging asciidoc-pyc (10.2.1-r0) (4/86) Purging asciidoc (10.2.1-r0) (5/86) Purging docbook-xsl (1.79.2-r9) Executing docbook-xsl-1.79.2-r9.pre-deinstall (6/86) Purging libxslt (1.1.42-r1) (7/86) Purging docbook-xml (4.5-r9) Executing docbook-xml-4.5-r9.pre-deinstall (8/86) Purging libxml2-utils (2.13.4-r2) (9/86) Purging asciidoctor (2.0.23-r0) (10/86) Purging ruby (3.3.3-r2) (11/86) Purging ca-certificates (20240705-r0) Executing ca-certificates-20240705-r0.post-deinstall (12/86) Purging bash-completion-dev (2.14.0-r0) (13/86) Purging eudev-dev (3.2.14-r5) (14/86) Purging eudev-libs (3.2.14-r5) (15/86) Purging iniparser-dev (4.2.1-r0) (16/86) Purging iniparser (4.2.1-r0) (17/86) Purging json-c-dev (0.18-r0) (18/86) Purging json-c (0.18-r0) (19/86) Purging keyutils-dev (1.6.3-r4) (20/86) Purging keyutils-libs (1.6.3-r4) (21/86) Purging kmod-dev (33-r2) (22/86) Purging kmod-libs (33-r2) (23/86) Purging libtracefs-dev (1.8.1-r1) (24/86) Purging libtracefs (1.8.1-r1) (25/86) Purging meson-pyc (1.6.0-r0) (26/86) Purging meson (1.6.0-r0) (27/86) Purging samurai (1.2-r6) (28/86) Purging python3-pyc (3.12.7-r1) (29/86) Purging python3-pycache-pyc0 (3.12.7-r1) (30/86) Purging pyc (3.12.7-r1) (31/86) Purging python3 (3.12.7-r1) (32/86) Purging util-linux-dev (2.40.2-r3) (33/86) Purging agetty-openrc (0.55.1-r2) (34/86) Purging agetty (2.40.2-r3) (35/86) Purging blkid (2.40.2-r3) (36/86) Purging cfdisk (2.40.2-r3) (37/86) Purging dmesg (2.40.2-r3) (38/86) Purging findmnt (2.40.2-r3) (39/86) Purging flock (2.40.2-r3) (40/86) Purging fstrim (2.40.2-r3) (41/86) Purging gdbm (1.24-r0) (42/86) Purging hexdump (2.40.2-r3) (43/86) Purging libbz2 (1.0.8-r6) (44/86) Purging libgcrypt (1.10.3-r1) (45/86) Purging libgpg-error (1.50-r0) (46/86) Purging libpanelw (6.5_p20241006-r1) (47/86) Purging libtraceevent-dev (1.8.4-r0) (48/86) Purging linux-headers (6.6-r1) (49/86) Purging libtraceevent (1.8.4-r0) (50/86) Purging libucontext (1.3.2-r0) (51/86) Purging libxml2 (2.13.4-r2) (52/86) Purging logger (2.40.2-r3) (53/86) Purging losetup (2.40.2-r3) (54/86) Purging lsblk (2.40.2-r3) (55/86) Purging lscpu (2.40.2-r3) (56/86) Purging mcookie (2.40.2-r3) (57/86) Purging mount (2.40.2-r3) (58/86) Purging mpdecimal (4.0.0-r0) (59/86) Purging partx (2.40.2-r3) (60/86) Purging ruby-libs (3.3.3-r2) (61/86) Purging runuser (2.40.2-r3) (62/86) Purging setpriv (2.40.2-r3) (63/86) Purging sfdisk (2.40.2-r3) (64/86) Purging sqlite-dev (3.47.0-r0) (65/86) Purging sqlite (3.47.0-r0) (66/86) Purging umount (2.40.2-r3) (67/86) Purging util-linux-misc (2.40.2-r3) (68/86) Purging setarch (2.40.2-r3) (69/86) Purging util-linux-openrc (2.40.2-r3) (70/86) Purging uuidgen (2.40.2-r3) (71/86) Purging wipefs (2.40.2-r3) (72/86) Purging xz-libs (5.6.3-r0) (73/86) Purging yaml (0.2.5-r2) (74/86) Purging libfdisk (2.40.2-r3) (75/86) Purging libmount (2.40.2-r3) (76/86) Purging libblkid (2.40.2-r3) (77/86) Purging libcap-ng (0.8.5-r0) (78/86) Purging libeconf (0.6.3-r0) (79/86) Purging libffi (3.4.6-r0) (80/86) Purging libsmartcols (2.40.2-r3) (81/86) Purging libuuid (2.40.2-r3) (82/86) Purging linux-pam (1.6.1-r1) (83/86) Purging utmps-libs (0.1.2.3-r2) (84/86) Purging skalibs-libs (2.14.3.0-r0) (85/86) Purging util-linux (2.40.2-r3) (86/86) Purging sqlite-libs (3.47.0-r0) Executing busybox-1.37.0-r3.trigger OK: 271 MiB in 101 packages >>> ndctl: Updating the community/armv7 repository index... >>> ndctl: Signing the index...