Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcabb347 authored by Hunter Adrian's avatar Hunter Adrian Committed by Artem Bityutskiy
Browse files

UBIFS: fix compiler warnings



fs/ubifs/super.c: In function ‘ubifs_show_options’:
fs/ubifs/super.c:425: warning: format not a string literal and no format arguments
fs/ubifs/super.c: In function ‘mount_ubifs’:
fs/ubifs/super.c:1204: warning: format not a string literal and no format arguments
fs/ubifs/super.c: In function ‘ubifs_remount_rw’:
fs/ubifs/super.c:1557: warning: format not a string literal and no format arguments

Signed-off-by: default avatarAdrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent f10770f5
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -421,8 +421,8 @@ static int ubifs_show_options(struct seq_file *s, struct vfsmount *mnt)
		seq_printf(s, ",no_chk_data_crc");
		seq_printf(s, ",no_chk_data_crc");


	if (c->mount_opts.override_compr) {
	if (c->mount_opts.override_compr) {
		seq_printf(s, ",compr=");
		seq_printf(s, ",compr=%s",
		seq_printf(s, ubifs_compr_name(c->mount_opts.compr_type));
			   ubifs_compr_name(c->mount_opts.compr_type));
	}
	}


	return 0;
	return 0;
@@ -1204,7 +1204,7 @@ static int mount_ubifs(struct ubifs_info *c)
			goto out_cbuf;
			goto out_cbuf;


		/* Create background thread */
		/* Create background thread */
		c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);
		c->bgt = kthread_create(ubifs_bg_thread, c, "%s", c->bgt_name);
		if (IS_ERR(c->bgt)) {
		if (IS_ERR(c->bgt)) {
			err = PTR_ERR(c->bgt);
			err = PTR_ERR(c->bgt);
			c->bgt = NULL;
			c->bgt = NULL;
@@ -1561,7 +1561,7 @@ static int ubifs_remount_rw(struct ubifs_info *c)
	ubifs_create_buds_lists(c);
	ubifs_create_buds_lists(c);


	/* Create background thread */
	/* Create background thread */
	c->bgt = kthread_create(ubifs_bg_thread, c, c->bgt_name);
	c->bgt = kthread_create(ubifs_bg_thread, c, "%s", c->bgt_name);
	if (IS_ERR(c->bgt)) {
	if (IS_ERR(c->bgt)) {
		err = PTR_ERR(c->bgt);
		err = PTR_ERR(c->bgt);
		c->bgt = NULL;
		c->bgt = NULL;