Open CV-Bowen opened 1 month ago
@arnopo Hi, I meet a CI issue:
#define virtio_read_config_member(vdev, structname, member, _ptr) \
virtio_read_config((vdev), metal_offset_of(structname, member), \
_ptr, sizeof(*(_ptr)))
This code reports MACRO_ARG_REUSE: Macro argument reuse '_ptr' - possible side-effects?
So can we use typeof
to avoid this issue?
@glneo @arnopo Please review again.
And assgin feature to vdev->feature for virtio device role when get features, so the virtio device side can use virtio_has_featrue() to check weather the virtio device support a feature.