Skip to content

Commit fbb3fcb

Browse files
dhowellsdavem330
authored andcommitted
[AFS]: Fix use of __exit functions from __init path
Fix use of __exit functions from __init path. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 80c72fe commit fbb3fcb

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/afs/callback.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ int __init afs_callback_update_init(void)
468468
/*
469469
* shut down the callback update process
470470
*/
471-
void __exit afs_callback_update_kill(void)
471+
void afs_callback_update_kill(void)
472472
{
473473
destroy_workqueue(afs_callback_update_worker);
474474
}

‎fs/afs/internal.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ extern void afs_give_up_callback(struct afs_vnode *);
392392
extern void afs_dispatch_give_up_callbacks(struct work_struct *);
393393
extern void afs_flush_callback_breaks(struct afs_server *);
394394
extern int __init afs_callback_update_init(void);
395-
extern void __exit afs_callback_update_kill(void);
395+
extern void afs_callback_update_kill(void);
396396

397397
/*
398398
* cell.c
@@ -591,7 +591,7 @@ extern struct afs_vlocation *afs_vlocation_lookup(struct afs_cell *,
591591
struct key *,
592592
const char *, size_t);
593593
extern void afs_put_vlocation(struct afs_vlocation *);
594-
extern void __exit afs_vlocation_purge(void);
594+
extern void afs_vlocation_purge(void);
595595

596596
/*
597597
* vnode.c

‎fs/afs/vlocation.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ int __init afs_vlocation_update_init(void)
602602
/*
603603
* discard all the volume location records for rmmod
604604
*/
605-
void __exit afs_vlocation_purge(void)
605+
void afs_vlocation_purge(void)
606606
{
607607
afs_vlocation_timeout = 0;
608608

0 commit comments

Comments
 (0)