X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fsb1250-mac.c;h=7914167acc8f954e77da3bad5529ea3b779b0c6d;hb=1be35e94e1da3669db492995cd2c8b1a37016b11;hp=e0f88fbd33f58ee35a601b8e8347e9fa47fc6738;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/net/sb1250-mac.c b/drivers/net/sb1250-mac.c index e0f88fbd3..7914167ac 100644 --- 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) +#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 #include #include @@ -2894,15 +2900,15 @@ static void __exit sbmac_cleanup_module(void) { struct net_device *dev; + sbmac_port_t port; int idx; for (idx = 0; idx < MAX_UNITS; idx++) { - struct sbmac_softc *sc; dev = dev_sbmac[idx]; if (!dev) continue; - sc = netdev_priv(dev); + struct sbmac_softc *sc = netdev_priv(dev); unregister_netdev(dev); sbmac_uninitctx(sc); free_netdev(dev);