..
/usr/src/usr.sbin/bhyve/pci_nvme.c:903:22:892:23: error: taking address of packed member of ''status' of class or struct ure 'nvme_compleompletion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
tion' may result in an unaligned pointer value [-Werror=address-of-packed-member pci_nvme_status_tc(&compl->status, NVME_SCT_COMMAND_SPECIFIC,
] ^~~~~~~~~~~~~
903 | pci_nvme_status_tc(&compl->status, NVME_SCT_COMMAND_SPECIFIC,/usr/src/usr.sbin/bhyve/pci_nvme.c:899:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
| ^~~~~~~~~~~~~~ pci_nvme_status_genc(&compl->status, NVME_SC_SUCCESS);
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:915:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:930:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:939:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:946:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:960:25: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_genc(&compl->status, NVME_SC_SUCCESS);
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:972:25: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_genc(&compl->status, NVME_SC_INVALID_FIELD);
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:989:23: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status, NVME_SCT_COMMAND_SPECIFIC,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:997:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1004:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_genc(&compl->status, NVME_SC_SUCCESS);
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1021:25: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_genc(&compl->status, NVME_SC_INVALID_FIELD);
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1029:23: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1039:23: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1052:23: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1062:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_genc(&compl->status, NVME_SC_SUCCESS);
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1077:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_genc(&compl->status, NVME_SC_SUCCESS);
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1120:23: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_tc(&compl->status, NVME_SCT_COMMAND_SPECIFIC,
^~~~~~~~~~~~~
/usr/src/usr.sbin/bhyve/pci_nvme.c:1293:24: error: taking address of packed member 'status' of class or structure 'nvme_completion' may result in an unaligned pointer value [-Werror,-Waddress-of-packed-member]
pci_nvme_status_genc(&compl->status, NVME_SC_INVALID_FIELD);
^~~~~~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
pci_passthru.c:286:5: error: converting a packed 'struct msixcap' pointer (align
ment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in
an unaligned pointer value [-Werror=address-of-packed-member]
286 | msixcap_ptr = (uint32_t*) &msixcap;
| ^~~~~~~~~~~
In file included from pci_passthru.c:65:
pci_emul.h:174:8: note: defined here
174 | struct msixcap {
| ^~~~~~~
cc1: all warnings being treated as errors
pci_xhci.c: In function 'pci_xhci_portregs_read':
pci_xhci.c:2160:6: error: taking address of packed member of 'struct pci_xhci_po
rtregs' may result in an unaligned pointer value [-Werror=address-of-packed-memb
er]
2160 | p = &sc->portregs[port].portsc;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors