2002-11-14 18:09:10

by Bob Miller

[permalink] [raw]
Subject: [[email protected]: [TRIVIAL PATCH 2.5.47] Fix char/raw.c to build as module]

Rusty,

Please don't apply this patch. There's a bug in it. I'll send
the right version sortly.

TIA.

----- Forwarded message from Bob Miller <[email protected]> -----

Date: Wed, 13 Nov 2002 14:25:54 -0800
To: [email protected]
Cc: [email protected]
From: Bob Miller <[email protected]>
Subject: [TRIVIAL PATCH 2.5.47] Fix char/raw.c to build as module

Small fixes that lets the raw driver be built as a module.

diff -Nru a/drivers/char/raw.c b/drivers/char/raw.c
--- a/drivers/char/raw.c Wed Nov 13 14:09:57 2002
+++ b/drivers/char/raw.c Wed Nov 13 14:09:57 2002
@@ -103,7 +103,7 @@
{
struct block_device *bdev = filp->private_data;

- return blkdev_ioctl(bdev->bd_inode, NULL, command, arg);
+ return ioctl_by_bdev(bdev->bd_inode, command, arg);
}

/*
@@ -241,3 +241,4 @@

module_init(raw_init);
module_exit(raw_exit);
+MODULE_LICENSE("GPL");

--
Bob Miller Email: [email protected]
Open Source Development Lab Phone: 503.626.2455 Ext. 17