Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp36882imm; Wed, 5 Sep 2018 18:02:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYShgvGBsXbEY9inlWiE3yXos7OM8uSXXpkArf1XWJymdpoA45aVAowkqkWISrfJOjlPv3H X-Received: by 2002:a63:a40a:: with SMTP id c10-v6mr348305pgf.346.1536195777821; Wed, 05 Sep 2018 18:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536195777; cv=none; d=google.com; s=arc-20160816; b=pblsQxAFGvrai3urFawN9qZoDpqTVfSB9eF/5YsvIWUEcjdExSDGEC122XtRUToFbi LkuiBCBAPpIIBe0HoVgxH+5FexjCNv0cisSC6q+5kT3NBY/YlUta/wow52lWtSqr4ZU8 ZKxbfZdONz52KoMOf2nUIq+HpoBvAE7ylhXVQBYO1Erruwe5WxKrwSyd14N25o06as7A yD0+lee9VvjtEuACka8IPyLMxwOUL5FDgArqx/Rcu7Cj/Ue8ViGD4qQzPCAy4b1Xz1H7 Fhsx9AfSu8r1Z+Mnc7Rbt32WyeZSU3J7CH8knJ04vnVyaMvJ6thNJ0Aa2ypBiuSxmMUs CM1A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc; bh=OsufiawkAZXjf7GMvAd5FwPe5l/500woaia1vNPL78Y=; b=Tf9IIVJ+i2QFOxvg0sObifu4oIeZHVh5KULyyjJYayEir2YYQDi/dKE+C3d+HkAYej ST339tKBshCrosmZNFzesxw9LhDal/Nhm/4BUgjVrbO0WYosW0vt7LCLhPWyoWBjXJ0a i5/l79CATjv0hkv5YvUyqFzRPjJBaXWz50uSF4Rdzj7nzcB7duOtxPrfZiQo7aoR3FZO WJQHYRxUlpLV37Ot+CCrVWFqTQhVFc6TE5ntotfWEQysNFWV6ZLbpU+BAg+F3sSnrhms wqk22kMn8YtaWDRQMl7tU13Dulv+aLDUwTSQUacC36O7jDAmkCyUFakKEzSkZL0Mo8bG VFJg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si3778353pgw.135.2018.09.05.18.01.55; Wed, 05 Sep 2018 18:02:57 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbeIFF3d (ORCPT + 99 others); Thu, 6 Sep 2018 01:29:33 -0400 Received: from mga09.intel.com ([134.134.136.24]:24937 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbeIFF3d (ORCPT ); Thu, 6 Sep 2018 01:29:33 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2018 17:56:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,334,1531810800"; d="scan'208";a="68722788" Received: from allen-box.sh.intel.com (HELO [10.239.161.122]) ([10.239.161.122]) by fmsmga008.fm.intel.com with ESMTP; 05 Sep 2018 17:56:43 -0700 Cc: baolu.lu@linux.intel.com, 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() To: Alex Williamson References: <20180830040922.30426-1-baolu.lu@linux.intel.com> <20180830040922.30426-4-baolu.lu@linux.intel.com> <20180905133703.331c0c17@t450s.home> From: Lu Baolu Message-ID: Date: Thu, 6 Sep 2018 08:55:39 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180905133703.331c0c17@t450s.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 09/06/2018 03:37 AM, Alex Williamson wrote: > 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, Sure. Best regards, Lu Baolu