projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ca890d
)
mtd: mtdcore: constify name param in mtd_bdi_init
author
Tomas Winkler
<tomas.winkler@intel.com>
Thu, 25 Feb 2021 14:33:29 +0000
(16:33 +0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:49 +0000
(09:37 +0100)
The bdi name is not modified by the function, it should be const.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20210225143329.430012-1-tomas.winkler@intel.com
drivers/mtd/mtdcore.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdcore.c
b/drivers/mtd/mtdcore.c
index 0b095975895ed3cffc4da1e75cfac14b276b8eda..38782ceea1f689168e87eec031ee4f36d00f987a 100644
(file)
--- a/
drivers/mtd/mtdcore.c
+++ b/
drivers/mtd/mtdcore.c
@@
-2173,7
+2173,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(c
onst c
har *name)
{
struct backing_dev_info *bdi;
int ret;