]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/zcrypt: Make ap init functions static.
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Wed, 4 Apr 2018 05:14:17 +0000 (07:14 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 Apr 2018 05:39:01 +0000 (07:39 +0200)
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>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_debug.h

index dfed422954b418d03359a885aadd844ef4316c8a..35a0c2b52f823777bc2dc72820c8d8a97195211b 100644 (file)
@@ -1196,7 +1196,7 @@ static void ap_config_timeout(struct timer_list *unused)
        queue_work(system_long_wq, &ap_scan_work);
 }
 
-int __init ap_debug_init(void)
+static int __init ap_debug_init(void)
 {
        ap_dbf_info = debug_register("ap", 1, 1,
                                     DBF_MAX_SPRINTF_ARGS * sizeof(long));
@@ -1211,7 +1211,7 @@ int __init ap_debug_init(void)
  *
  * Initializes the module.
  */
-int __init ap_module_init(void)
+static int __init ap_module_init(void)
 {
        int max_domain_id;
        int rc, i;
index 6a9d77c75ec385ef14fe5d1a3d2fd4135214d5bc..dc675eb5aef6fe64c579f657867e4ccca8a4a43d 100644 (file)
@@ -23,7 +23,4 @@
 
 extern debug_info_t *ap_dbf_info;
 
-int ap_debug_init(void);
-void ap_debug_exit(void);
-
 #endif /* AP_DEBUG_H */