Commit 474d9f32 authored by GuokaiXu's avatar GuokaiXu Committed by Jason Gunthorpe

iommufd: Fix spelling errors in comments

requres -> requires
dramtically -> dramatically

Link: https://lore.kernel.org/r/31680D47D9533D91+20230904023236.GA12494@xgk8823Signed-off-by: default avatarGuokaiXu <xuguokai@ucas.com.cn>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent ce9ecca0
...@@ -1729,7 +1729,7 @@ TEST_F(vfio_compat_mock_domain, map) ...@@ -1729,7 +1729,7 @@ TEST_F(vfio_compat_mock_domain, map)
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd)); ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
ASSERT_EQ(BUFFER_SIZE, unmap_cmd.size); ASSERT_EQ(BUFFER_SIZE, unmap_cmd.size);
/* UNMAP_FLAG_ALL requres 0 iova/size */ /* UNMAP_FLAG_ALL requires 0 iova/size */
ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd)); ASSERT_EQ(0, ioctl(self->fd, VFIO_IOMMU_MAP_DMA, &map_cmd));
unmap_cmd.flags = VFIO_DMA_UNMAP_FLAG_ALL; unmap_cmd.flags = VFIO_DMA_UNMAP_FLAG_ALL;
EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd)); EXPECT_ERRNO(EINVAL, ioctl(self->fd, VFIO_IOMMU_UNMAP_DMA, &unmap_cmd));
......
...@@ -105,7 +105,7 @@ static bool fail_nth_next(struct __test_metadata *_metadata, ...@@ -105,7 +105,7 @@ static bool fail_nth_next(struct __test_metadata *_metadata,
/* /*
* This is just an arbitrary limit based on the current kernel * This is just an arbitrary limit based on the current kernel
* situation. Changes in the kernel can dramtically change the number of * situation. Changes in the kernel can dramatically change the number of
* required fault injection sites, so if this hits it doesn't * required fault injection sites, so if this hits it doesn't
* necessarily mean a test failure, just that the limit has to be made * necessarily mean a test failure, just that the limit has to be made
* bigger. * bigger.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment