Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3052075ybb; Sun, 12 Apr 2020 22:44:07 -0700 (PDT) X-Google-Smtp-Source: APiQypKZCaDivO5WB97sobvm4G63I10LvR84i8gAsZvkLo6eH3xZuEMGAUEfCbKudm5P7f22DnGw X-Received: by 2002:a05:620a:cd8:: with SMTP id b24mr2501473qkj.169.1586756647382; Sun, 12 Apr 2020 22:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586756647; cv=none; d=google.com; s=arc-20160816; b=Eh9aceAzoTlXIMAaP31hKsb286R9jRr7AfBxHsrFRDwdVrMbFq6FANM8qRrcpIUA5Z P2GT3xEyXG5FALMLMBaVHw1LxiIiXhRCeEGRjMKC+/djDgOXcs1+34oOfUgwGMS2EcMN J3FEyGEtKZjfhqAq24TaBEVz4yBpdDvhu/Mo+qnNkvKA6ZnYr3iz+VLNewRs54Dlco1V xt+lyL3FnuONtH5JHRu/30Uw7tOQ9B+ft9HYy4+FfgMMQNpfMRCJvA/cPGVLf2P//jer /Ub/ORWJuO6BCdhciXSDU6LOZP7qEGVp9zEY90f7DpP3iIyZ6wF2/IWjbzzezDvA9iq5 A//g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=e/AZEK440pcz6YJKP4Zb91ImUjAD3JIb/ifBlkwowP8=; b=e1uIE6WXsxM6g1DJkCS5pOxW0kCOW/LqR3WxGMFzRM9303EYNSHhdpK9+dhccOhvZZ u/qEjw5Abj7bIDH/66Iuhf++DjDZZbiT+QAWCXl8+qr8YHg1gPDHxv3PjpsqVJOcuFq/ qeqL9kw+RW6fiZtKWykEkWw8RDteye0AF1PvJFs+iRZizt0+KFCdFkRORwQm1xopKwse RvFAJeeTP6TOri7OHpJmNx3IA6yX0GOr/d+r6VKXsrnYrzN0cKsZzdE7UMD0c+L9ZhKO VgZUW95LSIijbLQshErd4F1fn8zjZn3SfcJ0RiqolY9m6Hq8K3aBSJF8gKknZVbiSENR avUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=avtOUtVK; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org ([209.132.180.67]) by mx.google.com with ESMTP id q18si5645777qtn.163.2020.04.12.22.43.52; Sun, 12 Apr 2020 22:44:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=avtOUtVK; spf=neutral (google.com: 209.132.180.67 is neither permitted nor denied by best guess record for domain of linux-kernel-owner@vger.kernel.org) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbgDMBbl (ORCPT + 99 others); Sun, 12 Apr 2020 21:31:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:59414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726917AbgDMBbl (ORCPT ); Sun, 12 Apr 2020 21:31:41 -0400 Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25A8CC0A3BE0 for ; Sun, 12 Apr 2020 18:31:41 -0700 (PDT) Received: from oscar.flets-west.jp (softbank060142179096.bbtec.net [60.142.179.96]) (authenticated) by conuserg-10.nifty.com with ESMTP id 03D1VGPU011829; Mon, 13 Apr 2020 10:31:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 03D1VGPU011829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1586741480; bh=e/AZEK440pcz6YJKP4Zb91ImUjAD3JIb/ifBlkwowP8=; h=From:To:Cc:Subject:Date:From; b=avtOUtVKvpGmoxMTC4HmCQC9aEymyl7Nc06cgsDEHdKvRhU0TkcCFNzB5ruX3h+hH JyJGhmeh4kIQhrHBCDvkMg3b0Q19LwMQjzTKd0koRGvPbNcVLqDGq6gVQ7BoH/v1Jf tbSofveBUGJmwOqH6w6VoM7g2oXPSDaA/PNN+OJd+WP3lLSsbfJgulu29YmsaY5NEQ YxLrnIBTFi3O8wa3j4A/fwTmaBXDci0dRA5FRaBzU7N9b0TOaSOt8XdR4xwqyV+VdO U4QSYHj27wu5VJjL25J8URIJitef0H1q+jPQIt+KmT2cyvT8hakrxltW6Ae3P8/l+2 rsk3xiN3AuZfw== X-Nifty-SrcIP: [60.142.179.96] From: Masahiro Yamada To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Cc: Masahiro Yamada , Gerald Schaefer , Martin Schwidefsky , Nayna Jain , Oleg Nesterov , Philipp Rudo , linux-kernel@vger.kernel.org Subject: [PATCH] s390: ptrace: hard-code "s390x" instead of UTS_MACHINE Date: Mon, 13 Apr 2020 10:31:13 +0900 Message-Id: <20200413013113.8529-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org s390 uses the UTS_MACHINE defined arch/s390/Makefile as follows: UTS_MACHINE := s390x We do not need to pass the fixed string from the command line. Hard-code user_regset_view::name, like many other architectures do. Signed-off-by: Masahiro Yamada --- arch/s390/kernel/Makefile | 5 ----- arch/s390/kernel/ptrace.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile index 75f26d775027..a8f136943deb 100644 --- a/arch/s390/kernel/Makefile +++ b/arch/s390/kernel/Makefile @@ -33,11 +33,6 @@ CFLAGS_stacktrace.o += -fno-optimize-sibling-calls CFLAGS_dumpstack.o += -fno-optimize-sibling-calls CFLAGS_unwind_bc.o += -fno-optimize-sibling-calls -# -# Pass UTS_MACHINE for user_regset definition -# -CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' - obj-y := traps.o time.o process.o base.o early.o setup.o idle.o vtime.o obj-y += processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o obj-y += debug.o irq.o ipl.o dis.o diag.o vdso.o diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c index 58faa12542a1..994a8b86edae 100644 --- a/arch/s390/kernel/ptrace.c +++ b/arch/s390/kernel/ptrace.c @@ -1416,7 +1416,7 @@ static const struct user_regset s390_regsets[] = { }; static const struct user_regset_view user_s390_view = { - .name = UTS_MACHINE, + .name = "s390x", .e_machine = EM_S390, .regsets = s390_regsets, .n = ARRAY_SIZE(s390_regsets) -- 2.25.1