From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH 1/1] iommu/amd: Add default branch in amd_iommu_capable() Date: Mon, 8 Oct 2018 16:46:59 +0200 Message-ID: <20181008144659.uqt6mofdstn6ydhc@8bytes.org> References: <20181008022419.31865-1-baolu.lu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20181008022419.31865-1-baolu.lu-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Lu Baolu Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Mon, Oct 08, 2018 at 10:24:19AM +0800, Lu Baolu wrote: > 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 > --- > drivers/iommu/amd_iommu.c | 2 ++ > 1 file changed, 2 insertions(+) Applied, thanks.