Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35849
b: refs/heads/master
c: 33df0d1
h: refs/heads/master
i:
  35847: 31d7ca9
v: v3
  • Loading branch information
Rusty Russell authored and Andi Kleen committed Sep 26, 2006
1 parent a2c89e1 commit a4c36ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ca33eb6981549c0d1b7aea7f99f1ba602161356
refs/heads/master: 33df0d19ea425d28bd5afb48898af32237fe81af
12 changes: 8 additions & 4 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,19 @@ extern struct obs_kernel_param __setup_start[], __setup_end[];
static int __init obsolete_checksetup(char *line)
{
struct obs_kernel_param *p;
int had_early_param = 0;

p = __setup_start;
do {
int n = strlen(p->str);
if (!strncmp(line, p->str, n)) {
if (p->early) {
/* Already done in parse_early_param? (Needs
* exact match on param part) */
/* Already done in parse_early_param?
* (Needs exact match on param part).
* Keep iterating, as we can have early
* params and __setups of same names 8( */
if (line[n] == '\0' || line[n] == '=')
return 1;
had_early_param = 1;
} else if (!p->setup_func) {
printk(KERN_WARNING "Parameter %s is obsolete,"
" ignored\n", p->str);
Expand All @@ -181,7 +184,8 @@ static int __init obsolete_checksetup(char *line)
}
p++;
} while (p < __setup_end);
return 0;

return had_early_param;
}

/*
Expand Down

0 comments on commit a4c36ed

Please sign in to comment.