Skip to contentSkip to conversation

3c515: fix module_param type

PATCH New Randy.Dunlap 1 participant 1 message Jan 18, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 3c515: fix module_param type

3c515: correct module_param data type (remove "const");

drivers/net/3c515.c:406: warning: return discards qualifiers from pointer target type drivers/net/3c515.c:406: warning: initialization discards qualifiers from pointer target type

diffstat:=

 drivers/net/3c515.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

---

3c515: correct module_param data type (remove "const");

drivers/net/3c515.c:406: warning: return discards qualifiers from pointer target type drivers/net/3c515.c:406: warning: initialization discards qualifiers from pointer target type

diffstat:=

 drivers/net/3c515.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/net/3c515.c renamed from drivers/net/3c515.c~3c515_modprm +1 -1
diff -Naurp ./drivers/net/3c515.c~3c515_modprm ./drivers/net/3c515.c
@@ -34,7 +34,7 @@ DRV_NAME ".c:v" DRV_VERSION " " DRV_RELD
 /* "Knobs" that adjust features and parameters. */
 /* Set the copy breakpoint for the copy-only-tiny-frames scheme.
    Setting to > 1512 effectively disables this feature. */
-static const int rx_copybreak = 200;
+static int rx_copybreak = 200;
 
 /* Allow setting MTU to a larger size, bypassing the normal ethernet setup. */
 static const int mtu = 1500;