> +#include <linux/dma-noncoherent.h> This header must not be included in drivers.
> > + if (dev_is_dma_coherent(vop_dev(vdev))) And this API must not be used in drivers either. > + vdev->vvr[i].vrh.vring.used = > + (void __force *)vpdev->hw_ops->remap( And you must not use __force casts without a comment explanation why they are safe.