diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-01 14:35:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-01 14:35:16 -0400 |
commit | 9a5467fd600669cda488771dac3e951034fe2b08 (patch) | |
tree | 20c3c73ff3571e525193aca20d3602161b4e90be /drivers/net/skfp/smt.c | |
parent | 676056132425ac425d7215cdaa8bd25582e07966 (diff) | |
parent | 00b1304c4ca81dd893973cc620b87a5c3ff3f660 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (46 commits)
tcp: MD5: Fix IPv6 signatures
skbuff: add missing kernel-doc for do_not_encrypt
net/ipv4/route.c: fix build error
tcp: MD5: Fix MD5 signatures on certain ACK packets
ipv6: Fix ip6_xmit to send fragments if ipfragok is true
ipvs: Move userspace definitions to include/linux/ip_vs.h
netdev: Fix lockdep warnings in multiqueue configurations.
netfilter: xt_hashlimit: fix race between htable_destroy and htable_gc
netfilter: ipt_recent: fix race between recent_mt_destroy and proc manipulations
netfilter: nf_conntrack_tcp: decrease timeouts while data in unacknowledged
irda: replace __FUNCTION__ with __func__
nsc-ircc: default to dongle type 9 on IBM hardware
bluetooth: add quirks for a few hci_usb devices
hysdn: remove the packed attribute from PofTimStamp_tag
isdn: use the common ascii hex helpers
tg3: adapt tg3 to use reworked PCI PM code
atm: fix direct casts of pointers to u32 in the InterPhase driver
atm: fix const assignment/discard warnings in the ATM networking driver
net: use the common ascii hex helpers
random32: seeding improvement
...
Diffstat (limited to 'drivers/net/skfp/smt.c')
-rw-r--r-- | drivers/net/skfp/smt.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c index ffbfb1b79f9..805383b33d3 100644 --- a/drivers/net/skfp/smt.c +++ b/drivers/net/skfp/smt.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "h/smc.h" | 19 | #include "h/smc.h" |
20 | #include "h/smt_p.h" | 20 | #include "h/smt_p.h" |
21 | #include <linux/bitrev.h> | 21 | #include <linux/bitrev.h> |
22 | #include <linux/kernel.h> | ||
22 | 23 | ||
23 | #define KERNEL | 24 | #define KERNEL |
24 | #include "h/smtstate.h" | 25 | #include "h/smtstate.h" |
@@ -1730,20 +1731,18 @@ void fddi_send_antc(struct s_smc *smc, struct fddi_addr *dest) | |||
1730 | #endif | 1731 | #endif |
1731 | 1732 | ||
1732 | #ifdef DEBUG | 1733 | #ifdef DEBUG |
1733 | #define hextoasc(x) "0123456789abcdef"[x] | ||
1734 | |||
1735 | char *addr_to_string(struct fddi_addr *addr) | 1734 | char *addr_to_string(struct fddi_addr *addr) |
1736 | { | 1735 | { |
1737 | int i ; | 1736 | int i ; |
1738 | static char string[6*3] = "****" ; | 1737 | static char string[6*3] = "****" ; |
1739 | 1738 | ||
1740 | for (i = 0 ; i < 6 ; i++) { | 1739 | for (i = 0 ; i < 6 ; i++) { |
1741 | string[i*3] = hextoasc((addr->a[i]>>4)&0xf) ; | 1740 | string[i * 3] = hex_asc_hi(addr->a[i]); |
1742 | string[i*3+1] = hextoasc((addr->a[i])&0xf) ; | 1741 | string[i * 3 + 1] = hex_asc_lo(addr->a[i]); |
1743 | string[i*3+2] = ':' ; | 1742 | string[i * 3 + 2] = ':'; |
1744 | } | 1743 | } |
1745 | string[5*3+2] = 0 ; | 1744 | string[5 * 3 + 2] = 0; |
1746 | return(string) ; | 1745 | return(string); |
1747 | } | 1746 | } |
1748 | #endif | 1747 | #endif |
1749 | 1748 | ||