* [PATCH] arc: ptrace: hard-code "arc" instead of UTS_MACHINE
@ 2020-04-13 1:32 Masahiro Yamada
2020-04-13 5:34 ` Vineet Gupta
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2020-04-13 1:32 UTC (permalink / raw)
To: Vineet Gupta, linux-snps-arc
Cc: Enrico Weigelt, Masahiro Yamada, Oleg Nesterov, linux-kernel,
Greg Kroah-Hartman, Thomas Gleixner, Eugeniy Paltsev,
Allison Randal
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 <masahiroy@kernel.org>
---
arch/arc/kernel/Makefile | 3 ---
arch/arc/kernel/ptrace.c | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arc/kernel/Makefile b/arch/arc/kernel/Makefile
index 75539670431a..8c4fc4b54c14 100644
--- a/arch/arc/kernel/Makefile
+++ b/arch/arc/kernel/Makefile
@@ -3,9 +3,6 @@
# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
#
-# Pass UTS_MACHINE for user_regset definition
-CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
-
obj-y := arcksyms.o setup.o irq.o reset.o ptrace.o process.o devtree.o
obj-y += signal.o traps.o sys.o troubleshoot.o stacktrace.o disasm.o
obj-$(CONFIG_ISA_ARCOMPACT) += entry-compact.o intc-compact.o
diff --git a/arch/arc/kernel/ptrace.c b/arch/arc/kernel/ptrace.c
index d5f3fcf273b5..f49a054a1016 100644
--- a/arch/arc/kernel/ptrace.c
+++ b/arch/arc/kernel/ptrace.c
@@ -253,7 +253,7 @@ static const struct user_regset arc_regsets[] = {
};
static const struct user_regset_view user_arc_view = {
- .name = UTS_MACHINE,
+ .name = "arc",
.e_machine = EM_ARC_INUSE,
.regsets = arc_regsets,
.n = ARRAY_SIZE(arc_regsets)
--
2.25.1
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arc: ptrace: hard-code "arc" instead of UTS_MACHINE
2020-04-13 1:32 [PATCH] arc: ptrace: hard-code "arc" instead of UTS_MACHINE Masahiro Yamada
@ 2020-04-13 5:34 ` Vineet Gupta
0 siblings, 0 replies; 2+ messages in thread
From: Vineet Gupta @ 2020-04-13 5:34 UTC (permalink / raw)
To: Masahiro Yamada, linux-snps-arc
Cc: Enrico Weigelt, Greg Kroah-Hartman, Oleg Nesterov, linux-kernel,
Thomas Gleixner, Eugeniy Paltsev, Allison Randal
Hi Masahiro San,
On 4/12/20 6:32 PM, Masahiro Yamada wrote:
> 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 <masahiroy@kernel.org>
Thx for this. Applied to for-curr.
-Vineet
_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-13 5:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13 1:32 [PATCH] arc: ptrace: hard-code "arc" instead of UTS_MACHINE Masahiro Yamada
2020-04-13 5:34 ` Vineet Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).