? 2021/9/22 ??8:46, Wu Zongyong ??:> +
> +#ifdef __LITTLE_ENDIAN
I think disable the device via Kconfig is better than letting user to
meet errors like this.
(Or if the device is always using little endian, we don't even need to
bother this).
Thanks
> +static int eni_vdpa_probe(struct pci_dev *pdev, const struct pci_device_id
*id)
> +{
> + struct device *dev = &pdev->dev;
> + struct eni_vdpa *eni_vdpa;
> + struct virtio_pci_legacy_device *ldev;
> + int ret, i;
> +
> + ret = pcim_enable_device(pdev);
> + if (ret)
> + return ret;
> +