--- zzzz-none-000/linux-2.6.39.4/init/do_mounts.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/init/do_mounts.c 2021-11-10 13:38:18.000000000 +0000 @@ -66,9 +66,9 @@ * * Returns 1 if the device matches, and 0 otherwise. */ -static int match_dev_by_uuid(struct device *dev, void *data) +static int match_dev_by_uuid(struct device *dev, const void *data) { - u8 *uuid = data; + const u8 *uuid = data; struct hd_struct *part = dev_to_part(dev); if (!part->info) @@ -215,7 +215,7 @@ return res; } -static int __init root_dev_setup(char *line) +int __init root_dev_setup(char *line) { strlcpy(saved_root_name, line, sizeof(saved_root_name)); return 1; @@ -459,6 +459,7 @@ root_device_name = saved_root_name; if (!strncmp(root_device_name, "mtd", 3) || !strncmp(root_device_name, "ubi", 3)) { + printk("root device name :%s\r\n",root_device_name); mount_block_root(root_device_name, root_mountflags); goto out; }