Skip to contentSkip to conversation

eth1394 MODULE_PARM conversion

PATCH New Jan Dittmer 1 participant 1 message Nov 13, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eth1394 MODULE_PARM conversion

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/11/13 21:45:13+01:00 [email protected]
# MODULE_PARM conversion
#

# drivers/ieee1394/eth1394.c
#   2004/11/13 21:45:05+01:00 [email protected] +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,