From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755354AbZBRSKA (ORCPT ); Wed, 18 Feb 2009 13:10:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751754AbZBRSJv (ORCPT ); Wed, 18 Feb 2009 13:09:51 -0500 Received: from mx2.mail.elte.hu ([157.181.151.9]:47684 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbZBRSJu (ORCPT ); Wed, 18 Feb 2009 13:09:50 -0500 Date: Wed, 18 Feb 2009 19:09:32 +0100 From: Ingo Molnar To: Randy Dunlap Cc: Stephen Rothwell , linux-next@vger.kernel.org, LKML , Rusty Russell Subject: Re: [PATCH] module: fix build for CONFIG_SYSFS=n Message-ID: <20090218180932.GC19995@elte.hu> References: <20090218191640.0b023029.sfr@canb.auug.org.au> <499C4D35.9000104@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499C4D35.9000104@oracle.com> User-Agent: Mutt/1.5.18 (2008-05-17) 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.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Randy Dunlap wrote: > From: Randy Dunlap > > Fix this build error when CONFIG_SYSFS=n: > > kernel/built-in.o: In function `free_module': > module.c:(.text+0x4f8a2): undefined reference to `destroy_params' > > Signed-off-by: Randy Dunlap > cc: Rusty Russell > --- > kernel/module.c | 2 ++ > 1 file changed, 2 insertions(+) > > --- linux-next-20090218.orig/kernel/module.c > +++ linux-next-20090218/kernel/module.c > @@ -1464,8 +1464,10 @@ static void free_module(struct module *m > /* Module unload stuff */ > module_unload_free(mod); > > +#ifdef CONFIG_SYSFS > /* Free any allocated parameters. */ > destroy_params(mod->kp, mod->num_kp); > +#endif Is destroy_params() dependent on SYSFS? If yes then it would be far cleaner if there was a NOP destroy_params() inline for the !SYSFS case. Ingo