Commit:     8299ca5ce10c9532848bd2e5526ba975f8d80d1d
Parent:     300ecf59c0ca2c09fb7fde7dff986a7306e95361
Author:     Jeff Dike <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 4 22:30:48 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Feb 5 09:44:26 2008 -0800

    uml: reconst a parameter
    The previous const-ing patch consted a string which shouldn't have
    been, and I didn't notice the gcc warning.
    ubd_setup can't take a const char * because its address is assigned to
    something which expects a char *arg.  Many setups modify the string
    they are given, they can't be const.
    Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 arch/um/drivers/ubd_kern.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 4fe4d6b..b498f27 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -444,7 +444,7 @@ __uml_help(ubd_setup,
 "    cluster filesystem and inappropriate at almost all other times.\n\n"
-static int udb_setup(const char *str)
+static int udb_setup(char *str)
        printk("udb%s specified on command line is almost certainly a ubd -> "
               "udb TYPO\n", str);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to