git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
drivers
/
net
/
sb1250-mac.c
diff --git
a/drivers/net/sb1250-mac.c
b/drivers/net/sb1250-mac.c
index
e0f88fb
..
7914167
100644
(file)
--- a/
drivers/net/sb1250-mac.c
+++ b/
drivers/net/sb1250-mac.c
@@
-55,6
+55,12
@@
static int int_timeout = 0;
/* Time in jiffies before concluding the transmitter is hung. */
#define TX_TIMEOUT (2*HZ)
/* Time in jiffies before concluding the transmitter is hung. */
#define TX_TIMEOUT (2*HZ)
+#if !defined(__OPTIMIZE__) || !defined(__KERNEL__)
+#warning You must compile this file with the correct options!
+#warning See the last lines of the source file.
+#error You must compile this driver with "-O".
+#endif
+
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
@@
-2894,15
+2900,15
@@
static void __exit
sbmac_cleanup_module(void)
{
struct net_device *dev;
sbmac_cleanup_module(void)
{
struct net_device *dev;
+ sbmac_port_t port;
int idx;
for (idx = 0; idx < MAX_UNITS; idx++) {
int idx;
for (idx = 0; idx < MAX_UNITS; idx++) {
- struct sbmac_softc *sc;
dev = dev_sbmac[idx];
if (!dev)
continue;
dev = dev_sbmac[idx];
if (!dev)
continue;
- sc = netdev_priv(dev);
+ s
truct sbmac_softc *s
c = netdev_priv(dev);
unregister_netdev(dev);
sbmac_uninitctx(sc);
free_netdev(dev);
unregister_netdev(dev);
sbmac_uninitctx(sc);
free_netdev(dev);