public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Jeremy Fitzhardinge <jeremy@xensource.com>,
	Chris Wright <chrisw@sous-sol.org>,
	Steven Rostedt <srostedt@redhat.com>
Subject: [PATCH 2/5] xen: remove unused function warnings
Date: Thu, 02 Oct 2008 11:05:31 -0400	[thread overview]
Message-ID: <20081002151104.440158972@goodmis.org> (raw)
In-Reply-To: 20081002150529.087488257@goodmis.org

[-- Attachment #1: xen-clean-up-enlight-unused.patch --]
[-- Type: text/plain, Size: 1450 bytes --]

The compiler is complaining that there are unused static functions
in the Xen code. Looking into this, it seems that they are used
but only within #if statements.

This patch matches the functions with the #if statements that they
are referenced by.

CC: Jeremy Fitzhardinge <jeremy@xensource.com>
CC: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
---
 arch/x86/xen/enlighten.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-compile.git/arch/x86/xen/enlighten.c
===================================================================
--- linux-compile.git.orig/arch/x86/xen/enlighten.c	2008-10-02 10:34:13.000000000 -0400
+++ linux-compile.git/arch/x86/xen/enlighten.c	2008-10-02 10:57:52.000000000 -0400
@@ -704,10 +704,12 @@ static unsigned long xen_read_cr2(void)
 	return x86_read_percpu(xen_vcpu)->arch.cr2;
 }
 
+#ifdef CONFIG_X86_32
 static unsigned long xen_read_cr2_direct(void)
 {
 	return x86_read_percpu(xen_vcpu_info.arch.cr2);
 }
+#endif
 
 static void xen_write_cr4(unsigned long cr4)
 {
@@ -962,6 +964,7 @@ static void *xen_kmap_atomic_pte(struct 
 }
 #endif
 
+#ifndef CONFIG_X86_64
 static __init pte_t mask_rw_pte(pte_t *ptep, pte_t pte)
 {
 	/* If there's an existing pte, then don't allow _PAGE_RW to be set */
@@ -980,6 +983,7 @@ static __init void xen_set_pte_init(pte_
 
 	xen_set_pte(ptep, pte);
 }
+#endif
 
 static __init void xen_pagetable_setup_start(pgd_t *base)
 {

-- 

  parent reply	other threads:[~2008-10-02 15:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-02 15:05 [PATCH 0/5] Clean up patches Steven Rostedt
2008-10-02 15:05 ` [PATCH 1/5] xen: clean up label Steven Rostedt
2008-10-02 15:05 ` Steven Rostedt [this message]
2008-10-02 15:05 ` [PATCH 3/5] xen: nuke dead code in enlighten.c Steven Rostedt
2008-10-02 15:05 ` [PATCH 4/5] sound: update snd_assert macro Steven Rostedt
2008-10-03  9:10   ` Takashi Iwai
2008-10-03 14:24     ` Steven Rostedt
2008-10-02 15:05 ` [PATCH 5/5] xen: nuke the ballon files Steven Rostedt
2008-10-02 15:34   ` Jeremy Fitzhardinge
2008-10-02 17:59     ` Steven Rostedt

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=20081002151104.440158972@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=chrisw@sous-sol.org \
    --cc=jeremy@xensource.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srostedt@redhat.com \
    /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