Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 7c3edd6

Browse files
author
Peter Zijlstra
committed
sched,arch: Remove unused TASK_STATE offsets
All 6 architectures define TASK_STATE in asm-offsets, but then never actually use it. Remove the definitions to make sure they never will. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 600642a commit 7c3edd6

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

arch/csky/kernel/asm-offsets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
int main(void)
1010
{
1111
/* offsets into the task struct */
12-
DEFINE(TASK_STATE, offsetof(struct task_struct, state));
1312
DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack));
1413
DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags));
1514
DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace));

arch/h8300/kernel/asm-offsets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
int main(void)
2222
{
2323
/* offsets into the task struct */
24-
OFFSET(TASK_STATE, task_struct, state);
2524
OFFSET(TASK_FLAGS, task_struct, flags);
2625
OFFSET(TASK_PTRACE, task_struct, ptrace);
2726
OFFSET(TASK_BLOCKED, task_struct, blocked);

arch/microblaze/kernel/asm-offsets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ int main(int argc, char *argv[])
7070

7171
/* struct task_struct */
7272
DEFINE(TS_THREAD_INFO, offsetof(struct task_struct, stack));
73-
DEFINE(TASK_STATE, offsetof(struct task_struct, state));
7473
DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags));
7574
DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace));
7675
DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked));

arch/mips/kernel/asm-offsets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ void output_ptreg_defines(void)
7878
void output_task_defines(void)
7979
{
8080
COMMENT("MIPS task_struct offsets.");
81-
OFFSET(TASK_STATE, task_struct, state);
8281
OFFSET(TASK_THREAD_INFO, task_struct, stack);
8382
OFFSET(TASK_FLAGS, task_struct, flags);
8483
OFFSET(TASK_MM, task_struct, mm);

arch/openrisc/kernel/asm-offsets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
int main(void)
3838
{
3939
/* offsets into the task_struct */
40-
DEFINE(TASK_STATE, offsetof(struct task_struct, state));
4140
DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags));
4241
DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace));
4342
DEFINE(TASK_THREAD, offsetof(struct task_struct, thread));

arch/parisc/kernel/asm-offsets.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
int main(void)
4343
{
4444
DEFINE(TASK_THREAD_INFO, offsetof(struct task_struct, stack));
45-
DEFINE(TASK_STATE, offsetof(struct task_struct, state));
4645
DEFINE(TASK_FLAGS, offsetof(struct task_struct, flags));
4746
DEFINE(TASK_SIGPENDING, offsetof(struct task_struct, pending));
4847
DEFINE(TASK_PTRACE, offsetof(struct task_struct, ptrace));

0 commit comments

Comments
 (0)