From: "Roedel, Joerg" <Joerg.Roedel@amd.com>
To: "Gustavo F. Padovan" <padovan@profusion.mobi>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
"maintainer:X86 ARCHITECTURE..." <x86@kernel.org>,
"open list:AMD IOMMU (AMD-VI)" <iommu@lists.linux-foundation.org>
Subject: Re: [PATCH 3/8] x86: Kill set but not used warning
Date: Mon, 23 May 2011 12:17:01 +0200 [thread overview]
Message-ID: <20110523101701.GB27867@amd.com> (raw)
In-Reply-To: <1305918786-7239-3-git-send-email-padovan@profusion.mobi>
On Fri, May 20, 2011 at 03:13:00PM -0400, Gustavo F. Padovan wrote:
> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Please provide a short and meaningful commit-msg.
> ---
> arch/x86/kernel/amd_iommu.c | 5 +----
> 1 files changed, 1 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c
> index 873e7e1..cd8cbeb5 100644
> --- a/arch/x86/kernel/amd_iommu.c
> +++ b/arch/x86/kernel/amd_iommu.c
> @@ -1538,13 +1538,11 @@ static void do_detach(struct device *dev)
> {
> struct iommu_dev_data *dev_data;
> struct amd_iommu *iommu;
> - struct pci_dev *pdev;
> u16 devid;
>
> devid = get_device_id(dev);
> iommu = amd_iommu_rlookup_table[devid];
> dev_data = get_dev_data(dev);
> - pdev = to_pci_dev(dev);
>
> /* decrease reference counters */
> dev_data->domain->dev_iommu[iommu->index] -= 1;
This is already gone upstream.
> @@ -1703,10 +1701,9 @@ static struct protection_domain *domain_for_device(struct device *dev)
> struct protection_domain *dom;
> struct iommu_dev_data *dev_data, *alias_data;
> unsigned long flags;
> - u16 devid, alias;
> + u16 devid;
>
> devid = get_device_id(dev);
> - alias = amd_iommu_alias_table[devid];
> dev_data = get_dev_data(dev);
> alias_data = get_dev_data(dev_data->alias);
> if (!alias_data)
This is still there. Can you please rebase this patch against
linus/master and send again?
Thanks,
Joerg
next prev parent reply other threads:[~2011-05-23 10:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-20 19:12 [PATCH 1/8] mm: Kill set but not used var in bdi_debug_stats_show() Gustavo F. Padovan
2011-05-20 19:12 ` Gustavo F. Padovan
2011-05-20 19:12 ` [PATCH 2/8] x86: Fix set but not used in ghash_async_setkey() Gustavo F. Padovan
2011-05-20 19:12 ` Gustavo F. Padovan
2011-05-20 19:13 ` [PATCH 3/8] x86: Kill set but not used warning Gustavo F. Padovan
2011-05-20 19:13 ` [PATCH 4/8] x86: Kill set but not used warnings in tlb_uv.c Gustavo F. Padovan
2011-05-20 19:13 ` [PATCH 5/8] x86: Kill set but not used warning in test_NX() Gustavo F. Padovan
2011-05-20 19:13 ` [PATCH 6/8] x86: Kill set but not used warnings in pf_in.c Gustavo F. Padovan
2011-05-20 19:13 ` [PATCH 7/8] 9p: Kill set but not used warnings Gustavo F. Padovan
2011-05-20 19:13 ` [PATCH 8/8] apparmor: Kill set but no used warning in common_mmap() Gustavo F. Padovan
2011-05-21 17:21 ` [tip:x86/urgent] x86: Eliminate various 'set but not used' warnings tip-bot for Gustavo F. Padovan
2011-05-23 10:17 ` Roedel, Joerg [this message]
2011-05-23 10:18 ` [PATCH 3/8] x86: Kill set but not used warning Ingo Molnar
2011-05-26 3:29 ` [PATCH 2/8] x86: Fix set but not used in ghash_async_setkey() Herbert Xu
2011-05-26 3:29 ` Herbert Xu
2011-05-20 19:23 ` [PATCH 1/8] mm: Kill set but not used var in bdi_debug_stats_show() Jens Axboe
2011-05-20 19:23 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110523101701.GB27867@amd.com \
--to=joerg.roedel@amd.com \
--cc=hpa@zytor.com \
--cc=iommu@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=padovan@profusion.mobi \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.