From: Lu Baolu Date: Mon, 8 Oct 2018 02:24:19 +0000 (+0800) Subject: iommu/amd: Add default branch in amd_iommu_capable() X-Git-Tag: v5.4-rc1~2358^2^6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e84b7cc457f99ff5d034914e78e1c329df89ebee;p=platform%2Fkernel%2Flinux-rpi.git 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: Lu Baolu Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 73e47d9..e27f5ee 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -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;