diff options
author | Harald Freudenberger <freude@linux.vnet.ibm.com> | 2018-04-04 01:14:17 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-04-10 01:39:01 -0400 |
commit | efda7adec7a5ad7aa3745df7c6740727b00ac8ba (patch) | |
tree | a7206948f94b817420fc30aaf18aee92239ac01e | |
parent | 67f7c7039978a38bacf7e4a2079854630225ab3c (diff) |
s390/zcrypt: Make ap init functions static.
The ap init functions ap_module_init and ap_debug_init are
only used within ap_bus.c. Make these functions static and
do not declare them in any header file any more.
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/crypto/ap_bus.c | 4 | ||||
-rw-r--r-- | drivers/s390/crypto/ap_debug.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index dfed422954b4..35a0c2b52f82 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c | |||
@@ -1196,7 +1196,7 @@ static void ap_config_timeout(struct timer_list *unused) | |||
1196 | queue_work(system_long_wq, &ap_scan_work); | 1196 | queue_work(system_long_wq, &ap_scan_work); |
1197 | } | 1197 | } |
1198 | 1198 | ||
1199 | int __init ap_debug_init(void) | 1199 | static int __init ap_debug_init(void) |
1200 | { | 1200 | { |
1201 | ap_dbf_info = debug_register("ap", 1, 1, | 1201 | ap_dbf_info = debug_register("ap", 1, 1, |
1202 | DBF_MAX_SPRINTF_ARGS * sizeof(long)); | 1202 | DBF_MAX_SPRINTF_ARGS * sizeof(long)); |
@@ -1211,7 +1211,7 @@ int __init ap_debug_init(void) | |||
1211 | * | 1211 | * |
1212 | * Initializes the module. | 1212 | * Initializes the module. |
1213 | */ | 1213 | */ |
1214 | int __init ap_module_init(void) | 1214 | static int __init ap_module_init(void) |
1215 | { | 1215 | { |
1216 | int max_domain_id; | 1216 | int max_domain_id; |
1217 | int rc, i; | 1217 | int rc, i; |
diff --git a/drivers/s390/crypto/ap_debug.h b/drivers/s390/crypto/ap_debug.h index 6a9d77c75ec3..dc675eb5aef6 100644 --- a/drivers/s390/crypto/ap_debug.h +++ b/drivers/s390/crypto/ap_debug.h | |||
@@ -23,7 +23,4 @@ | |||
23 | 23 | ||
24 | extern debug_info_t *ap_dbf_info; | 24 | extern debug_info_t *ap_dbf_info; |
25 | 25 | ||
26 | int ap_debug_init(void); | ||
27 | void ap_debug_exit(void); | ||
28 | |||
29 | #endif /* AP_DEBUG_H */ | 26 | #endif /* AP_DEBUG_H */ |