@@ -113,6 +113,7 @@ int match_token(char *s, const match_table_t table, substring_t args[])
113113
114114 return p -> token ;
115115}
116+ EXPORT_SYMBOL (match_token );
116117
117118/**
118119 * 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)
163164{
164165 return match_number (s , result , 0 );
165166}
167+ EXPORT_SYMBOL (match_int );
166168
167169/**
168170 * 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)
177179{
178180 return match_number (s , result , 8 );
179181}
182+ EXPORT_SYMBOL (match_octal );
180183
181184/**
182185 * 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)
191194{
192195 return match_number (s , result , 16 );
193196}
197+ EXPORT_SYMBOL (match_hex );
194198
195199/**
196200 * match_wildcard: - parse if a string matches given wildcard pattern
@@ -241,6 +245,7 @@ bool match_wildcard(const char *pattern, const char *str)
241245 ++ p ;
242246 return !* p ;
243247}
248+ EXPORT_SYMBOL (match_wildcard );
244249
245250/**
246251 * 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)
263268 }
264269 return ret ;
265270}
271+ EXPORT_SYMBOL (match_strlcpy );
266272
267273/**
268274 * match_strdup: - allocate a new string with the contents of a substring_t
@@ -280,11 +286,4 @@ char *match_strdup(const substring_t *s)
280286 match_strlcpy (p , s , sz );
281287 return p ;
282288}
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 );
290289EXPORT_SYMBOL (match_strdup );
0 commit comments