Patchwork powerpc/iseries: Mark signal_vsp_instruction() as maybe unused

login
register
mail settings
Submitter Michael Ellerman
Date June 11, 2009, 12:18 p.m.
Message ID <9a2ad49f064c97e7eab14f27863be8e476f3dc56.1244722721.git.michael@ellerman.id.au>
Download mbox | patch
Permalink /patch/28565/
State Accepted
Commit e8d1673b9720ec72d85916c6b7d5d476abb2c861
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Michael Ellerman - June 11, 2009, 12:18 p.m.
signal_vsp_instruction() is currently only used if CONFIG_PROC_FS
is enabled. However logically it has nothing to do with PROC_FS,
so rather than making it depend on that mark it as maybe unused.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
 arch/powerpc/platforms/iseries/mf.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/powerpc/platforms/iseries/mf.c b/arch/powerpc/platforms/iseries/mf.c
index 3689c24..fef4d51 100644
--- a/arch/powerpc/platforms/iseries/mf.c
+++ b/arch/powerpc/platforms/iseries/mf.c
@@ -267,7 +267,8 @@  static struct pending_event *new_pending_event(void)
 	return ev;
 }
 
-static int signal_vsp_instruction(struct vsp_cmd_data *vsp_cmd)
+static int __maybe_unused
+signal_vsp_instruction(struct vsp_cmd_data *vsp_cmd)
 {
 	struct pending_event *ev = new_pending_event();
 	int rc;