diff options
| author | Andrew Morton <akpm@linux-foundation.org> | 2014-01-23 18:54:13 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 19:36:55 -0500 |
| commit | a3d2cca43cd31479d4f0414b4d014c4400a4e6d6 (patch) | |
| tree | 542620e09167da81032e98382d73ab851e51a530 /lib | |
| parent | aace05097a0fd467230e39acb148be0fdaa90068 (diff) | |
lib/parser.c: put EXPORT_SYMBOLs in the conventional place
Cc: Du, Changbin <changbin.du@gmail.com>
Cc: Joe Perches <joe@perches.com>
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/parser.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/parser.c b/lib/parser.c index ee5295541cea..b6d11631231b 100644 --- a/lib/parser.c +++ b/lib/parser.c | |||
| @@ -113,6 +113,7 @@ int match_token(char *s, const match_table_t table, substring_t args[]) | |||
| 113 | 113 | ||
| 114 | return p->token; | 114 | return p->token; |
| 115 | } | 115 | } |
| 116 | EXPORT_SYMBOL(match_token); | ||
| 116 | 117 | ||
| 117 | /** | 118 | /** |
| 118 | * match_number: scan a number in the given base from a substring_t | 119 | * match_number: scan a number in the given base from a substring_t |
| @@ -163,6 +164,7 @@ int match_int(substring_t *s, int *result) | |||
| 163 | { | 164 | { |
| 164 | return match_number(s, result, 0); | 165 | return match_number(s, result, 0); |
| 165 | } | 166 | } |
| 167 | EXPORT_SYMBOL(match_int); | ||
| 166 | 168 | ||
| 167 | /** | 169 | /** |
| 168 | * match_octal: - scan an octal representation of an integer from a substring_t | 170 | * match_octal: - scan an octal representation of an integer from a substring_t |
| @@ -177,6 +179,7 @@ int match_octal(substring_t *s, int *result) | |||
| 177 | { | 179 | { |
| 178 | return match_number(s, result, 8); | 180 | return match_number(s, result, 8); |
| 179 | } | 181 | } |
| 182 | EXPORT_SYMBOL(match_octal); | ||
| 180 | 183 | ||
| 181 | /** | 184 | /** |
| 182 | * match_hex: - scan a hex representation of an integer from a substring_t | 185 | * match_hex: - scan a hex representation of an integer from a substring_t |
| @@ -191,6 +194,7 @@ int match_hex(substring_t *s, int *result) | |||
| 191 | { | 194 | { |
| 192 | return match_number(s, result, 16); | 195 | return match_number(s, result, 16); |
| 193 | } | 196 | } |
| 197 | EXPORT_SYMBOL(match_hex); | ||
| 194 | 198 | ||
| 195 | /** | 199 | /** |
| 196 | * match_wildcard: - parse if a string matches given wildcard pattern | 200 | * match_wildcard: - parse if a string matches given wildcard pattern |
| @@ -241,6 +245,7 @@ bool match_wildcard(const char *pattern, const char *str) | |||
| 241 | ++p; | 245 | ++p; |
| 242 | return !*p; | 246 | return !*p; |
| 243 | } | 247 | } |
| 248 | EXPORT_SYMBOL(match_wildcard); | ||
| 244 | 249 | ||
| 245 | /** | 250 | /** |
| 246 | * match_strlcpy: - Copy the characters from a substring_t to a sized buffer | 251 | * match_strlcpy: - Copy the characters from a substring_t to a sized buffer |
| @@ -263,6 +268,7 @@ size_t match_strlcpy(char *dest, const substring_t *src, size_t size) | |||
| 263 | } | 268 | } |
| 264 | return ret; | 269 | return ret; |
| 265 | } | 270 | } |
| 271 | EXPORT_SYMBOL(match_strlcpy); | ||
| 266 | 272 | ||
| 267 | /** | 273 | /** |
| 268 | * match_strdup: - allocate a new string with the contents of a substring_t | 274 | * match_strdup: - allocate a new string with the contents of a substring_t |
| @@ -280,11 +286,4 @@ char *match_strdup(const substring_t *s) | |||
| 280 | match_strlcpy(p, s, sz); | 286 | match_strlcpy(p, s, sz); |
| 281 | return p; | 287 | return p; |
| 282 | } | 288 | } |
| 283 | |||
| 284 | EXPORT_SYMBOL(match_token); | ||
| 285 | EXPORT_SYMBOL(match_int); | ||
| 286 | EXPORT_SYMBOL(match_octal); | ||
| 287 | EXPORT_SYMBOL(match_hex); | ||
| 288 | EXPORT_SYMBOL(match_wildcard); | ||
| 289 | EXPORT_SYMBOL(match_strlcpy); | ||
| 290 | EXPORT_SYMBOL(match_strdup); | 289 | EXPORT_SYMBOL(match_strdup); |
