drivers/iommu/dma-iommu.c:1776:2-3: Unneeded semicolon

From: kernel test robot
Date: Sun Apr 06 2025 - 08:21:18 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f4d2ef48250ad057e4f00087967b5ff366da9f39
commit: 6aa63a4ec947f350d1a2f9f6aba8591a2455d192 iommu: Sort out domain user data
date: 12 days ago
config: arm64-randconfig-r053-20250406 (https://download.01.org/0day-ci/archive/20250406/202504062027.LGAqKFlO-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504062027.LGAqKFlO-lkp@xxxxxxxxx/

cocci warnings: (new ones prefixed by >>)
>> drivers/iommu/dma-iommu.c:1776:2-3: Unneeded semicolon
drivers/iommu/dma-iommu.c:1788:2-3: Unneeded semicolon

vim +1776 drivers/iommu/dma-iommu.c

1766
1767 static size_t cookie_msi_granule(const struct iommu_domain *domain)
1768 {
1769 switch (domain->cookie_type) {
1770 case IOMMU_COOKIE_DMA_IOVA:
1771 return domain->iova_cookie->iovad.granule;
1772 case IOMMU_COOKIE_DMA_MSI:
1773 return PAGE_SIZE;
1774 default:
1775 unreachable();
> 1776 };
1777 }
1778

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki