Skip to contentSkip to conversation

mtd: mtdcore: constify name param in mtd_bdi_init

PATCH Applied Tomas Winkler 2 participants 2 messages Feb 25, 2021 – Mar 2, 2021 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: mtdcore: constify name param in mtd_bdi_init

The bdi name is not modified by the function, it should be const.

---
 drivers/mtd/mtdcore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/mtdcore.c +1 -1
index db5167eacaa4..80fb69453ebe 100644
@@ -2177,7 +2177,7 @@ static int mtd_proc_show(struct seq_file *m, void *v)
 /*====================================================================*/
 /* Init code */
 
-static struct backing_dev_info * __init mtd_bdi_init(char *name)
+static struct backing_dev_info * __init mtd_bdi_init(const char *name)
 {
 	struct backing_dev_info *bdi;
 	int ret;
Signature · 6 lines
2.26.2


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/