[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200618161750.178659-2-masahiroy@kernel.org>
Date: Fri, 19 Jun 2020 01:17:50 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: David Howells <dhowells@...hat.com>
Cc: Masahiro Yamada <masahiroy@...nel.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Ingo Molnar <mingo@...nel.org>, Marco Elver <elver@...gle.com>,
Mike Rapoport <rppt@...ux.ibm.com>,
"Paul E. McKenney" <paulmck@...nel.org>,
Sami Tolvanen <samitolvanen@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] init: annotate init_task as __init_task_data for all arches
__init_task_data is no-op when CONFIG_ARCH_TASK_STRUCT_ON_STACK=n,
so you can always annotate init_task as __init_task_data.
Signed-off-by: Masahiro Yamada <masahiroy@...nel.org>
---
init/init_task.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/init/init_task.c b/init/init_task.c
index 15089d15010a..0110b2941c4d 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -61,11 +61,7 @@ unsigned long init_shadow_call_stack[SCS_SIZE / sizeof(long)]
* Set up the first task table, touch at your own risk!. Base=0,
* limit=0x1fffff (=2MB)
*/
-struct task_struct init_task
-#ifdef CONFIG_ARCH_TASK_STRUCT_ON_STACK
- __init_task_data
-#endif
-= {
+struct task_struct init_task __init_task_data = {
#ifdef CONFIG_THREAD_INFO_IN_TASK
.thread_info = INIT_THREAD_INFO(init_task),
.stack_refcount = REFCOUNT_INIT(1),
--
2.25.1
Powered by blists - more mailing lists