public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jürgen Groß" <jgross@suse.com>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
	Ingo Molnar <mingo@redhat.com>,
	David Vrabel <david.vrabel@citrix.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	xen-devel@lists.xenproject.org,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [Xen-devel] [PATCH] x86: xen: mmu: Remove unused function
Date: Mon, 12 Jan 2015 09:23:38 +0100	[thread overview]
Message-ID: <54B3848A.7040002@suse.com> (raw)
In-Reply-To: <1421015741-25110-1-git-send-email-rickard_strandqvist@spectrumdigital.se>

On 01/11/2015 11:35 PM, Rickard Strandqvist wrote:
> Remove the function set_pte_mfn() that is not used anywhere.
>
> This was partially found by using a static code analysis program called cppcheck.

Sorry, you seem not to have checked the newest kernel.

Used by:

xen_do_set_identity_and_remap_chunk()
xen_remap_memory()

So: Nak.


Juergen

>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
>   arch/x86/xen/mmu.c |    9 ---------
>   arch/x86/xen/mmu.h |    2 --
>   2 files changed, 11 deletions(-)
>
> diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
> index a8a1a3d..6959550 100644
> --- a/arch/x86/xen/mmu.c
> +++ b/arch/x86/xen/mmu.c
> @@ -281,15 +281,6 @@ static void xen_set_pmd(pmd_t *ptr, pmd_t val)
>   	xen_set_pmd_hyper(ptr, val);
>   }
>
> -/*
> - * Associate a virtual page frame with a given physical page frame
> - * and protection flags for that frame.
> - */
> -void set_pte_mfn(unsigned long vaddr, unsigned long mfn, pgprot_t flags)
> -{
> -	set_pte_vaddr(vaddr, mfn_pte(mfn, flags));
> -}
> -
>   static bool xen_batched_set_pte(pte_t *ptep, pte_t pteval)
>   {
>   	struct mmu_update u;
> diff --git a/arch/x86/xen/mmu.h b/arch/x86/xen/mmu.h
> index 73809bb..f2dcf79 100644
> --- a/arch/x86/xen/mmu.h
> +++ b/arch/x86/xen/mmu.h
> @@ -13,8 +13,6 @@ enum pt_level {
>
>   bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
>
> -void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
> -
>   pte_t xen_ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep);
>   void  xen_ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr,
>   				  pte_t *ptep, pte_t pte);
>


  reply	other threads:[~2015-01-12  8:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11 22:35 [PATCH] x86: xen: mmu: Remove unused function Rickard Strandqvist
2015-01-12  8:23 ` Jürgen Groß [this message]
2015-01-13 22:55   ` [Xen-devel] " Rickard Strandqvist

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=54B3848A.7040002@suse.com \
    --to=jgross@suse.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=hpa@zytor.com \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rickard_strandqvist@spectrumdigital.se \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox