Commit 67228094 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] 3c59x: module loading fix

3c59x has a tunable `rx_copybreak'.  But it's declared const, so recent gcc's
rub it out altogether, and modprobe says `3c59x: falsely claims to have
parameter rx_copybreak'.
parent 3a5d0f0c
...@@ -211,11 +211,11 @@ ...@@ -211,11 +211,11 @@
/* Set the copy breakpoint for the copy-only-tiny-frames scheme. /* Set the copy breakpoint for the copy-only-tiny-frames scheme.
Setting to > 1512 effectively disables this feature. */ Setting to > 1512 effectively disables this feature. */
#ifndef __arm__ #ifndef __arm__
static const int rx_copybreak = 200; static int rx_copybreak = 200;
#else #else
/* ARM systems perform better by disregarding the bus-master /* ARM systems perform better by disregarding the bus-master
transfer capability of these cards. -- rmk */ transfer capability of these cards. -- rmk */
static const int rx_copybreak = 1513; static int rx_copybreak = 1513;
#endif #endif
/* Allow setting MTU to a larger size, bypassing the normal ethernet setup. */ /* Allow setting MTU to a larger size, bypassing the normal ethernet setup. */
static const int mtu = 1500; static const int mtu = 1500;
......
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