Skip to content

Commit

Permalink
asm/user.h: killed unused macros
Browse files Browse the repository at this point in the history
Some of them used to be used by libbfd for a.out coredump handling.
Seeing that
	* libbfd has their copies anyway
	* we don't export them into userland headers
	* we don't support a.out coredumps anymore
let's bury the definitions.  They never had in-kernel
users anyway...

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jan 31, 2022
1 parent 1e2d846 commit 0c9dceb
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 47 deletions.
6 changes: 0 additions & 6 deletions arch/alpha/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,4 @@ struct user {
char u_comm[32]; /* user command name */
};

#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_DATA_START_ADDR (u.start_data)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif /* _ALPHA_USER_H */
4 changes: 0 additions & 4 deletions arch/arm/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ struct user{
struct user_fp_struct * u_fp0;/* Used by gdb to help find the values for */
/* the FP registers. */
};
#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

/*
* User specific VFP registers. If only VFPv2 is present, registers 16 to 31
Expand Down
4 changes: 0 additions & 4 deletions arch/h8300/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,5 @@ struct user {
unsigned long magic; /* To uniquely identify a core file */
char u_comm[32]; /* User command that was responsible */
};
#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif
6 changes: 0 additions & 6 deletions arch/ia64/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,4 @@ struct user {
char u_comm[32]; /* user command name */
};

#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_DATA_START_ADDR (u.start_data)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif /* _ASM_IA64_USER_H */
4 changes: 0 additions & 4 deletions arch/m68k/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,5 @@ struct user{
unsigned long magic; /* To uniquely identify a core file */
char u_comm[32]; /* User command that was responsible */
};
#define NBPG 4096
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif
5 changes: 0 additions & 5 deletions arch/powerpc/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,4 @@ struct user {
char u_comm[32]; /* user command name */
};

#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_DATA_START_ADDR (u.start_data)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
#endif /* _ASM_POWERPC_USER_H */
4 changes: 0 additions & 4 deletions arch/s390/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,5 @@ struct user {
unsigned long magic; /* To uniquely identify a core file */
char u_comm[32]; /* User command that was responsible */
};
#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif /* _S390_USER_H */
6 changes: 0 additions & 6 deletions arch/sh/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,4 @@ struct user {
char u_comm[32]; /* user command name */
};

#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_DATA_START_ADDR (u.start_data)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif /* __ASM_SH_USER_H */
4 changes: 0 additions & 4 deletions arch/x86/include/asm/user_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,5 @@ struct user{
char u_comm[32]; /* User command that was responsible */
int u_debugreg[8];
};
#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif /* _ASM_X86_USER_32_H */
4 changes: 0 additions & 4 deletions arch/x86/include/asm/user_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,5 @@ struct user {
unsigned long error_code; /* CPU error code or 0 */
unsigned long fault_address; /* CR3 or 0 */
};
#define NBPG PAGE_SIZE
#define UPAGES 1
#define HOST_TEXT_START_ADDR (u.start_code)
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)

#endif /* _ASM_X86_USER_64_H */

0 comments on commit 0c9dceb

Please sign in to comment.