From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21591C31E5B for ; Tue, 18 Jun 2019 15:32:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F32DE20673 for ; Tue, 18 Jun 2019 15:32:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729602AbfFRPc0 (ORCPT ); Tue, 18 Jun 2019 11:32:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:49260 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729189AbfFRPc0 (ORCPT ); Tue, 18 Jun 2019 11:32:26 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6A46EAF79; Tue, 18 Jun 2019 15:32:25 +0000 (UTC) Date: Tue, 18 Jun 2019 17:32:24 +0200 From: Joerg Roedel To: Qian Cai Cc: baolu.lu@linux.intel.com, dwmw2@infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] iommu/intel: silence a variable set but not used Message-ID: <20190618153223.GQ8151@suse.de> References: <1559570719-16285-1-git-send-email-cai@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1559570719-16285-1-git-send-email-cai@lca.pw> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 03, 2019 at 10:05:19AM -0400, Qian Cai wrote: > The commit "iommu/vt-d: Probe DMA-capable ACPI name space devices" > introduced a compilation warning due to the "iommu" variable in > for_each_active_iommu() but never used the for each element, i.e, > "drhd->iommu". > > drivers/iommu/intel-iommu.c: In function 'probe_acpi_namespace_devices': > drivers/iommu/intel-iommu.c:4639:22: warning: variable 'iommu' set but > not used [-Wunused-but-set-variable] > struct intel_iommu *iommu; > > Silence the warning the same way as in the commit d3ed71e5cc50 > ("drivers/iommu/intel-iommu.c: fix variable 'iommu' set but not used") > > Signed-off-by: Qian Cai > --- > drivers/iommu/intel-iommu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied, thanks.