[PATCH] mtd_blkdevs.c: do not export 'mtd_blktrans_ops'

Ben Dooks ben-linux at fluff.org
Mon May 28 14:51:59 EDT 2007


The mtd_blktrans_ops is not defined in any of the headers
and is indeed not used elsewhere in the kernel, so mark it
as static to reduce the warnings from sparse

drivers/mtd/mtd_blkdevs.c:204:32: warning: symbol 'mtd_blktrans_ops' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben-linux at fluff.org>

--- linux-2.6.22-rc3/drivers/mtd/mtd_blkdevs.c	2007-05-27 18:54:21.000000000 +0100
+++ linux-2.6.22-rc3-sparse1/drivers/mtd/mtd_blkdevs.c	2007-05-28 19:45:39.000000000 +0100
@@ -201,7 +201,7 @@ static int blktrans_ioctl(struct inode *
 	}
 }
 
-struct block_device_operations mtd_blktrans_ops = {
+static struct block_device_operations mtd_blktrans_ops = {
 	.owner		= THIS_MODULE,
 	.open		= blktrans_open,
 	.release	= blktrans_release,




More information about the linux-mtd mailing list