Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759234AbXJDLz7 (ORCPT ); Thu, 4 Oct 2007 07:55:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754682AbXJDLzo (ORCPT ); Thu, 4 Oct 2007 07:55:44 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:42115 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754003AbXJDLzn (ORCPT ); Thu, 4 Oct 2007 07:55:43 -0400 Date: Thu, 4 Oct 2007 13:55:26 +0200 From: Ingo Molnar To: Linus Torvalds Cc: Linux Kernel Mailing List , Eric Van Hensbergen Subject: [patch] net, 9p: build fix with !CONFIG_SYSCTL Message-ID: <20071004115526.GA27403@elte.hu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14 (2007-02-12) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.1.7-deb -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 43 Subject: net, 9p: build fix with !CONFIG_SYSCTL From: Ingo Molnar 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 --- include/net/9p/9p.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) Index: linux/include/net/9p/9p.h =================================================================== --- linux.orig/include/net/9p/9p.h +++ linux/include/net/9p/9p.h @@ -412,6 +412,18 @@ int p9_idpool_check(int id, struct p9_id 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 */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/