diff options
author | Thomas Richter <tmricht@linux.vnet.ibm.com> | 2014-10-22 06:18:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-26 22:21:39 -0400 |
commit | 56530d684e40a3a41fe390b065655fb229541c47 (patch) | |
tree | 1022962efc542574f11ad73f5ffd29403f7f6cb8 /drivers/s390 | |
parent | 8a5931484853c161801be9fd6824881824cd834e (diff) |
qeth: make local functions static in qeth_l3 module
This patch makes 4 local functions static and removes
the prototypes from the header file.
Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Signed-off-by: Frank Blaschka <blaschka@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_l3.h | 4 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/drivers/s390/net/qeth_l3.h b/drivers/s390/net/qeth_l3.h index 29c1c00e3a0f..551a4b4c03fd 100644 --- a/drivers/s390/net/qeth_l3.h +++ b/drivers/s390/net/qeth_l3.h | |||
@@ -42,10 +42,6 @@ struct qeth_ipato_entry { | |||
42 | }; | 42 | }; |
43 | 43 | ||
44 | 44 | ||
45 | void qeth_l3_ipaddr4_to_string(const __u8 *, char *); | ||
46 | int qeth_l3_string_to_ipaddr4(const char *, __u8 *); | ||
47 | void qeth_l3_ipaddr6_to_string(const __u8 *, char *); | ||
48 | int qeth_l3_string_to_ipaddr6(const char *, __u8 *); | ||
49 | void qeth_l3_ipaddr_to_string(enum qeth_prot_versions, const __u8 *, char *); | 45 | void qeth_l3_ipaddr_to_string(enum qeth_prot_versions, const __u8 *, char *); |
50 | int qeth_l3_string_to_ipaddr(const char *, enum qeth_prot_versions, __u8 *); | 46 | int qeth_l3_string_to_ipaddr(const char *, enum qeth_prot_versions, __u8 *); |
51 | int qeth_l3_create_device_attributes(struct device *); | 47 | int qeth_l3_create_device_attributes(struct device *); |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 857a990c74c2..625227ad16ee 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -55,12 +55,12 @@ static int qeth_l3_isxdigit(char *buf) | |||
55 | return 1; | 55 | return 1; |
56 | } | 56 | } |
57 | 57 | ||
58 | void qeth_l3_ipaddr4_to_string(const __u8 *addr, char *buf) | 58 | static void qeth_l3_ipaddr4_to_string(const __u8 *addr, char *buf) |
59 | { | 59 | { |
60 | sprintf(buf, "%i.%i.%i.%i", addr[0], addr[1], addr[2], addr[3]); | 60 | sprintf(buf, "%i.%i.%i.%i", addr[0], addr[1], addr[2], addr[3]); |
61 | } | 61 | } |
62 | 62 | ||
63 | int qeth_l3_string_to_ipaddr4(const char *buf, __u8 *addr) | 63 | static int qeth_l3_string_to_ipaddr4(const char *buf, __u8 *addr) |
64 | { | 64 | { |
65 | int count = 0, rc = 0; | 65 | int count = 0, rc = 0; |
66 | unsigned int in[4]; | 66 | unsigned int in[4]; |
@@ -78,12 +78,12 @@ int qeth_l3_string_to_ipaddr4(const char *buf, __u8 *addr) | |||
78 | return 0; | 78 | return 0; |
79 | } | 79 | } |
80 | 80 | ||
81 | void qeth_l3_ipaddr6_to_string(const __u8 *addr, char *buf) | 81 | static void qeth_l3_ipaddr6_to_string(const __u8 *addr, char *buf) |
82 | { | 82 | { |
83 | sprintf(buf, "%pI6", addr); | 83 | sprintf(buf, "%pI6", addr); |
84 | } | 84 | } |
85 | 85 | ||
86 | int qeth_l3_string_to_ipaddr6(const char *buf, __u8 *addr) | 86 | static int qeth_l3_string_to_ipaddr6(const char *buf, __u8 *addr) |
87 | { | 87 | { |
88 | const char *end, *end_tmp, *start; | 88 | const char *end, *end_tmp, *start; |
89 | __u16 *in; | 89 | __u16 *in; |