[PATCH] fix netlink compile breakage

Jeff Garzik (jgarzik@pobox.com)
Wed, 04 Dec 2002 20:00:17 -0500


This is a multi-part message in MIME format.
--------------040400010001050401080802
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

More viro breakage. I wonder if 'int i' is missing from several other
files I did not compile...

--------------040400010001050401080802
Content-Type: text/plain;
name="patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch"

===== net/netlink/netlink_dev.c 1.10 vs edited =====
--- 1.10/net/netlink/netlink_dev.c Mon Dec 2 18:45:41 2002
+++ edited/net/netlink/netlink_dev.c Wed Dec 4 19:58:43 2002
@@ -180,7 +180,7 @@
{"route6", 11},
{"ip6_fw", 13},
{"dnrtmsg", 13},
-}
+};

static void __init make_devfs_entries (const char *name, int minor)
{
@@ -192,6 +192,8 @@

int __init init_netlink(void)
{
+ int i;
+
if (register_chrdev(NETLINK_MAJOR,"netlink", &netlink_fops)) {
printk(KERN_ERR "netlink: unable to get major %d\n", NETLINK_MAJOR);
return -EIO;

--------------040400010001050401080802--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/