mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 15:21:32 +00:00
Fix gcc-induced reference to memcpy
This commit is contained in:
parent
69d2261016
commit
21bc2015f2
@ -1417,7 +1417,8 @@ static int tulip_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||
tp->csr0 |= 0x2000;
|
||||
|
||||
if (media_cap[tp->default_port] & MediaIsMII) {
|
||||
u16 media2advert[] = { 0x20, 0x40, 0x03e0, 0x60, 0x80, 0x100, 0x200 };
|
||||
static const u16 media2advert[] = { 0x20, 0x40, 0x03e0, 0x60,
|
||||
0x80, 0x100, 0x200 };
|
||||
tp->mii_advertise = media2advert[tp->default_port - 9];
|
||||
tp->mii_advertise |= (tp->flags & HAS_8023X); /* Matching bits! */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user