59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/format.h:266:62: note: in definition of macro 'META' 266 | #define META(rd, type) ((struct type*) ((struct raid_dev*) (rd))->meta_areas->area) | ^~ ../include/dmraid/format.h:267:26: note: in expansion of macro 'list_entry' 267 | #define RD(pos) (list_entry(pos, struct raid_dev, devs)) | ^~~~~~~~~~ ../include/dmraid/format.h:269:26: note: in expansion of macro 'RD' 269 | #define RD_RS(rs) (RD((((struct raid_set*) (rs))->devs.next))) | ^~ format/ataraid/lsi.c:111:58: note: in expansion of macro 'RD_RS' 111 | struct lsi *p = META(RD_RS(pos), lsi), *n = META(RD_RS(new), lsi); | ^~~~~ /home/autobuild/autobuild/instance-13/output-1/per-package/dmraid/host/bin/mips64-buildroot-linux-gnu-gcc -o metadata/reconfig.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 metadata/reconfig.c In file included from ../include/dmraid/lib_context.h:14, from ./internal.h:26, from metadata/reconfig.c:19: metadata/reconfig.c: In function 'dso_end_rebuild': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/format.h:267:26: note: in expansion of macro 'list_entry' 267 | #define RD(pos) (list_entry(pos, struct raid_dev, devs)) | ^~~~~~~~~~ ../include/dmraid/format.h:269:26: note: in expansion of macro 'RD' 269 | #define RD_RS(rs) (RD((((struct raid_set*) (rs))->devs.next))) | ^~ metadata/reconfig.c:53:53: note: in expansion of macro 'RD_RS' 53 | struct raid_dev *check_rd = RD_RS(sub_rs); | ^~~~~ metadata/reconfig.c: In function 'show_raid_stack': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:95:9: note: in expansion of macro 'list_for_each_entry' 95 | list_for_each_entry(_rs, LC_RS(lc), list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:95:9: note: in expansion of macro 'list_for_each_entry' 95 | list_for_each_entry(_rs, LC_RS(lc), list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:101:17: note: in expansion of macro 'list_for_each_entry' 101 | list_for_each_entry(_rd, &_rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:101:17: note: in expansion of macro 'list_for_each_entry' 101 | list_for_each_entry(_rd, &_rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:106:17: note: in expansion of macro 'list_for_each_entry' 106 | list_for_each_entry(_rss, &_rs->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:106:17: note: in expansion of macro 'list_for_each_entry' 106 | list_for_each_entry(_rss, &_rs->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:112:25: note: in expansion of macro 'list_for_each_entry' 112 | list_for_each_entry(_rsd, &_rss->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:112:25: note: in expansion of macro 'list_for_each_entry' 112 | list_for_each_entry(_rsd, &_rss->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:118:25: note: in expansion of macro 'list_for_each_entry' 118 | list_for_each_entry(_rsss, &_rss->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:118:25: note: in expansion of macro 'list_for_each_entry' 118 | list_for_each_entry(_rsss, &_rss->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:122:33: note: in expansion of macro 'list_for_each_entry' 122 | list_for_each_entry(_rssd, &_rsss->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:122:33: note: in expansion of macro 'list_for_each_entry' 122 | list_for_each_entry(_rssd, &_rsss->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ metadata/reconfig.c: In function 'add_dev_to_raid': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ metadata/reconfig.c:145:20: note: in expansion of macro 'list_entry' 145 | check_rd = list_entry(rs->devs.next, typeof(*rd), devs); | ^~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:154:33: note: in expansion of macro 'list_for_each_entry' 154 | list_for_each_entry(tmp, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:154:33: note: in expansion of macro 'list_for_each_entry' 154 | list_for_each_entry(tmp, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:81:20: note: in expansion of macro 'list_entry' 81 | for (pos = list_entry((head)->next, typeof(*pos), member),\ | ^~~~~~~~~~ metadata/reconfig.c:182:25: note: in expansion of macro 'list_for_each_entry_safe' 182 | list_for_each_entry_safe(before_rd, tmp_rd, | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:82:18: note: in expansion of macro 'list_entry' 82 | n = list_entry(pos->member.next, typeof(*pos), member); \ | ^~~~~~~~~~ metadata/reconfig.c:182:25: note: in expansion of macro 'list_for_each_entry_safe' 182 | list_for_each_entry_safe(before_rd, tmp_rd, | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:84:14: note: in expansion of macro 'list_entry' 84 | pos = n, n = list_entry(pos->member.next, typeof(*pos), member)) | ^~~~~~~~~~ metadata/reconfig.c:182:25: note: in expansion of macro 'list_for_each_entry_safe' 182 | list_for_each_entry_safe(before_rd, tmp_rd, | ^~~~~~~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:207:17: note: in expansion of macro 'list_for_each_entry' 207 | list_for_each_entry(crs, &sub_rs->sets, list) | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:207:17: note: in expansion of macro 'list_for_each_entry' 207 | list_for_each_entry(crs, &sub_rs->sets, list) | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:216:17: note: in expansion of macro 'list_for_each_entry' 216 | list_for_each_entry(crs, &sub_rs->sets, list) | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:216:17: note: in expansion of macro 'list_for_each_entry' 216 | list_for_each_entry(crs, &sub_rs->sets, list) | ^~~~~~~~~~~~~~~~~~~ metadata/reconfig.c: In function 'check_busy_disk': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:283:9: note: in expansion of macro 'list_for_each_entry' 283 | list_for_each_entry(rd, LC_RD(lc), list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:283:9: note: in expansion of macro 'list_for_each_entry' 283 | list_for_each_entry(rd, LC_RD(lc), list) { | ^~~~~~~~~~~~~~~~~~~ metadata/reconfig.c: In function 'del_dev_in_raid1': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:396:9: note: in expansion of macro 'list_for_each_entry' 396 | list_for_each_entry(tmp, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:396:9: note: in expansion of macro 'list_for_each_entry' 396 | list_for_each_entry(tmp, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:415:9: note: in expansion of macro 'list_for_each_entry' 415 | list_for_each_entry(tmp, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:415:9: note: in expansion of macro 'list_for_each_entry' 415 | list_for_each_entry(tmp, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ metadata/reconfig.c: In function 'handle_dev': metadata/reconfig.c:460:29: warning: comparison between 'enum change_type' and 'enum type' [-Wenum-compare] 460 | if (h->type == rs->type) | ^~ metadata/reconfig.c:462:30: warning: comparison between 'enum change_type' and 'enum type' [-Wenum-compare] 462 | } while ((++h)->type != t_undef); | ^~ In file included from ../include/dmraid/lib_context.h:14, from ./internal.h:26, from metadata/reconfig.c:19: metadata/reconfig.c: In function 'find_group': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:521:9: note: in expansion of macro 'list_for_each_entry' 521 | list_for_each_entry(tmp, LC_RS(lc), list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:521:9: note: in expansion of macro 'list_for_each_entry' 521 | list_for_each_entry(tmp, LC_RS(lc), list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:523:25: note: in expansion of macro 'list_for_each_entry' 523 | list_for_each_entry(r, &tmp->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:523:25: note: in expansion of macro 'list_for_each_entry' 523 | list_for_each_entry(r, &tmp->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:527:41: note: in expansion of macro 'list_for_each_entry' 527 | list_for_each_entry(r2, &r->sets, | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:527:41: note: in expansion of macro 'list_for_each_entry' 527 | list_for_each_entry(r2, &r->sets, | ^~~~~~~~~~~~~~~~~~~ metadata/reconfig.c: In function '_rebuild_raidset': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/format.h:267:26: note: in expansion of macro 'list_entry' 267 | #define RD(pos) (list_entry(pos, struct raid_dev, devs)) | ^~~~~~~~~~ ../include/dmraid/format.h:269:26: note: in expansion of macro 'RD' 269 | #define RD_RS(rs) (RD((((struct raid_set*) (rs))->devs.next))) | ^~ metadata/reconfig.c:575:45: note: in expansion of macro 'RD_RS' 575 | struct raid_dev *check_rd = RD_RS(sub_rs); | ^~~~~ metadata/reconfig.c: In function 'check_allow_rebuild': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ metadata/reconfig.c:641:31: note: in expansion of macro 'list_entry' 641 | struct raid_dev *rd = list_entry(rs->devs.next, typeof(*rd), devs); | ^~~~~~~~~~ metadata/reconfig.c: In function 'rebuild_raidset': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:687:25: note: in expansion of macro 'list_for_each_entry' 687 | list_for_each_entry(rs, &sub_rs->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:687:25: note: in expansion of macro 'list_for_each_entry' 687 | list_for_each_entry(rs, &sub_rs->sets, list) { | ^~~~~~~~~~~~~~~~~~~ metadata/reconfig.c: In function 'write_set_spare': ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:713:9: note: in expansion of macro 'list_for_each_entry' 713 | list_for_each_entry(r, &rs->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:713:9: note: in expansion of macro 'list_for_each_entry' 713 | list_for_each_entry(r, &rs->sets, list) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:67:22: note: in expansion of macro 'list_entry' 67 | for (entry = list_entry((head)->next, typeof(*entry), member); \ | ^~~~~~~~~~ metadata/reconfig.c:725:17: note: in expansion of macro 'list_for_each_entry' 725 | list_for_each_entry(rd, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ ../include/dmraid/list.h:59:10: warning: cast increases required alignment of target type [-Wcast-align] 59 | ((type*) ((char*)pos - (unsigned long)(&((type*)0)->member))) | ^ ../include/dmraid/list.h:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/reconfig.c:725:17: note: in expansion of macro 'list_for_each_entry' 725 | list_for_each_entry(rd, &rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ metadata/reconfig.c: In function 'add_dev_to_raid': metadata/reconfig.c:249:25: warning: 'strncat' specified bound 3 equals source length [-Wstringop-overflow=] 249 | strncat(lib_name, ".so", 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ rm -f libdmraid.a ar r libdmraid.a activate/activate.o activate/devmapper.o device/ata.o device/partition.o device/scan.o device/scsi.o display/display.o format/format.o locking/locking.o log/log.o metadata/log_ops.o metadata/metadata.o metadata/reconfig.o misc/file.o misc/init.o misc/lib_context.o misc/misc.o misc/workaround.o mm/dbg_malloc.o format/ataraid/asr.o format/ataraid/hpt37x.o format/ataraid/hpt45x.o format/ataraid/isw.o format/ataraid/jm.o format/ataraid/lsi.o format/ataraid/nv.o format/ataraid/pdc.o format/ataraid/sil.o format/ataraid/via.o format/ddf/ddf1.o format/ddf/ddf1_lib.o format/ddf/ddf1_crc.o format/ddf/ddf1_cvt.o format/ddf/ddf1_dump.o format/partition/dos.o register/dmreg.o ar: creating libdmraid.a /home/autobuild/autobuild/instance-13/output-1/per-package/dmraid/host/bin/mips64-buildroot-linux-gnu-gcc-ranlib libdmraid.a /home/autobuild/autobuild/instance-13/output-1/per-package/dmraid/host/bin/mips64-buildroot-linux-gnu-gcc -o events/libdmraid-events-isw.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 events/libdmraid-events-isw.c events/libdmraid-events-isw.c: In function '_set_raid_dev_properties': events/libdmraid-events-isw.c:617:48: warning: '%s' directive writing 13 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 94 | static const char *sys_scsi_dev_blk = "/device/block"; | ~~~~~~~~~~~~~~~ ...... 617 | sprintf(path + len, "%s%s%c%s", d_name, | ^~ events/libdmraid-events-isw.c:617:25: note: 'sprintf' output 15 or more bytes (assuming 270) into a destination of size 256 617 | sprintf(path + len, "%s%s%c%s", d_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 618 | sys_scsi_dev_blk, | ~~~~~~~~~~~~~~~~~ 619 | sys_scsi_dev_blk_delims[j], dev_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ events/libdmraid-events-isw.c:617:48: warning: '%s' directive writing 13 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 94 | static const char *sys_scsi_dev_blk = "/device/block"; | ~~~~~~~~~~~~~~~ ...... 617 | sprintf(path + len, "%s%s%c%s", d_name, | ^~ events/libdmraid-events-isw.c:617:25: note: 'sprintf' output 15 or more bytes (assuming 270) into a destination of size 256 617 | sprintf(path + len, "%s%s%c%s", d_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 618 | sys_scsi_dev_blk, | ~~~~~~~~~~~~~~~~~ 619 | sys_scsi_dev_blk_delims[j], dev_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ events/libdmraid-events-isw.c: In function '_create_raid_set.constprop': events/libdmraid-events-isw.c:891:26: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] 891 | sprintf(path, "%s%s%s", sys_block_path, dev_name, sys_slaves_dir); | ^~ events/libdmraid-events-isw.c:891:9: note: 'sprintf' output between 19 and 274 bytes into a destination of size 256 891 | sprintf(path, "%s%s%s", sys_block_path, dev_name, sys_slaves_dir); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ events/libdmraid-events-isw.c:900:41: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 900 | sprintf(path + len, "/%s", d_name); | ^ events/libdmraid-events-isw.c:900:17: note: 'sprintf' output between 2 and 257 bytes into a destination of size 256 900 | sprintf(path + len, "/%s", d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ events/libdmraid-events-isw.c:408:26: warning: '%s' directive writing up to 255 bytes into a region of size 245 [-Wformat-overflow=] 408 | sprintf(path, "%s%s", sys_block_path, dev_name); | ^~ events/libdmraid-events-isw.c:408:9: note: 'sprintf' output between 12 and 267 bytes into a destination of size 256 408 | sprintf(path, "%s%s", sys_block_path, dev_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function '_check_sgpio', inlined from 'register_device' at events/libdmraid-events-isw.c:1513:2: events/libdmraid-events-isw.c:165:17: warning: 'fclose' called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc] 165 | fclose(fd); | ^~~~~~~~~~ events/libdmraid-events-isw.c: In function 'register_device': events/libdmraid-events-isw.c:157:20: note: returned from 'popen' 157 | FILE *fd = popen("which sgpio", "r"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/autobuild/autobuild/instance-13/output-1/per-package/dmraid/host/bin/mips64-buildroot-linux-gnu-gcc -o libdmraid-events-isw.so -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 events/libdmraid-events-isw.o \ -shared -Wl,--discard-all -Wl,--no-undefined -Wl,-soname,libdmraid-events-isw.so \ libdmraid.so -ldevmapper-event -ldevmapper -lpthread /home/autobuild/autobuild/instance-13/output-1/per-package/dmraid/host/bin/../lib/gcc/mips64-buildroot-linux-gnu/11.3.0/../../../../mips64-buildroot-linux-gnu/bin/ld: cannot find libdmraid.so: No such file or directory collect2: error: ld returned 1 exit status make[2]: *** [Makefile:83: libdmraid-events-isw.so] Error 1 shuffle=0 make[2]: Leaving directory '/home/autobuild/autobuild/instance-13/output-1/build/dmraid-1.0.0.rc16-3/1.0.0.rc16-3/dmraid/lib' make[1]: *** [make.tmpl:120: lib] Error 2 shuffle=0 make[1]: Leaving directory '/home/autobuild/autobuild/instance-13/output-1/build/dmraid-1.0.0.rc16-3/1.0.0.rc16-3/dmraid' make: *** [package/pkg-generic.mk:293: /home/autobuild/autobuild/instance-13/output-1/build/dmraid-1.0.0.rc16-3/.stamp_built] Error 2 shuffle=0 make: Leaving directory '/home/autobuild/autobuild/instance-13/buildroot'