Skip to content

Commit

Permalink
s390/zcrypt: Make ap init functions static.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harald Freudenberger authored and Martin Schwidefsky committed Apr 10, 2018
1 parent 67f7c70 commit efda7ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/s390/crypto/ap_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions drivers/s390/crypto/ap_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit efda7ad

Please sign in to comment.