Skip to contentSkip to conversation

linux-next: build failure after merge of the l2-mtd tree

PATCH Stephen Rothwell 2 participants 2 messages Aug 28, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Brian,

After merging the l2-mtd tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/mtd/nand/nandsim.c: In function 'ns_init_module':
drivers/mtd/nand/nandsim.c:2353:2: error: implicit declaration of function 'nandsim_debugfs_remove' [-Werror=implicit-function-declaration]
nandsim_debugfs_remove(nand);
^

Caused by commit

e8e3edb95ce6 ("mtd: create per-device and module-scope debugfs entries")

interacting with commit

b974696da1cf ("mtd: nandsim: remove debugfs entries in error path")

from Linus' tree.

I applied the following merge fix patch ... please check.

From: Stephen Rothwell <[email protected]>
Date: Mon, 28 Aug 2017 12:13:42 +1000
Subject: [PATCH] fix merge of l2-mtd tree

---
 drivers/mtd/nand/nandsim.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/nandsim.c +0 -1
index 00635fd738f6..1ddf0b73c246 100644
@@ -2350,7 +2350,6 @@ static int __init ns_init_module(void)
         return 0;
 
 err_exit:
-	nandsim_debugfs_remove(nand);
 	free_nandsim(nand);
 	nand_release(nsmtd);
 	for (i = 0;i < ARRAY_SIZE(nand->partitions); ++i)
Signature · 8 lines
2.13.2




-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 1 line · Stephen Rothwell

Hi Brian,

Hi Stephen,

Quoted 10 lines

After merging the l2-mtd tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/mtd/nand/nandsim.c: In function 'ns_init_module':
drivers/mtd/nand/nandsim.c:2353:2: error: implicit declaration of function 'nandsim_debugfs_remove' [-Werror=implicit-function-declaration]
nandsim_debugfs_remove(nand);
^

Caused by commit

Quoted 7 lines

e8e3edb95ce6 ("mtd: create per-device and module-scope debugfs entries")

interacting with commit

b974696da1cf ("mtd: nandsim: remove debugfs entries in error path")

from Linus' tree.

Yes, this was expected in the divergence between a bugfix merge for 4.13
vs. a feature change in 4.14. I think Boris has fixed the conflict in his merges and is uploading that to l2-mtd/master (he's handling MTD for 4.14).

Good to know you catch this too :)

Quoted 16 lines

I applied the following merge fix patch ... please check.

From: Stephen Rothwell <[email protected]>
Date: Mon, 28 Aug 2017 12:13:42 +1000
Subject: [PATCH] fix merge of l2-mtd tree

---
 drivers/mtd/nand/nandsim.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/nandsim.c +0 -0
index 00635fd738f6..1ddf0b73c246 100644

drivers/mtd/nand/nandsim.c static int __init ns_init_module(void) · line 2355

Quoted 7 lines
drivers/mtd/nand/nandsim.c +0 -1
@@ -2350,7 +2350,6 @@ static int __init ns_init_module(void)
         return 0;
 
 err_exit:
-	nandsim_debugfs_remove(nand);
 	free_nandsim(nand);
 	nand_release(nsmtd);
 	for (i = 0;i < ARRAY_SIZE(nand->partitions); ++i)

I think this is right, and it matches what Boris is pushing.

Regards,
Brian