Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1236677pxa; Thu, 20 Aug 2020 06:25:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj//gn25EsSmFRe2P1LbaEJY8h6ESwK/ZepLLCeIQCYDmuHrLoQWl7T6e5Cc/SCtnLGoin X-Received: by 2002:a05:6402:22c2:: with SMTP id dm2mr2801610edb.182.1597929902040; Thu, 20 Aug 2020 06:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597929902; cv=none; d=google.com; s=arc-20160816; b=sX9m5SDS3MK47iaNRCxAiWt3ZXxHOb15RSWwyG3P+YQc5gMNN/UNM7cI0ywJKNDIj1 26abOoVbumugXdNgEnWo5ZUmXD9PVMPVpWoyXBghibFapzh4z3otD9hAeXxZOmsNt9rb gMJIp5RvaGMEWlzITGyjofyL2ifG8sXe5KCC1vcRYMzLpywGTA3NfSLBVeiMuK9y0PT7 z7o5Tunz3GJNAwCMiidcATr5m2IvOlZxDm/ZVJuz5HxdnpdIXALlekxwT2J6jAn+cvE/ 0/B1H3kA0Ii2mOmAqsny0iLgU8LcEDfyqaeihhZBkZTiaORe4V5TuZc/9+k/I3njcIJw bP4w== 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=KZkMBGwBHwYg7396f445kRy0mhky6lqln/Y8fPre6kg=; b=qbqBQeL/dP/PlqLcgMO/vOQPpuIQfIsRMmZ2cEY/hVHk8KGXocErU4kVh4kznLiB9w 3f/VOJ+g0zny0hs9Oo92kJ21sjtTLryUBX0aJQfJy1N7N2CtZB7Iot+GIQ3dNk+d2wYD r0NqhxTaa2R8sNZKf/V8Ff3Rf1rK4aWveL5GGHBxchOSx+8raur42icck8lTNZUg3pH+ NcCQkmkr+Y0t4Xs6GKh/Uca/UobedK1SXWuLhvdfB5aB3STRuDqKY5bt8mSzopkk2XHH SAieaFRZRSyektnSIBqjpQEzYhqoG/fTSsELBIiMh8dV0++mh94pI5CHtpp+re9IBg8N DX8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nf10lQGB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si1328148edy.554.2020.08.20.06.24.37; Thu, 20 Aug 2020 06:25:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nf10lQGB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729439AbgHTNXx (ORCPT + 99 others); Thu, 20 Aug 2020 09:23:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:46964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728089AbgHTJeM (ORCPT ); Thu, 20 Aug 2020 05:34:12 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 C970722BEF; Thu, 20 Aug 2020 09:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597916048; bh=vlgI/GcQFDEuwsf31liFVaSoA4yqFdptOoUDqNhNW0E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nf10lQGBL4dLRPyrtQm/A28Lf8mkuYwfWH3bN8RRC7Qlcyp6WbtVdXFePF5Mq2Jeo rkqLn/7JZof9yBnOGuvqDz/xHU01+MM9XfgE3I1ndErsv8qzepz3zGU/KhH4PdG04N iu3zf7fQtUAgGfBEA6SgyGjTV6mP8+Sq9FVXFLUU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , "Steven Rostedt (VMware)" , Gregory Herrero , Catalin Marinas , Sasha Levin Subject: [PATCH 5.8 196/232] recordmcount: Fix build failure on non arm64 Date: Thu, 20 Aug 2020 11:20:47 +0200 Message-Id: <20200820091622.284965844@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@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 From: Christophe Leroy [ Upstream commit 3df14264ad9930733a8166e5bd0eccc1727564bb ] Commit ea0eada45632 leads to the following build failure on powerpc: HOSTCC scripts/recordmcount scripts/recordmcount.c: In function 'arm64_is_fake_mcount': scripts/recordmcount.c:440: error: 'R_AARCH64_CALL26' undeclared (first use in this function) scripts/recordmcount.c:440: error: (Each undeclared identifier is reported only once scripts/recordmcount.c:440: error: for each function it appears in.) make[2]: *** [scripts/recordmcount] Error 1 Make sure R_AARCH64_CALL26 is always defined. Fixes: ea0eada45632 ("recordmcount: only record relocation of type R_AARCH64_CALL26 on arm64.") Signed-off-by: Christophe Leroy Acked-by: Steven Rostedt (VMware) Acked-by: Gregory Herrero Cc: Gregory Herrero Link: https://lore.kernel.org/r/5ca1be21fa6ebf73203b45fd9aadd2bafb5e6b15.1597049145.git.christophe.leroy@csgroup.eu Signed-off-by: Catalin Marinas Signed-off-by: Sasha Levin --- scripts/recordmcount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index e59022b3f1254..b9c2ee7ab43fa 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c @@ -42,6 +42,8 @@ #define R_ARM_THM_CALL 10 #define R_ARM_CALL 28 +#define R_AARCH64_CALL26 283 + static int fd_map; /* File descriptor for file being modified. */ static int mmap_failed; /* Boolean flag. */ static char gpfx; /* prefix for global symbol name (sometimes '_') */ -- 2.25.1