mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zhangshaokun <zhangshaokun@hisilicon.com>
To: <hpa@zytor.com>, <linux-kernel@vger.kernel.org>, <cai@lca.pw>,
	<luto@kernel.org>, <tglx@linutronix.de>, <mingo@kernel.org>,
	<linux-tip-commits@vger.kernel.org>, Borislav Petkov <bp@suse.de>
Subject: Re: [tip:x86/urgent] x86/mm: Remove unused variable 'cpu'
Date: Thu, 7 Mar 2019 08:56:29 +0800	[thread overview]
Message-ID: <5ec9d97d-f225-e9be-58dc-fed582d8e45d@hisilicon.com> (raw)
In-Reply-To: <tip-3609e31bc8dc03b701390f79c74fc7fe92b95039@git.kernel.org>

A little confused,
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/cleanups&id=691b9ab6c9676e5868a4787be9041dd990005311

On 2019/3/7 6:33, tip-bot for Qian Cai wrote:
> Commit-ID:  3609e31bc8dc03b701390f79c74fc7fe92b95039
> Gitweb:     https://git.kernel.org/tip/3609e31bc8dc03b701390f79c74fc7fe92b95039
> Author:     Qian Cai <cai@lca.pw>
> AuthorDate: Thu, 28 Feb 2019 17:01:55 -0500
> Committer:  Thomas Gleixner <tglx@linutronix.de>
> CommitDate: Wed, 6 Mar 2019 23:24:52 +0100
> 
> x86/mm: Remove unused variable 'cpu'
> 
> The commit a2055abe9c67 ("x86/mm: Pass flush_tlb_info to
> flush_tlb_others() etc") removed the unnecessary cpu parameter from
> uv_flush_tlb_others() but left an unused variable.
> 
> arch/x86/mm/tlb.c: In function 'native_flush_tlb_others':
> arch/x86/mm/tlb.c:688:16: warning: variable 'cpu' set but not used
> [-Wunused-but-set-variable]
>    unsigned int cpu;
>                 ^~~
> 
> Fixes: a2055abe9c67 ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc")
> Signed-off-by: Qian Cai <cai@lca.pw>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Acked-by: Andyt Lutomirski <luto@kernel.org>
> Cc: dave.hansen@linux.intel.com
> Cc: peterz@infradead.org
> Cc: bp@alien8.de
> Cc: hpa@zytor.com
> Link: https://lkml.kernel.org/r/20190228220155.88124-1-cai@lca.pw
> 
> ---
>  arch/x86/mm/tlb.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
> index 999d6d8f0bef..bc4bc7b2f075 100644
> --- a/arch/x86/mm/tlb.c
> +++ b/arch/x86/mm/tlb.c
> @@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,
>  		 * that UV should be updated so that smp_call_function_many(),
>  		 * etc, are optimal on UV.
>  		 */
> -		unsigned int cpu;
> -
> -		cpu = smp_processor_id();
>  		cpumask = uv_flush_tlb_others(cpumask, info);
>  		if (cpumask)
>  			smp_call_function_many(cpumask, flush_tlb_func_remote,
> 
> .
> 


      reply	other threads:[~2019-03-07  0:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-28 22:01 [PATCH] x86/mm: fix "cpu" set but not used Qian Cai
2019-02-28 23:43 ` Andy Lutomirski
2019-03-06 22:33 ` [tip:x86/urgent] x86/mm: Remove unused variable 'cpu' tip-bot for Qian Cai
2019-03-07  0:56   ` Zhangshaokun [this message]

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=5ec9d97d-f225-e9be-58dc-fed582d8e45d@hisilicon.com \
    --to=zhangshaokun@hisilicon.com \
    --cc=bp@suse.de \
    --cc=cai@lca.pw \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®