Received: by 2002:ac0:adb2:0:0:0:0:0 with SMTP id o47-v6csp11320imb; Wed, 5 Sep 2018 12:39:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbtbdCKaGBEpQg/cU1vshU+qJX9JHZybb0BgI78rnFyKQlBoRH1lIjqY6sGWbVW5WH2B74U X-Received: by 2002:a63:9a42:: with SMTP id e2-v6mr39059561pgo.263.1536176357528; Wed, 05 Sep 2018 12:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176357; cv=none; d=google.com; s=arc-20160816; b=hvaMkXkuS9ZI2ML/qX2i10JQyIz4jVV69ULaFB+SgJ367MzsRVE3NI76gPpabmFEOK F4ax2UnViwGcWYEfyElgSBe2FNJc0b+2GeRTTs4L1RNkeqTspnH0kOtySSIDXnaKixvT rHS3xQK336Pe5B5uziG5VXo6jGWRVfGon2Yop2ZVMXfMpyuUyqZJJbAhG/hGpbSF1qxW K6DausbizcV8KwssFSqHNr5y2JgG1xVseSRYIfPEEl5FitWfrG2TA9yBOEbdjUqUvo7o oBK83fXBABm3fLkhOXoa0m3DPY2jhV1SxWeU2RzK05w+vUteYupYx8GfG4Jo4CoOsyDO PCMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=F4IjbHWmXymr8xZCQvXo06e6tVE+DtE+zJu+nJtPtMQ=; b=FJMBvYPEg+HRcbey/cXmPokwnrK18fFohMRRGE83J7+8v4EICuEvSlssOakROHizZz HrRhHIvRMsp7ySbOYdKUlz5uIxwCnUgDr8chIiLSQ81YduQn86jJr4oKokqGDI3lu+yU 9eyZACtV3NIoITFKbX1fsRI/3J1nDfp5v+Sf1Timv/vljh5BAao1w1nWzC8TS93IgdiQ yziALtdBe3drW2fhIyYfokcsSFYPG29CquAe++c1Or1eUU+bkKYDQ9VmOjutpnecyFvn rHR5mXjFYqtsee2Q8116rHdh7YTVkkBf7whS7tD5ctuUWt8cXkJGaShiWRNB+TPEvDUE pyXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay12-v6si2610412plb.336.2018.09.05.12.39.01; Wed, 05 Sep 2018 12:39:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727853AbeIFAIq (ORCPT + 99 others); Wed, 5 Sep 2018 20:08:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37700 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbeIFAIq (ORCPT ); Wed, 5 Sep 2018 20:08:46 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C5403086258; Wed, 5 Sep 2018 19:37:09 +0000 (UTC) Received: from t450s.home (ovpn-116-77.phx2.redhat.com [10.3.116.77]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D15C600C5; Wed, 5 Sep 2018 19:37:04 +0000 (UTC) Date: Wed, 5 Sep 2018 13:37:03 -0600 From: Alex Williamson To: Lu Baolu Cc: Joerg Roedel , David Woodhouse , Kirti Wankhede , ashok.raj@intel.com, sanjay.k.kumar@intel.com, jacob.jun.pan@intel.com, kevin.tian@intel.com, Jean-Philippe Brucker , yi.l.liu@intel.com, yi.y.sun@intel.com, peterx@redhat.com, tiwei.bie@intel.com, iommu@lists.linux-foundation.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 03/10] iommu/amd: Add default branch in amd_iommu_capable() Message-ID: <20180905133703.331c0c17@t450s.home> In-Reply-To: <20180830040922.30426-4-baolu.lu@linux.intel.com> References: <20180830040922.30426-1-baolu.lu@linux.intel.com> <20180830040922.30426-4-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Wed, 05 Sep 2018 19:37:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Aug 2018 12:09:15 +0800 Lu Baolu wrote: > Otherwise, there will be a build warning: > > drivers/iommu/amd_iommu.c:3083:2: warning: enumeration value > 'IOMMU_CAP_AUX_DOMAIN' not handled in switch [-Wswitch] > > There is no functional change. > > Signed-off-by: Lu Baolu > --- > drivers/iommu/amd_iommu.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c > index 4e04fff23977..237ae6db4cfd 100644 > --- a/drivers/iommu/amd_iommu.c > +++ b/drivers/iommu/amd_iommu.c > @@ -3077,6 +3077,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; Seems like a bug fix that doesn't need to be part of this RFC, send it separately. Thanks, Alex