Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2253469ybd; Mon, 24 Jun 2019 03:21:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcfeMTb8lIUCSZeAMYZNCxFLcjSyr9sa5hXClhHNa7NgCRVrw9n4Wyh/TXVv1ZD52t1Eh1 X-Received: by 2002:a17:902:f089:: with SMTP id go9mr77766626plb.81.1561371714471; Mon, 24 Jun 2019 03:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561371714; cv=none; d=google.com; s=arc-20160816; b=WOlIvGfBmMd9TbUalqJCtZy2fcMGsKF2YSynnzqGAE7uGPkQUXBODzF154IWtrrtqQ CaZX+CLzGoJo9rWGqgwIbbWku3+HW8soct13NMtQti42hI6OnVfAmY5QsfAU3zZ/mx03 C1G4QIlB/KBuWWQfPnIxTFUyjcRiUuMtXbc4DO4UwY/SWdLs13V+wAEcxsPGsdkBT5bA n79AWRO5UOPFl7jA69cPqhgU9Ce43btxLvITkKGqUpQDyQvUU2TcpLaoDMCoLW8GfKqw U1VGEIUm3N/bp5+qd43TU0vevzC78t5LkZSMVJGDLdguo/dQGgQTULM5oy74tLyp3ui0 3z0g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ddvmGIFCyL5Amb4081fNvMAF8zs8ZXbyCn8yhASdwFw=; b=rKhH1caTJdR/EdtV5yp8oZbci+0Pv9hu2AUfDRG1KOUW+b62XHdjQT2VWHf94VE9dn dQZ4rUWNH0hJ7bicwpO+sDCcEoGU2GYvIy8x9ekNllL/Xd43rRo5Wpzo1hOR1kNTlNQa +9h2PyyFoTP0bnc89RKmchwWgEjKkdlCyH+xSN7yPZ+HZf7TDa63UQk4ZqtjxiTvaV/5 0KJVn0343LxFuUsDpe6A6127RaD8zseSELEI2lQzzj8H8OlGDTLipKQ1Zg5OtB5jaYj5 wNm0jff5G88+ozpDUmAdZfiLnMmIvCsZByc86CGygcTlmE1lA/aBFOdnAgeGHcsikWit XnxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qT5zThXq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si10200708pfe.133.2019.06.24.03.21.38; Mon, 24 Jun 2019 03:21:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qT5zThXq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728832AbfFXKV3 (ORCPT + 99 others); Mon, 24 Jun 2019 06:21:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:57112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727525AbfFXKV3 (ORCPT ); Mon, 24 Jun 2019 06:21:29 -0400 Received: from localhost (f4.8f.5177.ip4.static.sl-reverse.com [119.81.143.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F3F920645; Mon, 24 Jun 2019 10:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561371688; bh=ZpwHM1vNP255yEGVRWKk3m4JUF3NnJg8nmc/uD2SSZ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qT5zThXqTJl7FBNEdWg2ZnOvVPyQzl9jHMy9pYBkXdDnaFOtht8tNRaUQ4s4PZt9Y DtUv2n9Leo2eez63iecdNw8hPEvoMSCo8VVkNbvYv+EtK2cjQmCK1MSwY5qmcrosj6 D4SH89sDtt08P4K6cVcZbnmfuw4cUcbhTBipRYXQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada , "George G. Davis" , Sasha Levin Subject: [PATCH 5.1 075/121] scripts/checkstack.pl: Fix arm64 wrong or unknown architecture Date: Mon, 24 Jun 2019 17:56:47 +0800 Message-Id: <20190624092324.732027506@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190624092320.652599624@linuxfoundation.org> References: <20190624092320.652599624@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 4f45d62a52297b10ded963412a158685647ecdec ] The following error occurs for the `make ARCH=arm64 checkstack` case: aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \ perl ./scripts/checkstack.pl arm64 wrong or unknown architecture "arm64" As suggested by Masahiro Yamada, fix the above error using regular expressions in the same way it was fixed for the `ARCH=x86` case via commit fda9f9903be6 ("scripts/checkstack.pl: automatically handle 32-bit and 64-bit mode for ARCH=x86"). Suggested-by: Masahiro Yamada Signed-off-by: George G. Davis Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- scripts/checkstack.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index 122aef5e4e14..371bd17a4983 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl @@ -46,7 +46,7 @@ my (@stack, $re, $dre, $x, $xs, $funcre); $x = "[0-9a-f]"; # hex character $xs = "[0-9a-f ]"; # hex character or space $funcre = qr/^$x* <(.*)>:$/; - if ($arch eq 'aarch64') { + if ($arch =~ '^(aarch|arm)64$') { #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp, #-80]! #a110: d11643ff sub sp, sp, #0x590 $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; -- 2.20.1