|
@@ -553,6 +553,8 @@ static void __ei_poll(struct net_device *dev)
|
|
static void ei_tx_err(struct net_device *dev)
|
|
static void ei_tx_err(struct net_device *dev)
|
|
{
|
|
{
|
|
unsigned long e8390_base = dev->base_addr;
|
|
unsigned long e8390_base = dev->base_addr;
|
|
|
|
+ /* ei_local is used on some platforms via the EI_SHIFT macro */
|
|
|
|
+ struct ei_device *ei_local __maybe_unused = netdev_priv(dev);
|
|
unsigned char txsr = ei_inb_p(e8390_base+EN0_TSR);
|
|
unsigned char txsr = ei_inb_p(e8390_base+EN0_TSR);
|
|
unsigned char tx_was_aborted = txsr & (ENTSR_ABT+ENTSR_FU);
|
|
unsigned char tx_was_aborted = txsr & (ENTSR_ABT+ENTSR_FU);
|
|
|
|
|
|
@@ -815,6 +817,8 @@ static void ei_rx_overrun(struct net_device *dev)
|
|
{
|
|
{
|
|
unsigned long e8390_base = dev->base_addr;
|
|
unsigned long e8390_base = dev->base_addr;
|
|
unsigned char was_txing, must_resend = 0;
|
|
unsigned char was_txing, must_resend = 0;
|
|
|
|
+ /* ei_local is used on some platforms via the EI_SHIFT macro */
|
|
|
|
+ struct ei_device *ei_local __maybe_unused = netdev_priv(dev);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Record whether a Tx was in progress and then issue the
|
|
* Record whether a Tx was in progress and then issue the
|