]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/mtd/ubi/build.c
treewide: Fix function prototypes for module_param_call()
[mirror_ubuntu-hirsute-kernel.git] / drivers / mtd / ubi / build.c
index d854521962ef0921d917a03989ec7b1938da5fd8..136ce05d23283217563d6a9287cd8651c590050e 100644 (file)
@@ -825,7 +825,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
        for (i = 0; i < UBI_MAX_DEVICES; i++) {
                ubi = ubi_devices[i];
                if (ubi && mtd->index == ubi->mtd->index) {
-                       pr_err("ubi: mtd%d is already attached to ubi%d",
+                       pr_err("ubi: mtd%d is already attached to ubi%d\n",
                                mtd->index, i);
                        return -EEXIST;
                }
@@ -840,7 +840,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
         * no sense to attach emulated MTD devices, so we prohibit this.
         */
        if (mtd->type == MTD_UBIVOLUME) {
-               pr_err("ubi: refuse attaching mtd%d - it is already emulated on top of UBI",
+               pr_err("ubi: refuse attaching mtd%d - it is already emulated on top of UBI\n",
                        mtd->index);
                return -EINVAL;
        }
@@ -851,7 +851,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
                        if (!ubi_devices[ubi_num])
                                break;
                if (ubi_num == UBI_MAX_DEVICES) {
-                       pr_err("ubi: only %d UBI devices may be created",
+                       pr_err("ubi: only %d UBI devices may be created\n",
                                UBI_MAX_DEVICES);
                        return -ENFILE;
                }
@@ -861,7 +861,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
 
                /* Make sure ubi_num is not busy */
                if (ubi_devices[ubi_num]) {
-                       pr_err("ubi: ubi%i already exists", ubi_num);
+                       pr_err("ubi: ubi%i already exists\n", ubi_num);
                        return -EEXIST;
                }
        }
@@ -1166,7 +1166,7 @@ static int __init ubi_init(void)
        BUILD_BUG_ON(sizeof(struct ubi_vid_hdr) != 64);
 
        if (mtd_devs > UBI_MAX_DEVICES) {
-               pr_err("UBI error: too many MTD devices, maximum is %d",
+               pr_err("UBI error: too many MTD devices, maximum is %d\n",
                       UBI_MAX_DEVICES);
                return -EINVAL;
        }
@@ -1178,7 +1178,7 @@ static int __init ubi_init(void)
 
        err = misc_register(&ubi_ctrl_cdev);
        if (err) {
-               pr_err("UBI error: cannot register device");
+               pr_err("UBI error: cannot register device\n");
                goto out;
        }
 
@@ -1205,7 +1205,7 @@ static int __init ubi_init(void)
                mtd = open_mtd_device(p->name);
                if (IS_ERR(mtd)) {
                        err = PTR_ERR(mtd);
-                       pr_err("UBI error: cannot open mtd %s, error %d",
+                       pr_err("UBI error: cannot open mtd %s, error %d\n",
                               p->name, err);
                        /* See comment below re-ubi_is_module(). */
                        if (ubi_is_module())
@@ -1218,7 +1218,7 @@ static int __init ubi_init(void)
                                         p->vid_hdr_offs, p->max_beb_per1024);
                mutex_unlock(&ubi_devices_mutex);
                if (err < 0) {
-                       pr_err("UBI error: cannot attach mtd%d",
+                       pr_err("UBI error: cannot attach mtd%d\n",
                               mtd->index);
                        put_mtd_device(mtd);
 
@@ -1242,7 +1242,7 @@ static int __init ubi_init(void)
 
        err = ubiblock_init();
        if (err) {
-               pr_err("UBI error: block: cannot initialize, error %d", err);
+               pr_err("UBI error: block: cannot initialize, error %d\n", err);
 
                /* See comment above re-ubi_is_module(). */
                if (ubi_is_module())
@@ -1265,7 +1265,7 @@ out_dev_unreg:
        misc_deregister(&ubi_ctrl_cdev);
 out:
        class_unregister(&ubi_class);
-       pr_err("UBI error: cannot initialize UBI, error %d", err);
+       pr_err("UBI error: cannot initialize UBI, error %d\n", err);
        return err;
 }
 late_initcall(ubi_init);
@@ -1334,7 +1334,7 @@ static int bytes_str_to_int(const char *str)
  * This function returns zero in case of success and a negative error code in
  * case of error.
  */
-static int ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
+static int ubi_mtd_param_parse(const char *val, const struct kernel_param *kp)
 {
        int i, len;
        struct mtd_dev_param *p;