aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorThomas Richter <tmricht@linux.vnet.ibm.com>2014-10-22 06:18:04 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-26 22:21:39 -0400
commit56530d684e40a3a41fe390b065655fb229541c47 (patch)
tree1022962efc542574f11ad73f5ffd29403f7f6cb8 /drivers/s390
parent8a5931484853c161801be9fd6824881824cd834e (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.h4
-rw-r--r--drivers/s390/net/qeth_l3_main.c8
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
45void qeth_l3_ipaddr4_to_string(const __u8 *, char *);
46int qeth_l3_string_to_ipaddr4(const char *, __u8 *);
47void qeth_l3_ipaddr6_to_string(const __u8 *, char *);
48int qeth_l3_string_to_ipaddr6(const char *, __u8 *);
49void qeth_l3_ipaddr_to_string(enum qeth_prot_versions, const __u8 *, char *); 45void qeth_l3_ipaddr_to_string(enum qeth_prot_versions, const __u8 *, char *);
50int qeth_l3_string_to_ipaddr(const char *, enum qeth_prot_versions, __u8 *); 46int qeth_l3_string_to_ipaddr(const char *, enum qeth_prot_versions, __u8 *);
51int qeth_l3_create_device_attributes(struct device *); 47int 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
58void qeth_l3_ipaddr4_to_string(const __u8 *addr, char *buf) 58static 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
63int qeth_l3_string_to_ipaddr4(const char *buf, __u8 *addr) 63static 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
81void qeth_l3_ipaddr6_to_string(const __u8 *addr, char *buf) 81static 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
86int qeth_l3_string_to_ipaddr6(const char *buf, __u8 *addr) 86static 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;