Skip to content

Commit ce643a3

Browse files
Fabian Fredericktorvalds
authored andcommitted
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>
1 parent 6d6a138 commit ce643a3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎lib/textsearch.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ int textsearch_register(struct ts_ops *ops)
159159
spin_unlock(&ts_mod_lock);
160160
return err;
161161
}
162+
EXPORT_SYMBOL(textsearch_register);
162163

163164
/**
164165
* textsearch_unregister - unregister a textsearch module
@@ -190,6 +191,7 @@ int textsearch_unregister(struct ts_ops *ops)
190191
spin_unlock(&ts_mod_lock);
191192
return err;
192193
}
194+
EXPORT_SYMBOL(textsearch_unregister);
193195

194196
struct ts_linear_state
195197
{
@@ -236,6 +238,7 @@ unsigned int textsearch_find_continuous(struct ts_config *conf,
236238

237239
return textsearch_find(conf, state);
238240
}
241+
EXPORT_SYMBOL(textsearch_find_continuous);
239242

240243
/**
241244
* textsearch_prepare - Prepare a search
@@ -298,6 +301,7 @@ struct ts_config *textsearch_prepare(const char *algo, const void *pattern,
298301

299302
return ERR_PTR(err);
300303
}
304+
EXPORT_SYMBOL(textsearch_prepare);
301305

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

317321
kfree(conf);
318322
}
319-
320-
EXPORT_SYMBOL(textsearch_register);
321-
EXPORT_SYMBOL(textsearch_unregister);
322-
EXPORT_SYMBOL(textsearch_prepare);
323-
EXPORT_SYMBOL(textsearch_find_continuous);
324323
EXPORT_SYMBOL(textsearch_destroy);

0 commit comments

Comments
 (0)