diff options
author | Hugh Dickins <hughd@google.com> | 2013-01-02 05:04:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-02 12:27:10 -0500 |
commit | a7a88b23737095e6c18a20c5d4eef9e25ec5b829 (patch) | |
tree | da6000487d0a1e4694fd760ac55467bce091e854 /mm/mempolicy.c | |
parent | f2a07f40dbc603c15f8b06e6ec7f768af67b424f (diff) |
mempolicy: remove arg from mpol_parse_str, mpol_to_str
Remove the unused argument (formerly no_context) from mpol_parse_str()
and from mpol_to_str().
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r-- | mm/mempolicy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 02c914cca53d..1cb200af3828 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
@@ -2612,14 +2612,13 @@ static const char * const policy_modes[] = | |||
2612 | * mpol_parse_str - parse string to mempolicy, for tmpfs mpol mount option. | 2612 | * mpol_parse_str - parse string to mempolicy, for tmpfs mpol mount option. |
2613 | * @str: string containing mempolicy to parse | 2613 | * @str: string containing mempolicy to parse |
2614 | * @mpol: pointer to struct mempolicy pointer, returned on success. | 2614 | * @mpol: pointer to struct mempolicy pointer, returned on success. |
2615 | * @unused: redundant argument, to be removed later. | ||
2616 | * | 2615 | * |
2617 | * Format of input: | 2616 | * Format of input: |
2618 | * <mode>[=<flags>][:<nodelist>] | 2617 | * <mode>[=<flags>][:<nodelist>] |
2619 | * | 2618 | * |
2620 | * On success, returns 0, else 1 | 2619 | * On success, returns 0, else 1 |
2621 | */ | 2620 | */ |
2622 | int mpol_parse_str(char *str, struct mempolicy **mpol, int unused) | 2621 | int mpol_parse_str(char *str, struct mempolicy **mpol) |
2623 | { | 2622 | { |
2624 | struct mempolicy *new = NULL; | 2623 | struct mempolicy *new = NULL; |
2625 | unsigned short mode; | 2624 | unsigned short mode; |
@@ -2747,13 +2746,12 @@ out: | |||
2747 | * @buffer: to contain formatted mempolicy string | 2746 | * @buffer: to contain formatted mempolicy string |
2748 | * @maxlen: length of @buffer | 2747 | * @maxlen: length of @buffer |
2749 | * @pol: pointer to mempolicy to be formatted | 2748 | * @pol: pointer to mempolicy to be formatted |
2750 | * @unused: redundant argument, to be removed later. | ||
2751 | * | 2749 | * |
2752 | * Convert a mempolicy into a string. | 2750 | * Convert a mempolicy into a string. |
2753 | * Returns the number of characters in buffer (if positive) | 2751 | * Returns the number of characters in buffer (if positive) |
2754 | * or an error (negative) | 2752 | * or an error (negative) |
2755 | */ | 2753 | */ |
2756 | int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, int unused) | 2754 | int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) |
2757 | { | 2755 | { |
2758 | char *p = buffer; | 2756 | char *p = buffer; |
2759 | int l; | 2757 | int l; |