diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-11 00:19:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-10-11 00:19:28 -0400 |
commit | 092e9d93b3728d484a4e73df9852dc4002cf9923 (patch) | |
tree | 07c1b3b6d3af323e703cb156da950ef7805aee0e /include/net/9p | |
parent | 9ef4429b31b86d486b56b6c179fe52b5c7152f13 (diff) |
[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 <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/9p')
-rw-r--r-- | include/net/9p/9p.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index 88884d39f28f..7726ff41c3e6 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); | |||
412 | 412 | ||
413 | int p9_error_init(void); | 413 | int p9_error_init(void); |
414 | int p9_errstr2errno(char *, int); | 414 | int p9_errstr2errno(char *, int); |
415 | |||
416 | #ifdef CONFIG_SYSCTL | ||
415 | int __init p9_sysctl_register(void); | 417 | int __init p9_sysctl_register(void); |
416 | void __exit p9_sysctl_unregister(void); | 418 | void __exit p9_sysctl_unregister(void); |
419 | #else | ||
420 | static inline int p9_sysctl_register(void) | ||
421 | { | ||
422 | return 0; | ||
423 | } | ||
424 | static inline void p9_sysctl_unregister(void) | ||
425 | { | ||
426 | } | ||
427 | #endif | ||
428 | |||
417 | #endif /* NET_9P_H */ | 429 | #endif /* NET_9P_H */ |