lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220926110453.1316273-1-ruanjinjie@huawei.com>
Date:   Mon, 26 Sep 2022 19:04:53 +0800
From:   ruanjinjie <ruanjinjie@...wei.com>
To:     <jikos@...nel.org>, <benjamin.tissoires@...hat.com>,
        <linux-input@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC:     <ruanjinjie@...wei.com>
Subject: [PATCH -next] HID: cmedia: Add __init/__exit annotations to module init/exit funcs

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

Signed-off-by: ruanjinjie <ruanjinjie@...wei.com>
---
 drivers/hid/hid-cmedia.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hid/hid-cmedia.c b/drivers/hid/hid-cmedia.c
index cab42047bc99..c5bd14544cdc 100644
--- a/drivers/hid/hid-cmedia.c
+++ b/drivers/hid/hid-cmedia.c
@@ -222,7 +222,7 @@ static struct hid_driver cmhid_hs100b_driver = {
 	.report_fixup = cmhid_hs100b_report_fixup,
 };
 
-static int cmedia_init(void)
+static int __init cmedia_init(void)
 {
 	int ret;
 
@@ -238,7 +238,7 @@ static int cmedia_init(void)
 }
 module_init(cmedia_init);
 
-static void cmedia_exit(void)
+static void __exit cmedia_exit(void)
 {
 		hid_unregister_driver(&cmhid_driver);
 		hid_unregister_driver(&cmhid_hs100b_driver);
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ