Skip to content

Commit efda7ad

Browse files
Harald FreudenbergerMartin Schwidefsky
authored andcommitted
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>
1 parent 67f7c70 commit efda7ad

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

drivers/s390/crypto/ap_bus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ static void ap_config_timeout(struct timer_list *unused)
11961196
queue_work(system_long_wq, &ap_scan_work);
11971197
}
11981198

1199-
int __init ap_debug_init(void)
1199+
static int __init ap_debug_init(void)
12001200
{
12011201
ap_dbf_info = debug_register("ap", 1, 1,
12021202
DBF_MAX_SPRINTF_ARGS * sizeof(long));
@@ -1211,7 +1211,7 @@ int __init ap_debug_init(void)
12111211
*
12121212
* Initializes the module.
12131213
*/
1214-
int __init ap_module_init(void)
1214+
static int __init ap_module_init(void)
12151215
{
12161216
int max_domain_id;
12171217
int rc, i;

drivers/s390/crypto/ap_debug.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,4 @@
2323

2424
extern debug_info_t *ap_dbf_info;
2525

26-
int ap_debug_init(void);
27-
void ap_debug_exit(void);
28-
2926
#endif /* AP_DEBUG_H */

0 commit comments

Comments
 (0)