Skip to content

Commit

Permalink
lib/textsearch.c: move EXPORT_SYMBOL after functions
Browse files Browse the repository at this point in the history
Fix checkpatch warning:
"WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable"

Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Jun 4, 2014
1 parent 6d6a138 commit ce643a3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/textsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ int textsearch_register(struct ts_ops *ops)
spin_unlock(&ts_mod_lock);
return err;
}
EXPORT_SYMBOL(textsearch_register);

/**
* textsearch_unregister - unregister a textsearch module
Expand Down Expand Up @@ -190,6 +191,7 @@ int textsearch_unregister(struct ts_ops *ops)
spin_unlock(&ts_mod_lock);
return err;
}
EXPORT_SYMBOL(textsearch_unregister);

struct ts_linear_state
{
Expand Down Expand Up @@ -236,6 +238,7 @@ unsigned int textsearch_find_continuous(struct ts_config *conf,

return textsearch_find(conf, state);
}
EXPORT_SYMBOL(textsearch_find_continuous);

/**
* textsearch_prepare - Prepare a search
Expand Down Expand Up @@ -298,6 +301,7 @@ struct ts_config *textsearch_prepare(const char *algo, const void *pattern,

return ERR_PTR(err);
}
EXPORT_SYMBOL(textsearch_prepare);

/**
* textsearch_destroy - destroy a search configuration
Expand All @@ -316,9 +320,4 @@ void textsearch_destroy(struct ts_config *conf)

kfree(conf);
}

EXPORT_SYMBOL(textsearch_register);
EXPORT_SYMBOL(textsearch_unregister);
EXPORT_SYMBOL(textsearch_prepare);
EXPORT_SYMBOL(textsearch_find_continuous);
EXPORT_SYMBOL(textsearch_destroy);

0 comments on commit ce643a3

Please sign in to comment.