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: <1471678087-5149-1-git-send-email-iamyooon@gmail.com>
Date:   Sat, 20 Aug 2016 16:28:07 +0900
From:   "seokhoon.yoon" <iamyooon@...il.com>
To:     Ingo Molnar <mingo@...hat.com>
Cc:     Peter Zijlstra <peterz@...radead.org>, iamyooon@...il.com,
        linux-kernel@...r.kernel.org
Subject: [PATCH 1/1] sched/clock: add __init attribute to sched_clock_init()

sched_clock_init() is only called from start_kernel().
So add __init attritute to it.

Signed-off-by: seokhoon.yoon <iamyooon@...il.com>
---
 kernel/sched/clock.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/clock.c b/kernel/sched/clock.c
index e85a725..e5795e8 100644
--- a/kernel/sched/clock.c
+++ b/kernel/sched/clock.c
@@ -147,7 +147,7 @@ static inline struct sched_clock_data *cpu_sdc(int cpu)
 	return &per_cpu(sched_clock_data, cpu);
 }
 
-void sched_clock_init(void)
+void __init sched_clock_init(void)
 {
 	u64 ktime_now = ktime_to_ns(ktime_get());
 	int cpu;
@@ -366,7 +366,7 @@ EXPORT_SYMBOL_GPL(sched_clock_idle_wakeup_event);
 
 #else /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */
 
-void sched_clock_init(void)
+void __init sched_clock_init(void)
 {
 	sched_clock_running = 1;
 }
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ