From: Ingo Molnar Date: Thu, 11 Oct 2007 04:19:28 +0000 (-0700) Subject: [9P]: build fix with !CONFIG_SYSCTL X-Git-Tag: v2.6.24-rc1~1454^2~15 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=092e9d93b3728d484a4e73df9852dc4002cf9923;p=linux-2.6-omap-h63xx.git [9P]: build fix with !CONFIG_SYSCTL found via make randconfig build testing: net/built-in.o: In function `init_p9': mod.c:(.init.text+0x3b39): undefined reference to `p9_sysctl_register' net/built-in.o: In function `exit_p9': mod.c:(.exit.text+0x36b): undefined reference to `p9_sysctl_unregister' Signed-off-by: Ingo Molnar Signed-off-by: David S. Miller --- diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index 88884d39f28..7726ff41c3e 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h @@ -412,6 +412,18 @@ int p9_idpool_check(int id, struct p9_idpool *p); int p9_error_init(void); int p9_errstr2errno(char *, int); + +#ifdef CONFIG_SYSCTL int __init p9_sysctl_register(void); void __exit p9_sysctl_unregister(void); +#else +static inline int p9_sysctl_register(void) +{ + return 0; +} +static inline void p9_sysctl_unregister(void) +{ +} +#endif + #endif /* NET_9P_H */