Guest User

Untitled

a guest
May 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. 192 static int __init obsolete_checksetup(char *line)
  2. 193 {
  3. 194 struct obs_kernel_param *p;
  4. 195 int had_early_param = 0;
  5. 196
  6. 197 p = __setup_start;
  7. 198 do {
  8. 199 int n = strlen(p->str);
  9. 200 if (!strncmp(line, p->str, n)) {
  10. 201 if (p->early) {
  11. 202 /* Already done in parse_early_param?
  12. 203 * (Needs exact match on param part).
  13. 204 * Keep iterating, as we can have early
  14. 205 * params and __setups of same names 8( */
  15. 206 if (line[n] == '\0' || line[n] == '=')
  16. 207 had_early_param = 1;
  17. 208 } else if (!p->setup_func) {
  18. 209 printk(KERN_WARNING "Parameter %s is obsolete,"
  19. 210 " ignored\n", p->str);
  20. 211 return 1;
  21. 212 } else if (p->setup_func(line + n))
  22. 213 return 1;
  23. 214 }
  24. 215 p++;
  25. 216 } while (p < __setup_end);
  26. 217
  27. 218 return had_early_param;
  28. 219 }
Add Comment
Please, Sign In to add comment