Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp71024ybk; Fri, 8 May 2020 18:59:24 -0700 (PDT) X-Google-Smtp-Source: APiQypKiiT5jNhe5gAHTCl44p3ZfOvGFvGMGjed/+k7xVw5DHc5IZktW3NUQTXCiOI66OR6b2GYG X-Received: by 2002:a17:906:6944:: with SMTP id c4mr4442938ejs.96.1588989564010; Fri, 08 May 2020 18:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588989564; cv=none; d=google.com; s=arc-20160816; b=vw530xGDHhe1CFea/N6LXrsECYW0MA+kfe1i231EAAgZ3wjxL+2i5PCH5X+dKhyCfg X+/8gcPET309fRDOdQSeWBDQ0igW8YUAn53o3q2/V2hAKRAQPhxXCCEAZsQI/9iArVju Bjz65f+8g9E/EBl2qpOBghkmJ03o85UTy11DmT3TOr9YoybNWlrPB5D+1H4R6s6bX3/w /cdKnOAXMHR7KXOAecMt73dfdZvL7UJRQRfKHFh4rnKsVtaefpu/OaLX/2dsLXa88t52 r/3HeEqnMbWmmGKUa0ZTKx3Axqxu8AQmY99YEXa2L/fnTNuZ29RhclZqvYhrMV1z1ymJ uHXQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=O6aNrpLgarISzda+xo8JJ01KVr07p8YFJB55nCgXOUg=; b=IGopcnL+bzQN5citkYM58YW+F9PGDI++7w2aVldSFr4UHRUG4dcTvOmppkGl7nMD6k yyGSzExg7qsFi5MufLYS4PSJGvDznmYlKxF39lIgOf5EVWeJRTO/9VWP1ZY5pEWi6YjU y+7TG5N2V7yXTrhhWa7PpgqXfO+P2r+4Qm9MQguGKdW9Xkv93MfAAPRxnsYhtjPHtuuJ Rk2roAAm7TY0kJ69FNrj6r/Q7gBqgghMowCLUQkgPPulwLUBiaz9K9Lq3g4PeEgpF4Wy sLttXlSrxCA/ltWdX+JIWhP5spSVIqmGb11Ey6Bq3++ZoLTd91LOI73zSXDQ3EPx7aZy K8RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b="M/H3SK/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si1843572edq.609.2020.05.08.18.59.00; Fri, 08 May 2020 18:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b="M/H3SK/Q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728567AbgEIB4y (ORCPT + 99 others); Fri, 8 May 2020 21:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbgEIB4x (ORCPT ); Fri, 8 May 2020 21:56:53 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD66FC061A0C for ; Fri, 8 May 2020 18:56:52 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id f13so3313755qkh.2 for ; Fri, 08 May 2020 18:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O6aNrpLgarISzda+xo8JJ01KVr07p8YFJB55nCgXOUg=; b=M/H3SK/QI764fDKa50a73fqtS9IfCk2173bwOb54DjMcvfCK4GJaMddC2pZSoiOCr5 gaVYd+CZW+bvd014XbtNGcPkHvUesahxWTXu83v9h8GQy9pD7YA+/VtygJNkLVwKwu2W 3mH1DQX5JNaz5btdocptRtiPjjLnfIWUF29feDg5W391AbWPx6kh3APuZ1gJXdD+Cpp8 60jvnS+n3jEEDx01NHqBIAFIQCUwdTsCN2KddgcruNvZARMc1lQfjDuZG2Z3IsZZfrCO DLNLqufNpnhd6fsZx81smmmtpWa8+Kj1A9YLe17udKkeIM31Uwizpwzf6S9dqGNmBQsW UO8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=O6aNrpLgarISzda+xo8JJ01KVr07p8YFJB55nCgXOUg=; b=oGIr9JXbG8g07xpFoozpaKTiOOPzR6l8aQFIoVaH+3cJzJYwL9OdCwy4aK2nzbV+gJ I4SYx6EE9DtlqKNu7RSfeURNRWZYUo5I6UfQDWOZb8H9NEXGiWgKdxSMEF1WQC76M/Wu gO0zjm8wb0V854uWdOM4SSWHL7Nizi5KtVjoku71PmjtZvZ84V0gAwcA0WRzc6vjQtKl XxFT7pymMFTjdrSvbPUt/4gbUSy55dnNestxyTDZg9b+eHZc9+vRwwymCW0RTcG/3Mh1 J7Gs3yMjbmFWa0O3fwKQxS9Bx2j8sXRuBzb9xeIsGjAeo7yHo9L5j7RnprU2THmM/WuE eK1A== X-Gm-Message-State: AGi0PuYlVI0Cnq+aWnBHWg7vo2rzXjt83AfMfVjixfmCsao5pb23ATgo 6/Ad36vge6v7446vDnx64YVyqg== X-Received: by 2002:a37:7ac2:: with SMTP id v185mr5419583qkc.386.1588989412051; Fri, 08 May 2020 18:56:52 -0700 (PDT) Received: from ovpn-66-195.rdu2.redhat.com (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id p22sm3079186qte.2.2020.05.08.18.56.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 May 2020 18:56:51 -0700 (PDT) From: Qian Cai To: joro@8bytes.org Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH -next] iommu/amd: fix variable "iommu" set but not used Date: Fri, 8 May 2020 21:56:45 -0400 Message-Id: <20200509015645.3236-1-cai@lca.pw> X-Mailer: git-send-email 2.21.0 (Apple Git-122.2) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The commit dce8d6964ebd ("iommu/amd: Convert to probe/release_device() call-backs") introduced an unused variable, drivers/iommu/amd_iommu.c: In function 'amd_iommu_uninit_device': drivers/iommu/amd_iommu.c:422:20: warning: variable 'iommu' set but not used [-Wunused-but-set-variable] struct amd_iommu *iommu; ^~~~~ Signed-off-by: Qian Cai --- drivers/iommu/amd_iommu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index fef3689ee535..2b8eb58d2bea 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -419,15 +419,12 @@ static void iommu_ignore_device(struct device *dev) static void amd_iommu_uninit_device(struct device *dev) { struct iommu_dev_data *dev_data; - struct amd_iommu *iommu; int devid; devid = get_device_id(dev); if (devid < 0) return; - iommu = amd_iommu_rlookup_table[devid]; - dev_data = search_dev_data(devid); if (!dev_data) return; -- 2.21.0 (Apple Git-122.2)