Skip to contentSkip to conversation

mtd_blkdevs.c: do not export 'mtd_blktrans_ops'

PATCH New Ben Dooks 1 participant 1 message May 28, 2007 Memory technology devices (MTD)

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 mtd_blkdevs.c: do not export 'mtd_blktrans_ops'

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?

drivers/mtd/mtd_blkdevs.c +1 -1
@@ -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,