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

From: Stephen Rothwell
Date: Sun Jul 23 2017 - 21:48:48 EST


Hi Brian,

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

drivers/mtd/mtdswap.c: In function 'mtdswap_add_debugfs':
drivers/mtd/mtdswap.c:1317:17: warning: unused variable 'dev' [-Wunused-variable]
struct device *dev = disk_to_dev(gd);
^

Introduced by commit

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

--
Cheers,
Stephen Rothwell