diff options
| author | Josh Poimboeuf <[email protected]> | 2025-03-27 05:28:46 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2025-03-28 13:07:23 +0000 |
| commit | 3a2ffd3f3e1b6df4ed7b35f98565c1ad0fe54840 (patch) | |
| tree | 7953ce3256858ee1ed6e23d4540094939d188a9d /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | iommufd: Balance veventq->num_events inc/dec (diff) | |
| download | kernel-3a2ffd3f3e1b6df4ed7b35f98565c1ad0fe54840.tar.gz kernel-3a2ffd3f3e1b6df4ed7b35f98565c1ad0fe54840.zip | |
iommu: Convert unreachable() to BUG()
Bare unreachable() should be avoided as it generates undefined behavior,
e.g. falling through to the next function. Use BUG() instead so the
error is defined.
Fixes the following warnings:
drivers/iommu/dma-iommu.o: warning: objtool: iommu_dma_sw_msi+0x92: can't find jump dest instruction at .text+0x54d5
vmlinux.o: warning: objtool: iommu_dma_get_msi_page() falls through to next function __iommu_dma_unmap()
Link: https://patch.msgid.link/r/0c801ae017ec078cacd39f8f0898fc7780535f85.1743053325.git.jpoimboe@kernel.org
Reported-by: Randy Dunlap <[email protected]>
Closes: https://lore.kernel.org/[email protected]
Reported-by: Paul E. McKenney <[email protected]>
Closes: https://lore.kernel.org/5dd1f35e-8ece-43b7-ad6d-86d02d2718f6@paulmck-laptop
Fixes: 6aa63a4ec947 ("iommu: Sort out domain user data")
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
