[PATCH] s390/tape: Add __init/__exit annotations to module init/exit funcs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add missing __init/__exit annotations to module init/exit funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx>
---
 drivers/s390/char/tape_34xx.c | 4 ++--
 drivers/s390/char/tape_3590.c | 4 ++--
 drivers/s390/char/tape_core.c | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/s390/char/tape_34xx.c b/drivers/s390/char/tape_34xx.c
index 751945fb6793..091018d62450 100644
--- a/drivers/s390/char/tape_34xx.c
+++ b/drivers/s390/char/tape_34xx.c
@@ -1194,7 +1194,7 @@ static struct ccw_driver tape_34xx_driver = {
 	.int_class = IRQIO_TAP,
 };
 
-static int
+static int __init
 tape_34xx_init (void)
 {
 	int rc;
@@ -1215,7 +1215,7 @@ tape_34xx_init (void)
 	return rc;
 }
 
-static void
+static void __exit
 tape_34xx_exit(void)
 {
 	ccw_driver_unregister(&tape_34xx_driver);
diff --git a/drivers/s390/char/tape_3590.c b/drivers/s390/char/tape_3590.c
index 0d484fe43d7e..a3cf48d971ea 100644
--- a/drivers/s390/char/tape_3590.c
+++ b/drivers/s390/char/tape_3590.c
@@ -1657,7 +1657,7 @@ static struct ccw_driver tape_3590_driver = {
 /*
  * Setup discipline structure.
  */
-static int
+static int __init
 tape_3590_init(void)
 {
 	int rc;
@@ -1684,7 +1684,7 @@ tape_3590_init(void)
 	return rc;
 }
 
-static void
+static void __exit
 tape_3590_exit(void)
 {
 	ccw_driver_unregister(&tape_3590_driver);
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c
index a6d2a4792185..c660e661e8d8 100644
--- a/drivers/s390/char/tape_core.c
+++ b/drivers/s390/char/tape_core.c
@@ -1271,7 +1271,7 @@ tape_mtop(struct tape_device *device, int mt_op, int mt_count)
 /*
  * Tape init function.
  */
-static int
+static int __init
 tape_init (void)
 {
 	TAPE_DBF_AREA = debug_register ( "tape", 2, 2, 4*sizeof(long));
@@ -1288,7 +1288,7 @@ tape_init (void)
 /*
  * Tape exit function.
  */
-static void
+static void __exit
 tape_exit(void)
 {
 	DBF_EVENT(6, "tape exit\n");
-- 
2.17.1




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux