diff options
| author | Fabian Frederick <fabf@skynet.be> | 2014-06-04 19:11:58 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:19 -0400 |
| commit | ce643a30d1c8bd31b6310f59f6d7236c9904c3bf (patch) | |
| tree | b2d37e0d41723dba5f4d2eb08b466c95e461949e /lib | |
| parent | 6d6a138f13e7cb5f20e4ee1c841b4bdaee5e0251 (diff) | |
lib/textsearch.c: move EXPORT_SYMBOL after functions
Fix checkpatch warning:
"WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable"
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/textsearch.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/textsearch.c b/lib/textsearch.c index e0cc0146ae62..0c7e9ab2d88f 100644 --- a/lib/textsearch.c +++ b/lib/textsearch.c | |||
| @@ -159,6 +159,7 @@ errout: | |||
| 159 | spin_unlock(&ts_mod_lock); | 159 | spin_unlock(&ts_mod_lock); |
| 160 | return err; | 160 | return err; |
| 161 | } | 161 | } |
| 162 | EXPORT_SYMBOL(textsearch_register); | ||
| 162 | 163 | ||
| 163 | /** | 164 | /** |
| 164 | * textsearch_unregister - unregister a textsearch module | 165 | * textsearch_unregister - unregister a textsearch module |
| @@ -190,6 +191,7 @@ out: | |||
| 190 | spin_unlock(&ts_mod_lock); | 191 | spin_unlock(&ts_mod_lock); |
| 191 | return err; | 192 | return err; |
| 192 | } | 193 | } |
| 194 | EXPORT_SYMBOL(textsearch_unregister); | ||
| 193 | 195 | ||
| 194 | struct ts_linear_state | 196 | struct ts_linear_state |
| 195 | { | 197 | { |
| @@ -236,6 +238,7 @@ unsigned int textsearch_find_continuous(struct ts_config *conf, | |||
| 236 | 238 | ||
| 237 | return textsearch_find(conf, state); | 239 | return textsearch_find(conf, state); |
| 238 | } | 240 | } |
| 241 | EXPORT_SYMBOL(textsearch_find_continuous); | ||
| 239 | 242 | ||
| 240 | /** | 243 | /** |
| 241 | * textsearch_prepare - Prepare a search | 244 | * textsearch_prepare - Prepare a search |
| @@ -298,6 +301,7 @@ errout: | |||
| 298 | 301 | ||
| 299 | return ERR_PTR(err); | 302 | return ERR_PTR(err); |
| 300 | } | 303 | } |
| 304 | EXPORT_SYMBOL(textsearch_prepare); | ||
| 301 | 305 | ||
| 302 | /** | 306 | /** |
| 303 | * textsearch_destroy - destroy a search configuration | 307 | * textsearch_destroy - destroy a search configuration |
| @@ -316,9 +320,4 @@ void textsearch_destroy(struct ts_config *conf) | |||
| 316 | 320 | ||
| 317 | kfree(conf); | 321 | kfree(conf); |
| 318 | } | 322 | } |
| 319 | |||
| 320 | EXPORT_SYMBOL(textsearch_register); | ||
| 321 | EXPORT_SYMBOL(textsearch_unregister); | ||
| 322 | EXPORT_SYMBOL(textsearch_prepare); | ||
| 323 | EXPORT_SYMBOL(textsearch_find_continuous); | ||
| 324 | EXPORT_SYMBOL(textsearch_destroy); | 323 | EXPORT_SYMBOL(textsearch_destroy); |
