diff options
| author | David S. Miller <davem@davemloft.net> | 2013-11-04 13:48:30 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-11-04 13:48:30 -0500 |
| commit | 394efd19d5fcae936261bd48e5b33b21897aacf8 (patch) | |
| tree | c48cf3ddbb07fd87309f1abdf31a27c71330e587 /drivers/net/wan | |
| parent | f421436a591d34fa5279b54a96ac07d70250cc8d (diff) | |
| parent | be408cd3e1fef73e9408b196a79b9934697fe3b1 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/ethernet/emulex/benet/be.h
drivers/net/netconsole.c
net/bridge/br_private.h
Three mostly trivial conflicts.
The net/bridge/br_private.h conflict was a function signature (argument
addition) change overlapping with the extern removals from Joe Perches.
In drivers/net/netconsole.c we had one change adjusting a printk message
whilst another changed "printk(KERN_INFO" into "pr_info(".
Lastly, the emulex change was a new inline function addition overlapping
with Joe Perches's extern removals.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
| -rw-r--r-- | drivers/net/wan/sbni.c | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c index 5bbcb5e3ee0c..388ddf60a66d 100644 --- a/drivers/net/wan/sbni.c +++ b/drivers/net/wan/sbni.c | |||
| @@ -148,10 +148,6 @@ static int enslave( struct net_device *, struct net_device * ); | |||
| 148 | static int emancipate( struct net_device * ); | 148 | static int emancipate( struct net_device * ); |
| 149 | #endif | 149 | #endif |
| 150 | 150 | ||
| 151 | #ifdef __i386__ | ||
| 152 | #define ASM_CRC 1 | ||
| 153 | #endif | ||
| 154 | |||
| 155 | static const char version[] = | 151 | static const char version[] = |
| 156 | "Granch SBNI12 driver ver 5.0.1 Jun 22 2001 Denis I.Timofeev.\n"; | 152 | "Granch SBNI12 driver ver 5.0.1 Jun 22 2001 Denis I.Timofeev.\n"; |
| 157 | 153 | ||
| @@ -1551,88 +1547,6 @@ __setup( "sbni=", sbni_setup ); | |||
| 1551 | 1547 | ||
| 1552 | /* -------------------------------------------------------------------------- */ | 1548 | /* -------------------------------------------------------------------------- */ |
| 1553 | 1549 | ||
| 1554 | #ifdef ASM_CRC | ||
| 1555 | |||
| 1556 | static u32 | ||
| 1557 | calc_crc32( u32 crc, u8 *p, u32 len ) | ||
| 1558 | { | ||
| 1559 | register u32 _crc; | ||
| 1560 | _crc = crc; | ||
| 1561 | |||
| 1562 | __asm__ __volatile__ ( | ||
| 1563 | "xorl %%ebx, %%ebx\n" | ||
| 1564 | "movl %2, %%esi\n" | ||
| 1565 | "movl %3, %%ecx\n" | ||
| 1566 | "movl $crc32tab, %%edi\n" | ||
| 1567 | "shrl $2, %%ecx\n" | ||
| 1568 | "jz 1f\n" | ||
| 1569 | |||
| 1570 | ".align 4\n" | ||
| 1571 | "0:\n" | ||
| 1572 | "movb %%al, %%bl\n" | ||
| 1573 | "movl (%%esi), %%edx\n" | ||
| 1574 | "shrl $8, %%eax\n" | ||
| 1575 | "xorb %%dl, %%bl\n" | ||
| 1576 | "shrl $8, %%edx\n" | ||
| 1577 | "xorl (%%edi,%%ebx,4), %%eax\n" | ||
| 1578 | |||
| 1579 | "movb %%al, %%bl\n" | ||
| 1580 | "shrl $8, %%eax\n" | ||
| 1581 | "xorb %%dl, %%bl\n" | ||
| 1582 | "shrl $8, %%edx\n" | ||
| 1583 | "xorl (%%edi,%%ebx,4), %%eax\n" | ||
| 1584 | |||
| 1585 | "movb %%al, %%bl\n" | ||
| 1586 | "shrl $8, %%eax\n" | ||
| 1587 | "xorb %%dl, %%bl\n" | ||
| 1588 | "movb %%dh, %%dl\n" | ||
| 1589 | "xorl (%%edi,%%ebx,4), %%eax\n" | ||
| 1590 | |||
| 1591 | "movb %%al, %%bl\n" | ||
| 1592 | "shrl $8, %%eax\n" | ||
| 1593 | "xorb %%dl, %%bl\n" | ||
| 1594 | "addl $4, %%esi\n" | ||
| 1595 | "xorl (%%edi,%%ebx,4), %%eax\n" | ||
| 1596 | |||
| 1597 | "decl %%ecx\n" | ||
| 1598 | "jnz 0b\n" | ||
| 1599 | |||
| 1600 | "1:\n" | ||
| 1601 | "movl %3, %%ecx\n" | ||
| 1602 | "andl $3, %%ecx\n" | ||
| 1603 | "jz 2f\n" | ||
| 1604 | |||
| 1605 | "movb %%al, %%bl\n" | ||
| 1606 | "shrl $8, %%eax\n" | ||
| 1607 | "xorb (%%esi), %%bl\n" | ||
| 1608 | "xorl (%%edi,%%ebx,4), %%eax\n" | ||
| 1609 | |||
| 1610 | "decl %%ecx\n" | ||
| 1611 | "jz 2f\n" | ||
| 1612 | |||
| 1613 | "movb %%al, %%bl\n" | ||
| 1614 | "shrl $8, %%eax\n" | ||
| 1615 | "xorb 1(%%esi), %%bl\n" | ||
| 1616 | "xorl (%%edi,%%ebx,4), %%eax\n" | ||
| 1617 | |||
| 1618 | "decl %%ecx\n" | ||
| 1619 | "jz 2f\n" | ||
| 1620 | |||
| 1621 | "movb %%al, %%bl\n" | ||
| 1622 | "shrl $8, %%eax\n" | ||
| 1623 | "xorb 2(%%esi), %%bl\n" | ||
| 1624 | "xorl (%%edi,%%ebx,4), %%eax\n" | ||
| 1625 | "2:\n" | ||
| 1626 | : "=a" (_crc) | ||
| 1627 | : "0" (_crc), "g" (p), "g" (len) | ||
| 1628 | : "bx", "cx", "dx", "si", "di" | ||
| 1629 | ); | ||
| 1630 | |||
| 1631 | return _crc; | ||
| 1632 | } | ||
| 1633 | |||
| 1634 | #else /* ASM_CRC */ | ||
| 1635 | |||
| 1636 | static u32 | 1550 | static u32 |
| 1637 | calc_crc32( u32 crc, u8 *p, u32 len ) | 1551 | calc_crc32( u32 crc, u8 *p, u32 len ) |
| 1638 | { | 1552 | { |
| @@ -1642,9 +1556,6 @@ calc_crc32( u32 crc, u8 *p, u32 len ) | |||
| 1642 | return crc; | 1556 | return crc; |
| 1643 | } | 1557 | } |
| 1644 | 1558 | ||
| 1645 | #endif /* ASM_CRC */ | ||
| 1646 | |||
| 1647 | |||
| 1648 | static u32 crc32tab[] __attribute__ ((aligned(8))) = { | 1559 | static u32 crc32tab[] __attribute__ ((aligned(8))) = { |
| 1649 | 0xD202EF8D, 0xA505DF1B, 0x3C0C8EA1, 0x4B0BBE37, | 1560 | 0xD202EF8D, 0xA505DF1B, 0x3C0C8EA1, 0x4B0BBE37, |
| 1650 | 0xD56F2B94, 0xA2681B02, 0x3B614AB8, 0x4C667A2E, | 1561 | 0xD56F2B94, 0xA2681B02, 0x3B614AB8, 0x4C667A2E, |
