]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ARM: 6620/1: Change misleading warning when CONFIG_CMDLINE_FORCE is used
authorAlexander Holler <holler@ahsoftware.de>
Wed, 12 Jan 2011 13:08:37 +0000 (14:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 12 Jan 2011 14:22:25 +0000 (14:22 +0000)
When CONFIG_CMDLINE_FORCE is used, the warning

  Ignoring unrecognised tag 0x54410009

was displayed. Change this to

  Ignoring tag cmdline (using the default kernel command line)

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c

index 3455ad33de4c425bfdba98b7bef29999792f54e3..7c54e115055b75663c4aa215f0f4e20490f8c582 100644 (file)
@@ -650,15 +650,17 @@ static int __init parse_tag_revision(const struct tag *tag)
 
 __tagtable(ATAG_REVISION, parse_tag_revision);
 
-#ifndef CONFIG_CMDLINE_FORCE
 static int __init parse_tag_cmdline(const struct tag *tag)
 {
+#ifndef CONFIG_CMDLINE_FORCE
        strlcpy(default_command_line, tag->u.cmdline.cmdline, COMMAND_LINE_SIZE);
+#else
+       pr_warning("Ignoring tag cmdline (using the default kernel command line)\n");
+#endif /* CONFIG_CMDLINE_FORCE */
        return 0;
 }
 
 __tagtable(ATAG_CMDLINE, parse_tag_cmdline);
-#endif /* CONFIG_CMDLINE_FORCE */
 
 /*
  * Scan the tag table for this tag, and call its parse function.