Commit d3b2fbb5 authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

[PATCH] fix netlink compile breakage

More viro breakage.  I wonder if 'int i' is missing from several other
files I did not compile...
parent c16682e4
...@@ -180,7 +180,7 @@ static struct { char *name; int minor; } entries[] = { ...@@ -180,7 +180,7 @@ static struct { char *name; int minor; } entries[] = {
{"route6", 11}, {"route6", 11},
{"ip6_fw", 13}, {"ip6_fw", 13},
{"dnrtmsg", 13}, {"dnrtmsg", 13},
} };
static void __init make_devfs_entries (const char *name, int minor) static void __init make_devfs_entries (const char *name, int minor)
{ {
...@@ -192,6 +192,8 @@ static void __init make_devfs_entries (const char *name, int minor) ...@@ -192,6 +192,8 @@ static void __init make_devfs_entries (const char *name, int minor)
int __init init_netlink(void) int __init init_netlink(void)
{ {
int i;
if (register_chrdev(NETLINK_MAJOR,"netlink", &netlink_fops)) { if (register_chrdev(NETLINK_MAJOR,"netlink", &netlink_fops)) {
printk(KERN_ERR "netlink: unable to get major %d\n", NETLINK_MAJOR); printk(KERN_ERR "netlink: unable to get major %d\n", NETLINK_MAJOR);
return -EIO; return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment