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>
This commit is contained in:
Jeff Dike 2008-02-04 22:30:48 -08:00 коммит произвёл Linus Torvalds
Родитель 300ecf59c0
Коммит 8299ca5ce1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -444,7 +444,7 @@ __uml_help(ubd_setup,
" cluster filesystem and inappropriate at almost all other times.\n\n" " 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 -> " printk("udb%s specified on command line is almost certainly a ubd -> "
"udb TYPO\n", str); "udb TYPO\n", str);