Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e84b7cc4 authored by Lu Baolu's avatar Lu Baolu Committed by Joerg Roedel
Browse files

iommu/amd: Add default branch in amd_iommu_capable()



Recent gcc warns about switching on an enumeration, but not having
an explicit case statement for all members of the enumeration. To
show the compiler this is intentional, we simply add a default case
with nothing more than a break statement.

Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 24d2c521
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3083,6 +3083,8 @@ static bool amd_iommu_capable(enum iommu_cap cap)
		return (irq_remapping_enabled == 1);
	case IOMMU_CAP_NOEXEC:
		return false;
	default:
		break;
	}

	return false;