Skip to content

Commit 82c525b

Browse files
Al Viroarndb
authored andcommitted
alpha: trim the unused stuff from asm-offsets.c
Out of 21 constants, only 6 are used... Signed-off-by: Al Viro <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Acked-by: Matt Turner <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 20e84a6 commit 82c525b

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

arch/alpha/kernel/asm-offsets.c

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,16 @@
1010
#include <linux/sched.h>
1111
#include <linux/ptrace.h>
1212
#include <linux/kbuild.h>
13-
#include <asm/io.h>
13+
#include <asm/machvec.h>
1414

1515
static void __used foo(void)
1616
{
17-
DEFINE(TI_TASK, offsetof(struct thread_info, task));
1817
DEFINE(TI_FLAGS, offsetof(struct thread_info, flags));
19-
DEFINE(TI_CPU, offsetof(struct thread_info, cpu));
2018
DEFINE(TI_FP, offsetof(struct thread_info, fp));
2119
DEFINE(TI_STATUS, offsetof(struct thread_info, status));
2220
BLANK();
2321

24-
DEFINE(TASK_BLOCKED, offsetof(struct task_struct, blocked));
25-
DEFINE(TASK_CRED, offsetof(struct task_struct, cred));
26-
DEFINE(TASK_REAL_PARENT, offsetof(struct task_struct, real_parent));
27-
DEFINE(TASK_GROUP_LEADER, offsetof(struct task_struct, group_leader));
28-
DEFINE(TASK_TGID, offsetof(struct task_struct, tgid));
29-
BLANK();
30-
31-
DEFINE(CRED_UID, offsetof(struct cred, uid));
32-
DEFINE(CRED_EUID, offsetof(struct cred, euid));
33-
DEFINE(CRED_GID, offsetof(struct cred, gid));
34-
DEFINE(CRED_EGID, offsetof(struct cred, egid));
35-
BLANK();
36-
3722
DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs));
38-
DEFINE(PT_PTRACED, PT_PTRACED);
39-
DEFINE(CLONE_VM, CLONE_VM);
40-
DEFINE(CLONE_UNTRACED, CLONE_UNTRACED);
41-
DEFINE(SIGCHLD, SIGCHLD);
4223
BLANK();
4324

4425
DEFINE(HAE_CACHE, offsetof(struct alpha_machine_vector, hae_cache));

0 commit comments

Comments
 (0)