Patchwork [next] powerpc/5200: fix building GPT driver without sysfs

login
register
mail settings
Submitter Alexander Beregalov
Date March 16, 2009, 4:17 p.m.
Message ID <20090316161751.GA3622@orion>
Download mbox | patch
Permalink /patch/24508/
State Superseded, archived
Delegated to: Grant Likely
Headers show

Comments

Alexander Beregalov - March 16, 2009, 4:17 p.m.
arch/powerpc/platforms/52xx/mpc52xx_gpt.c: In function 'mpc52xx_gpt_create_attribs':
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:373: error: parameter name omitted
arch/powerpc/platforms/52xx/mpc52xx_gpt.c:373: warning: 'return' with a value, in function returning void

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---

 arch/powerpc/platforms/52xx/mpc52xx_gpt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/powerpc/platforms/52xx/mpc52xx_gpt.c b/arch/powerpc/platforms/52xx/mpc52xx_gpt.c
index cb038dc..ef81cce 100644
--- a/arch/powerpc/platforms/52xx/mpc52xx_gpt.c
+++ b/arch/powerpc/platforms/52xx/mpc52xx_gpt.c
@@ -370,7 +370,7 @@  static void mpc52xx_gpt_create_attribs(struct mpc52xx_gpt_priv *gpt)
 }

 #else /* defined(CONFIG_SYSFS) */
-static void mpc52xx_gpt_create_attribs(struct mpc52xx_gpt_priv *) { return 0; }
+static inline void mpc52xx_gpt_create_attribs(struct mpc52xx_gpt_priv *gpt) {}
 #endif /* defined(CONFIG_SYSFS) */

 /* ---------------------------------------------------------------------