Re: [PATCH v11 3/8] iommu: Add iommu_copy_struct_from_user_array helper

From: Nicolin Chen
Date: Thu Jan 11 2024 - 11:56:11 EST


On Wed, Jan 10, 2024 at 08:10:10PM -0800, Yi Liu wrote:

> +#define iommu_copy_struct_from_user_array(kdst, user_array, data_type, \
> + index, min_last) \
> + __iommu_copy_struct_from_user_array(kdst, user_array, data_type, \
> + index, sizeof(*kdst), \
> + offsetofend(typeof(*kdst), \
> + min_last))

There is an extra space before '\' at the 2nd line, making it:

390 #define iommu_copy_struct_from_user_array(kdst, user_array, data_type, \
391 index, min_last) \
392 __iommu_copy_struct_from_user_array(kdst, user_array, data_type, \
393 index, sizeof(*kdst), \
394 offsetofend(typeof(*kdst), \
395 min_last))