../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/metadata.c:1982:20: note: in expansion of macro 'RD_RS' 1982 | !(rd = RD_RS(rs_failed))) | ^~~~~ ../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/metadata.c:1994:17: note: in expansion of macro 'list_for_each_entry' 1994 | list_for_each_entry(tmp_spare_rs, &group_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/metadata.c:1994:17: note: in expansion of macro 'list_for_each_entry' 1994 | list_for_each_entry(tmp_spare_rs, &group_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/metadata.c:1996:33: note: in expansion of macro 'list_for_each_entry' 1996 | list_for_each_entry(spare_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:69:22: note: in expansion of macro 'list_entry' 69 | entry = list_entry(entry->member.next, typeof(*entry), member)) | ^~~~~~~~~~ metadata/metadata.c:1996:33: note: in expansion of macro 'list_for_each_entry' 1996 | list_for_each_entry(spare_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/metadata.c:2020:17: note: in expansion of macro 'list_for_each_entry' 2020 | list_for_each_entry(group_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/metadata.c:2020:17: note: in expansion of macro 'list_for_each_entry' 2020 | list_for_each_entry(group_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/metadata.c:2023:33: note: in expansion of macro 'list_for_each_entry' 2023 | list_for_each_entry(tmp_spare_rs, | ^~~~~~~~~~~~~~~~~~~ ../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/metadata.c:2023:33: note: in expansion of macro 'list_for_each_entry' 2023 | list_for_each_entry(tmp_spare_rs, | ^~~~~~~~~~~~~~~~~~~ ../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/metadata.c:2027:49: note: in expansion of macro 'list_for_each_entry' 2027 | list_for_each_entry(spare_rd, &tmp_spare_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/metadata.c:2027:49: note: in expansion of macro 'list_for_each_entry' 2027 | list_for_each_entry(spare_rd, &tmp_spare_rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ metadata/metadata.c: In function 'dso_get_members': ../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/metadata.c:2167:17: note: in expansion of macro 'list_for_each_entry' 2167 | list_for_each_entry(rd, &sub_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/metadata.c:2167:17: note: in expansion of macro 'list_for_each_entry' 2167 | list_for_each_entry(rd, &sub_rs->devs, devs) { | ^~~~~~~~~~~~~~~~~~~ metadata/metadata.c: At top level: metadata/metadata.c:1463:1: warning: 'rebuild_config_raidset' defined but not used [-Wunused-function] 1463 | rebuild_config_raidset(struct lib_context *lc, struct raid_set *rs) | ^~~~~~~~~~~~~~~~~~~~~~ metadata/metadata.c:765:1: warning: 'discover_raid_devices_spares' defined but not used [-Wunused-function] 765 | discover_raid_devices_spares(struct lib_context *lc, const char *format) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o device/scsi.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 device/scsi.c device/scsi.c: In function 'old_inquiry': device/scsi.c:69:27: warning: cast increases required alignment of target type [-Wcast-align] 69 | unsigned int *i = (unsigned int *) response; | ^ /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o misc/workaround.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 misc/workaround.c /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o display/display.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 display/display.c In file included from ../include/dmraid/lib_context.h:14, from ./internal.h:26, from display/display.c:8: display/display.c: In function 'log_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))) | ^ display/display.c:94:31: note: in expansion of macro 'list_entry' 94 | struct dev_info *di = list_entry(pos, typeof(*di), list); | ^~~~~~~~~~ display/display.c: In function 'log_rd_native': ../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))) | ^ display/display.c:132:31: note: in expansion of macro 'list_entry' 132 | struct raid_dev *rd = list_entry(pos, typeof(*rd), list); | ^~~~~~~~~~ display/display.c: In function 'log_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))) | ^ display/display.c:147:31: note: in expansion of macro 'list_entry' 147 | struct raid_dev *rd = list_entry(pos, typeof(*rd), list); | ^~~~~~~~~~ display/display.c: In function 'log_rs': ../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); \ | ^~~~~~~~~~ display/display.c:314:17: note: in expansion of macro 'list_for_each_entry' 314 | 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)) | ^~~~~~~~~~ display/display.c:314:17: note: in expansion of macro 'list_for_each_entry' 314 | list_for_each_entry(rd, &rs->devs, devs) | ^~~~~~~~~~~~~~~~~~~ display/display.c: In function 'group_active': ../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); \ | ^~~~~~~~~~ display/display.c:324:9: note: in expansion of macro 'list_for_each_entry' 324 | 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)) | ^~~~~~~~~~ display/display.c:324:9: note: in expansion of macro 'list_for_each_entry' 324 | list_for_each_entry(r, &rs->sets, list) { | ^~~~~~~~~~~~~~~~~~~ display/display.c: In function 'display_set': ../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); \ | ^~~~~~~~~~ display/display.c:362:17: note: in expansion of macro 'list_for_each_entry' 362 | 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)) | ^~~~~~~~~~ display/display.c:362:17: note: in expansion of macro 'list_for_each_entry' 362 | list_for_each_entry(r, &rs->sets, list) | ^~~~~~~~~~~~~~~~~~~ display/display.c: In function '_list_formats': ../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); \ | ^~~~~~~~~~ display/display.c:376:9: note: in expansion of macro 'list_for_each_entry' 376 | list_for_each_entry(fmt_list, LC_FMT(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)) | ^~~~~~~~~~ display/display.c:376:9: note: in expansion of macro 'list_for_each_entry' 376 | list_for_each_entry(fmt_list, LC_FMT(lc), list) { | ^~~~~~~~~~~~~~~~~~~ /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o format/ataraid/pdc.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 format/ataraid/pdc.c format/ataraid/pdc.c: In function 'checksum': format/ataraid/pdc.c:108:23: warning: cast increases required alignment of target type [-Wcast-align] 108 | uint32_t *p = (uint32_t *) pdc; | ^ format/ataraid/pdc.c:108:9: warning: converting a packed 'struct pdc' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 108 | uint32_t *p = (uint32_t *) pdc; | ^~~~~~~~ In file included from format/ataraid/pdc.c:18: format/ataraid/pdc.h:27:8: note: defined here 27 | struct pdc { | ^~~ In file included from ./internal.h:36, from format/ataraid/pdc.c:16: format/ataraid/pdc.c: In function 'dev_sort': ../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: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)) | ^~~~~~~~~~ format/ataraid/pdc.c:282:21: note: in expansion of macro 'RD' 282 | return META(RD(new), pdc)->raid.disk_number < | ^~ ../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: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)) | ^~~~~~~~~~ format/ataraid/pdc.c:283:21: note: in expansion of macro 'RD' 283 | META(RD(pos), pdc)->raid.disk_number; | ^~ format/ataraid/pdc.c: In function 'set_sort': ../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: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/pdc.c:290:33: note: in expansion of macro 'RD_RS' 290 | return !set_number(META(RD_RS(RS(new)), pdc)); | ^~~~~ ../include/dmraid/format.h:268:26: note: in expansion of macro 'list_entry' 268 | #define RS(pos) (list_entry(pos, struct raid_set, list)) | ^~~~~~~~~~ format/ataraid/pdc.c:290:39: note: in expansion of macro 'RS' 290 | return !set_number(META(RD_RS(RS(new)), pdc)); | ^~ ../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: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/pdc.c:290:33: note: in expansion of macro 'RD_RS' 290 | return !set_number(META(RD_RS(RS(new)), pdc)); | ^~~~~ format/ataraid/pdc.c: In function '_pdc_log': format/ataraid/pdc.c:590:21: warning: taking address of packed member of 'struct pdc' may result in an unaligned pointer value [-Waddress-of-packed-member] 590 | for (disk = pdc->raid.disk, i = 0; | ^~~ /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o misc/file.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 misc/file.c /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o format/ataraid/nv.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 format/ataraid/nv.c In file included from ./internal.h:36, from format/ataraid/nv.c:14: format/ataraid/nv.c: In function 'dev_sort': ../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: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)) | ^~~~~~~~~~ format/ataraid/nv.c:133:21: note: in expansion of macro 'RD' 133 | return META(RD(new), nv)->unitNumber < | ^~ ../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: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)) | ^~~~~~~~~~ format/ataraid/nv.c:134:21: note: in expansion of macro 'RD' 134 | META(RD(pos), nv)->unitNumber; | ^~ format/ataraid/nv.c: In function 'set_sort': ../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: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/nv.c:141:30: note: in expansion of macro 'RD_RS' 141 | return _subset((META(RD_RS(RS(new)), nv))) < | ^~~~~ ../include/dmraid/format.h:268:26: note: in expansion of macro 'list_entry' 268 | #define RS(pos) (list_entry(pos, struct raid_set, list)) | ^~~~~~~~~~ format/ataraid/nv.c:141:36: note: in expansion of macro 'RS' 141 | return _subset((META(RD_RS(RS(new)), nv))) < | ^~ ../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: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/nv.c:141:30: note: in expansion of macro 'RD_RS' 141 | return _subset((META(RD_RS(RS(new)), nv))) < | ^~~~~ ../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: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/nv.c:142:30: note: in expansion of macro 'RD_RS' 142 | _subset((META(RD_RS(RS(pos)), nv))); | ^~~~~ ../include/dmraid/format.h:268:26: note: in expansion of macro 'list_entry' 268 | #define RS(pos) (list_entry(pos, struct raid_set, list)) | ^~~~~~~~~~ format/ataraid/nv.c:142:36: note: in expansion of macro 'RS' 142 | _subset((META(RD_RS(RS(pos)), nv))); | ^~ ../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: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/nv.c:142:30: note: in expansion of macro 'RD_RS' 142 | _subset((META(RD_RS(RS(pos)), nv))); | ^~~~~ format/ataraid/nv.c: In function 'checksum': format/ataraid/nv.c:194:25: warning: cast increases required alignment of target type [-Wcast-align] 194 | sum += ((uint32_t *) nv)[s]; | ^ /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o locking/locking.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 locking/locking.c /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-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 '_snprintf_either': events/libdmraid-events-isw.c:793:35: warning: the comparison will always evaluate as 'true' for the address of 'name' will never be NULL [-Waddress] 793 | dev->name ? dev->name : "", | ^ events/libdmraid-events-isw.c:118:14: note: 'name' declared here 118 | char name[DEV_NAME]; /* sda, sdb, etc... */ | ^~~~ events/libdmraid-events-isw.c: In function '_set_raid_dev_properties': events/libdmraid-events-isw.c:617:46: warning: '%s' directive writing up to 255 bytes into a region of size 233 [-Wformat-overflow=] 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 233 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:46: warning: '%s' directive writing up to 255 bytes into a region of size 233 [-Wformat-overflow=] 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 233 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); | ^~ In function '_get_slave_devices', inlined from '_create_raid_set.constprop' at events/libdmraid-events-isw.c:992:8: 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: In function '_create_raid_set.constprop': 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); | ^ In function '_get_slave_devices', inlined from '_create_raid_set.constprop' at events/libdmraid-events-isw.c:992:8: 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: In function '_create_raid_set.constprop': 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); | ^~ In function '_check_raid_dev_active', inlined from '_get_slave_devices' at events/libdmraid-events-isw.c:908:3, inlined from '_create_raid_set.constprop' at events/libdmraid-events-isw.c:992:8: 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:157:20: note: returned from 'popen' 157 | FILE *fd = popen("which sgpio", "r"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-buildroot-linux-gnu-gcc -o device/ata.o -c -I. -I../include -I../lib -include ../include/config.h -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 device/ata.c device/ata.c: In function 'get_ata_serial': device/ata.c:30:37: warning: cast increases required alignment of target type [-Wcast-align] 30 | ata_ident = (struct ata_identify *) &buf[cmd_offset]; | ^ /home/autobuild/autobuild/instance-14/output-1/host/bin/mipsel-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-14/output-1/host/lib/gcc/mipsel-buildroot-linux-gnu/12.2.0/../../../../mipsel-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-14/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-14/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-14/output-1/build/dmraid-1.0.0.rc16-3/.stamp_built] Error 2 shuffle=0 make: Leaving directory '/home/autobuild/autobuild/instance-14/buildroot'