Skip to content

Commit

Permalink
remove CONFIG_KMOD from lib
Browse files Browse the repository at this point in the history
textsearch algorithms can be loaded, make the code depend
on CONFIG_MODULES instead of CONFIG_KMOD.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Johannes Berg authored and Rusty Russell committed Jul 22, 2008
1 parent 184b6c7 commit a00caa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/textsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ struct ts_config *textsearch_prepare(const char *algo, const void *pattern,
return ERR_PTR(-EINVAL);

ops = lookup_ts_algo(algo);
#ifdef CONFIG_KMOD
#ifdef CONFIG_MODULES
/*
* Why not always autoload you may ask. Some users are
* in a situation where requesting a module may deadlock,
Expand Down

0 comments on commit a00caa1

Please sign in to comment.