Skip to content

Commit

Permalink
lib/cmdline.c: declare exported symbols immediately
Browse files Browse the repository at this point in the history
WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
+EXPORT_SYMBOL(memparse);

WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
+EXPORT_SYMBOL(get_option);

WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable
+EXPORT_SYMBOL(get_options);

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Cc: Levente Kurusa <levex@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
felipec authored and torvalds committed Jan 24, 2014
1 parent 9fd4305 commit ff6f9bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ int get_option(char **str, int *pint)

return 1;
}
EXPORT_SYMBOL(get_option);

/**
* get_options - Parse a string into a list of integers
Expand Down Expand Up @@ -112,6 +113,7 @@ char *get_options(const char *str, int nints, int *ints)
ints[0] = i - 1;
return (char *)str;
}
EXPORT_SYMBOL(get_options);

/**
* memparse - parse a string with mem suffixes into a number
Expand Down Expand Up @@ -152,7 +154,4 @@ unsigned long long memparse(const char *ptr, char **retptr)

return ret;
}

EXPORT_SYMBOL(memparse);
EXPORT_SYMBOL(get_option);
EXPORT_SYMBOL(get_options);

0 comments on commit ff6f9bb

Please sign in to comment.