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

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Jun 28 15:59:02 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8f026f75accb8c9f1179a4b57a5019af36471046
Commit:     8f026f75accb8c9f1179a4b57a5019af36471046
Parent:     8b099a390defd294a3832fe73626c25072967316
Author:     Ben Dooks <ben-linux at fluff.org>
AuthorDate: Mon May 28 19:51:59 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu Jun 28 20:24:06 2007 +0100

    [MTD] 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?
    
    Signed-off-by: Ben Dooks <ben-linux at fluff.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/mtd_blkdevs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 51bc7e2..7816605 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -201,7 +201,7 @@ static int blktrans_ioctl(struct inode *inode, struct file *file,
 	}
 }
 
-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-cvs mailing list