Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp276609imm; Wed, 29 Aug 2018 21:14:05 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda082Ev1Hu8L1QZuo5i1JrrMcp5Z6QU6R2vYHz1Abk2J4k4kw+x2xiJzWXm/88fuCj7Qjxv X-Received: by 2002:a63:9248:: with SMTP id s8-v6mr8019881pgn.141.1535602445525; Wed, 29 Aug 2018 21:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535602445; cv=none; d=google.com; s=arc-20160816; b=COChbE5pts7W4Ktq43x3ZtGpxqV2kfD+Jnm9CcklH4bnjWO44+c6Tc+Kk3M79a+6tW mLjtvn3O4cMFUOdX9mUMEQd7T7fs4l9722z+xuCUZmafX2iUW+fUoXbL7S9Rd0jRglZE Krpozn5xa5h3LSj44PuIHHnnqbGb9eb3m5UTiMVqrUlviI6HIdjCUfue/Clfc9cGPw7T LoRnO/u8vC9ckzZqneaR1DJsXSsa0rkKXYP4tY7i9fXntxHe4tJdKhPSVg1RLkxxtNIF /eLvavTjgUVlop5HJrazNkZWPNUTQ3eyQeUyX/BoIzLtjwl9MmXk1xqSWjZdQxM8MBxU KvbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=t2INYj7H1oFw1lpQBbsNoICuOdMaHfehq1s67LLBLNE=; b=ID9uXcLE6JfvKm+jKMrbjMx1qWi29F2PHPzSHcRFAJHyALDa2fyLsit9wKWC+ua2mw gSTtak5utrgw2EHIf2Gbv8XTYocxFdXuBUwoZodOFwUi1xXSEP27nvhUEf8yJ7LTIcIt nBZIKnqbl+WBBPHMegV2myi6TatyzNvuCRQqztiD/89/rFKOkQiIB+Yj1qwrvW+JOksj DIaZdM6qcAhZAcw8d6rru0ZF0t48qwFYHot7gHScMGTqQEskZ52Zu+37WfCIKh2GJaZx /t8NkXXu7I5+EOkxbBBAmyIkytvG3hE1shK/SRmDCf32ciURoBtgGZvUQZ/YZNhv0YIP 2a0w== 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 y10-v6si5683185pgf.312.2018.08.29.21.13.50; Wed, 29 Aug 2018 21:14:05 -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 S1727874AbeH3IMM (ORCPT + 99 others); Thu, 30 Aug 2018 04:12:12 -0400 Received: from mga12.intel.com ([192.55.52.136]:20569 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727852AbeH3IML (ORCPT ); Thu, 30 Aug 2018 04:12:11 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2018 21:10:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,306,1531810800"; d="scan'208";a="68959952" Received: from allen-box.sh.intel.com ([10.239.161.122]) by orsmga007.jf.intel.com with ESMTP; 29 Aug 2018 21:10:51 -0700 From: Lu Baolu To: Joerg Roedel , David Woodhouse , Alex Williamson , Kirti Wankhede Cc: 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, Lu Baolu Subject: [RFC PATCH v2 03/10] iommu/amd: Add default branch in amd_iommu_capable() Date: Thu, 30 Aug 2018 12:09:15 +0800 Message-Id: <20180830040922.30426-4-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830040922.30426-1-baolu.lu@linux.intel.com> References: <20180830040922.30426-1-baolu.lu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.17.1