diff options
author | Jeff Dike <jdike@addtoit.com> | 2008-02-05 01:30:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:26 -0500 |
commit | 8299ca5ce10c9532848bd2e5526ba975f8d80d1d (patch) | |
tree | bf907a849446fea6480b715fbac0f77d4166e0fd /arch/um/drivers | |
parent | 300ecf59c0ca2c09fb7fde7dff986a7306e95361 (diff) |
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 <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers')
-rw-r--r-- | 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 4fe4d6b73070..b498f2740100 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
@@ -444,7 +444,7 @@ __uml_help(ubd_setup, | |||
444 | " cluster filesystem and inappropriate at almost all other times.\n\n" | 444 | " cluster filesystem and inappropriate at almost all other times.\n\n" |
445 | ); | 445 | ); |
446 | 446 | ||
447 | static int udb_setup(const char *str) | 447 | static int udb_setup(char *str) |
448 | { | 448 | { |
449 | printk("udb%s specified on command line is almost certainly a ubd -> " | 449 | printk("udb%s specified on command line is almost certainly a ubd -> " |
450 | "udb TYPO\n", str); | 450 | "udb TYPO\n", str); |