Skip to content

Commit 9eca345

Browse files
masahir0yvineetgarc
authored andcommitted
arc: ptrace: hard-code "arc" instead of UTS_MACHINE
ARC uses the UTS_MACHINE defined in the top Makefile as follows: UTS_MACHINE := $(ARCH) We know it is "arc" when we are building the kernel for ARC. Hard-code user_regset_view::name, like many other architectures do. Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
1 parent 4c13ca8 commit 9eca345

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

arch/arc/kernel/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
44
#
55

6-
# Pass UTS_MACHINE for user_regset definition
7-
CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
8-
96
obj-y := arcksyms.o setup.o irq.o reset.o ptrace.o process.o devtree.o
107
obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o
118
obj-$(CONFIG_ISA_ARCOMPACT) += entry-compact.o intc-compact.o

arch/arc/kernel/ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static const struct user_regset arc_regsets[] = {
253253
};
254254

255255
static const struct user_regset_view user_arc_view = {
256-
.name = UTS_MACHINE,
256+
.name = "arc",
257257
.e_machine = EM_ARC_INUSE,
258258
.regsets = arc_regsets,
259259
.n = ARRAY_SIZE(arc_regsets)

0 commit comments

Comments
 (0)