Merge tag 'vfio-v4.1-rc1' of git://github.com/awilliam/linux-vfio
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / include / linux / vfio.h
index cbed15f194e013a275d087235d88932d93376bcb..ddb44097538245f17e882efff635143ada49e089 100644 (file)
@@ -80,19 +80,6 @@ extern int vfio_register_iommu_driver(const struct vfio_iommu_driver_ops *ops);
 extern void vfio_unregister_iommu_driver(
                                const struct vfio_iommu_driver_ops *ops);
 
-/**
- * offsetofend(TYPE, MEMBER)
- *
- * @TYPE: The type of the structure
- * @MEMBER: The member within the structure to get the end offset of
- *
- * Simple helper macro for dealing with variable sized structures passed
- * from user space.  This allows us to easily determine if the provided
- * structure is sized to include various fields.
- */
-#define offsetofend(TYPE, MEMBER) \
-       (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER))
-
 /*
  * External user API
  */