Re: [PATCH] module: Fix compile error for ref_module when CONFIG_MODULES is not set

2012-08-06 Thread Barbaros Tokaoğlu
Hi Rusty, You are right, this was not for something in the kernel. I needed ref_module to add some sort of dynamic dependency between modules but this caused compile error when CONFIG_MODULES is not set. Another option was using #ifdef CONFIG_MODULES check but the way in the patch seemed correct t

Re: [PATCH] module: Fix compile error for ref_module when CONFIG_MODULES is not set

2012-08-05 Thread Rusty Russell
On Wed, 1 Aug 2012 20:57:07 +0300, Barbaros Tokaoğlu wrote: > ref_module function is not defined when CONFIG_MODULES is not set thus > it causes compile error when a module which is set to be built-in uses it. > This patch defines a dummy ref_module function when CONFIG_MODULES > is not set. > >

[PATCH] module: Fix compile error for ref_module when CONFIG_MODULES is not set

2012-08-01 Thread Barbaros Tokaoğlu
ref_module function is not defined when CONFIG_MODULES is not set thus it causes compile error when a module which is set to be built-in uses it. This patch defines a dummy ref_module function when CONFIG_MODULES is not set. Signed-off-by: Barbaros Tokaoğlu --- include/linux/module.h |5