Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Richter and committed by
David S. Miller
56530d68 8a593148

+4 -8
-4
drivers/s390/net/qeth_l3.h
··· 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 45 void qeth_l3_ipaddr_to_string(enum qeth_prot_versions, const __u8 *, char *); 50 46 int qeth_l3_string_to_ipaddr(const char *, enum qeth_prot_versions, __u8 *); 51 47 int qeth_l3_create_device_attributes(struct device *);
+4 -4
drivers/s390/net/qeth_l3_main.c
··· 55 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 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 65 int count = 0, rc = 0; 66 66 unsigned int in[4]; ··· 78 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 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 88 const char *end, *end_tmp, *start; 89 89 __u16 *in;