Skip to content

Commit

Permalink
[MTD] mtd_blkdevs.c: do not export 'mtd_blktrans_ops'
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Ben Dooks authored and David Woodhouse committed Jun 28, 2007
1 parent 8b099a3 commit 8f026f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/mtd_blkdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8f026f7

Please sign in to comment.