Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 192 static int __init obsolete_checksetup(char *line)
- 193 {
- 194 struct obs_kernel_param *p;
- 195 int had_early_param = 0;
- 196
- 197 p = __setup_start;
- 198 do {
- 199 int n = strlen(p->str);
- 200 if (!strncmp(line, p->str, n)) {
- 201 if (p->early) {
- 202 /* Already done in parse_early_param?
- 203 * (Needs exact match on param part).
- 204 * Keep iterating, as we can have early
- 205 * params and __setups of same names 8( */
- 206 if (line[n] == '\0' || line[n] == '=')
- 207 had_early_param = 1;
- 208 } else if (!p->setup_func) {
- 209 printk(KERN_WARNING "Parameter %s is obsolete,"
- 210 " ignored\n", p->str);
- 211 return 1;
- 212 } else if (p->setup_func(line + n))
- 213 return 1;
- 214 }
- 215 p++;
- 216 } while (p < __setup_end);
- 217
- 218 return had_early_param;
- 219 }
Add Comment
Please, Sign In to add comment