[PATCH] eth1394 MODULE_PARM conversion

From: Jan Dittmer
Date: Sat Nov 13 2004 - 16:15:18 EST


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/11/13 21:45:13+01:00 jdittmer@xxxxxxxxxxxxxxx
# MODULE_PARM conversion
#
# drivers/ieee1394/eth1394.c
# 2004/11/13 21:45:05+01:00 jdittmer@xxxxxxxxxxxxxxx +2 -2
# Convert MODULE_PARM to module_param
#
diff -Nru a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c
--- a/drivers/ieee1394/eth1394.c 2004-11-13 22:07:29 +01:00
+++ b/drivers/ieee1394/eth1394.c 2004-11-13 22:07:29 +01:00
@@ -168,11 +168,11 @@
* consume in the event that some partial datagrams are never completed. This
* should probably change to a sysctl item or the like if possible.
*/
-MODULE_PARM(max_partial_datagrams, "i");
+static int max_partial_datagrams = 25;
+module_param(max_partial_datagrams, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(max_partial_datagrams,
"Maximum number of partially received fragmented datagrams "
"(default = 25).");
-static int max_partial_datagrams = 25;


static int ether1394_header(struct sk_buff *skb, struct net_device *dev,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/