Commit d5a3784b authored by Linus Torvalds's avatar Linus Torvalds

Import 2.4.0-test2pre4

parent f6856583
......@@ -133,44 +133,6 @@ char root_device_name[64];
static char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
static char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
/*
* Read an int from an option string; if available accept a subsequent
* comma as well.
*
* Return values:
* 0 : no int in string
* 1 : int found, no subsequent comma
* 2 : int found including a subsequent comma
*/
int get_option(char **str, int *pint)
{
char *cur = *str;
if (!cur || !(*cur)) return 0;
*pint = simple_strtol(cur,str,0);
if (cur==*str) return 0;
if (**str==',') {
(*str)++;
return 2;
}
return 1;
}
char *get_options(char *str, int nints, int *ints)
{
int res,i=1;
while (i<nints) {
res = get_option(&str, ints+i);
if (res==0) break;
i++;
if (res==1) break;
}
ints[0] = i-1;
return(str);
}
static int __init profile_setup(char *str)
{
int par;
......
......@@ -82,8 +82,6 @@ EXPORT_SYMBOL(exec_usermodehelper);
EXPORT_SYMBOL(get_module_symbol);
EXPORT_SYMBOL(try_inc_mod_count);
#endif
EXPORT_SYMBOL(get_option);
EXPORT_SYMBOL(get_options);
/* process memory management */
EXPORT_SYMBOL(do_mmap_pgoff);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment