* [PATCH] mtd_blkdevs.c: do not export 'mtd_blktrans_ops'
@ 2007-05-28 18:51 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2007-05-28 18:51 UTC (permalink / raw)
To: linux-mtd
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@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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-28 18:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-28 18:51 [PATCH] mtd_blkdevs.c: do not export 'mtd_blktrans_ops' Ben Dooks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.