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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220911033823.127075-1-xiujianfeng@huawei.com>
Date:   Sun, 11 Sep 2022 11:38:23 +0800
From:   Xiu Jianfeng <xiujianfeng@...wei.com>
To:     <dvhart@...radead.org>, <andy@...radead.org>, <tglx@...utronix.de>,
        <mingo@...hat.com>, <bp@...en8.de>, <dave.hansen@...ux.intel.com>,
        <hpa@...or.com>
CC:     <x86@...nel.org>, <platform-driver-x86@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>
Subject: [PATCH] x86: platform: add __init/__exit annotations to module init/exit funcs

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

Signed-off-by: Xiu Jianfeng <xiujianfeng@...wei.com>
---
 arch/x86/platform/iris/iris.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/platform/iris/iris.c b/arch/x86/platform/iris/iris.c
index b42bfdab01a9..d3381340c5f3 100644
--- a/arch/x86/platform/iris/iris.c
+++ b/arch/x86/platform/iris/iris.c
@@ -88,7 +88,7 @@ static struct resource iris_resources[] = {
 
 static struct platform_device *iris_device;
 
-static int iris_init(void)
+static int __init iris_init(void)
 {
 	int ret;
 	if (force != 1) {
@@ -112,7 +112,7 @@ static int iris_init(void)
 	return 0;
 }
 
-static void iris_exit(void)
+static void __exit iris_exit(void)
 {
 	platform_device_unregister(iris_device);
 	platform_driver_unregister(&iris_driver);
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ