projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.denx.de/u-boot-mmc
[oweals/u-boot.git]
/
drivers
/
net
/
ne2000_base.c
diff --git
a/drivers/net/ne2000_base.c
b/drivers/net/ne2000_base.c
index 88f2b379f37bbb5f73907d5631b56ed7763c78d7..ef35922042a4cbf4fbc60303d11ab57f2b4f9ad3 100644
(file)
--- a/
drivers/net/ne2000_base.c
+++ b/
drivers/net/ne2000_base.c
@@
-76,6
+76,7
@@
Add SNMP
#include <command.h>
#include <net.h>
#include <malloc.h>
#include <command.h>
#include <net.h>
#include <malloc.h>
+#include <linux/compiler.h>
/* forward definition of function used for the uboot interface */
void uboot_push_packet_len(int len);
/* forward definition of function used for the uboot interface */
void uboot_push_packet_len(int len);
@@
-279,7
+280,7
@@
dp83902a_send(u8 *data, int total_len, u32 key)
* does (i.e., also read data).
*/
* does (i.e., also read data).
*/
- u16 tmp;
+
__maybe_unused
u16 tmp;
int len = 1;
DP_OUT(base, DP_RSAL, 0x100 - len);
int len = 1;
DP_OUT(base, DP_RSAL, 0x100 - len);
@@
-373,7
+374,7
@@
dp83902a_RxEvent(void)
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
- u8 rsr;
+
__maybe_unused
u8 rsr;
u8 rcv_hdr[4];
int i, len, pkt, cur;
u8 rcv_hdr[4];
int i, len, pkt, cur;
@@
-510,7
+511,7
@@
dp83902a_TxEvent(void)
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
- u8 tsr;
+
__maybe_unused
u8 tsr;
u32 key;
DEBUG_FUNCTION();
u32 key;
DEBUG_FUNCTION();
@@
-547,7
+548,7
@@
dp83902a_ClearCounters(void)
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
- u8 cnt1, cnt2, cnt3;
+
__maybe_unused
u8 cnt1, cnt2, cnt3;
DP_IN(base, DP_FER, cnt1);
DP_IN(base, DP_CER, cnt2);
DP_IN(base, DP_FER, cnt1);
DP_IN(base, DP_CER, cnt2);
@@
-748,7
+749,7
@@
static int ne2k_recv(struct eth_device *dev)
return 1;
}
return 1;
}
-static int ne2k_send(struct eth_device *dev, vo
latile vo
id *packet, int length)
+static int ne2k_send(struct eth_device *dev, void *packet, int length)
{
int tmo;
{
int tmo;