|
@@ -2612,14 +2612,13 @@ static const char * const policy_modes[] =
|
|
|
* mpol_parse_str - parse string to mempolicy, for tmpfs mpol mount option.
|
|
|
* @str: string containing mempolicy to parse
|
|
|
* @mpol: pointer to struct mempolicy pointer, returned on success.
|
|
|
- * @unused: redundant argument, to be removed later.
|
|
|
*
|
|
|
* Format of input:
|
|
|
* <mode>[=<flags>][:<nodelist>]
|
|
|
*
|
|
|
* On success, returns 0, else 1
|
|
|
*/
|
|
|
-int mpol_parse_str(char *str, struct mempolicy **mpol, int unused)
|
|
|
+int mpol_parse_str(char *str, struct mempolicy **mpol)
|
|
|
{
|
|
|
struct mempolicy *new = NULL;
|
|
|
unsigned short mode;
|
|
@@ -2747,13 +2746,12 @@ out:
|
|
|
* @buffer: to contain formatted mempolicy string
|
|
|
* @maxlen: length of @buffer
|
|
|
* @pol: pointer to mempolicy to be formatted
|
|
|
- * @unused: redundant argument, to be removed later.
|
|
|
*
|
|
|
* Convert a mempolicy into a string.
|
|
|
* Returns the number of characters in buffer (if positive)
|
|
|
* or an error (negative)
|
|
|
*/
|
|
|
-int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, int unused)
|
|
|
+int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)
|
|
|
{
|
|
|
char *p = buffer;
|
|
|
int l;
|