>   In function '_test_cmd_get_hw_info',
>       inlined from 'iommufd_ioas_get_hw_info' at iommufd.c:614:3,
>       inlined from 'wrapper_iommufd_ioas_get_hw_info' at iommufd.c:589:1:
>   iommufd_utils.h:683:37: warning: array subscript 'struct 
> iommu_test_hw_info[0]'
>   is partly outside array bounds of 'struct 
> iommu_test_hw_info_buffer_smaller[1]'
>   [-Warray-bounds=]

?? My tree doesn't have anything like
iommu_test_hw_info_buffer_smaller ? And all these line numbers don't
match mine.

How are you triggering the warning? The struct memory is properly
sized to do this:

>     683 |                         assert(!info->flags);

I prefer not to have the #pragma things, I don't think there should be
a reason for them here.

-- 
Jason

Reply via email to