Skip to content

Commit

Permalink
powerpc/aout: Fix struct user definition to use user_pt_regs
Browse files Browse the repository at this point in the history
I'm pretty sure this is dead code, it's only used by the a.out core
dump code, and we don't support a.out. We should remove it.

But while it's in the tree it should be using the ABI version of
pt_regs which is called user_pt_regs in the kernel, because the whole
struct is written to the core dump and so its size shouldn't change.

Note this isn't a uapi header so we don't need an ifdef.

Fixes: 002af93 ("powerpc: Split user/kernel definitions of struct pt_regs")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Michael Ellerman committed Oct 19, 2018
1 parent 22a3d03 commit 6ce7bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* to write an integer number of pages.
*/
struct user {
struct pt_regs regs; /* entire machine state */
struct user_pt_regs regs; /* entire machine state */
size_t u_tsize; /* text size (pages) */
size_t u_dsize; /* data size (pages) */
size_t u_ssize; /* stack size (pages) */
Expand Down

0 comments on commit 6ce7bff

Please sign in to comment.