Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1048516ybp; Wed, 9 Oct 2019 08:08:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjydESuCWSadK0/ryOi41azkPkB1bjDQoBjZN5zihO0hefsG0/OG9jtTQUCMjhZTcisVpi X-Received: by 2002:a50:f192:: with SMTP id x18mr3486962edl.305.1570633706606; Wed, 09 Oct 2019 08:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570633706; cv=none; d=google.com; s=arc-20160816; b=YXQAm9WhoBykuml2yoIwl11JAmlPIlN4AKk0C3TxCVUSN8CyOQ9gJDeXIut18Iin2D xZQn56WTD7cqy5OSJGzQMLrO0+05ttO2DayLYvGEup80mTG9i1jmlCXQNnO6TsOspBHC sFVyHCBcraGDolGaeNVv8ZRobf67lIqLlCE6ZSp5lKAoWO8bJVnOEdpJb+NjadvbKjZJ 5fEKSBTmS5PVeEdFT5n+KaQueBgY2pq3WS8qx5NMIbIIxuQMtP4aitlAUfD6uX/Nq6zy jRlqnzE0m3Ner+NThhkpq1+TMznvEWC3oq3HnQ4hzLk9amOjD4mf2TCdK8bhuzuXUbsj cohw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=8DFsNZQmmUhXk7BJMXqOcutssy091IZcRlJZ5RV1StI=; b=hd00Pa7DpSLHbJIhVBA/dCTDjSbaKJiy1QtWO6mTJR1lRc8wCd671kkeWJ5Sv1Ka7j R/Y0y3hLanNj8N6OBAU+kZaTz319r2HW0oQ8Y2fW4GcLh7z4Rz1zxZK03DTHAJe/8RCI Z1SznBDQuGgPKJoVm/JcA2x3Z7Q5JKRZf0zA/19o75JIG5s4G9lQ3gok1uXdzwp00nAl fG1qDALAnOU20ID+2Ur23Q1nSKoe7nTW7F602h8bQPDJB3tsFuVU9YDEepGNZKc1yf1z shn7y0DMpnU2wIzyRX6oGGnJ/hokqF/d25USM5SztcPLNQsF2bQAp3J4qnvn62h0KfRN 0Pgw== ARC-Authentication-Results: i=1; mx.google.com; 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 x15si1569146eda.53.2019.10.09.08.08.02; Wed, 09 Oct 2019 08:08:26 -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; 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 S1731436AbfJIPFn convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Oct 2019 11:05:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:53920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbfJIPFn (ORCPT ); Wed, 9 Oct 2019 11:05:43 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 4509920B7C; Wed, 9 Oct 2019 15:05:42 +0000 (UTC) Date: Wed, 9 Oct 2019 11:05:38 -0400 From: Steven Rostedt To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: Matt Helsley , LKML , Ingo Molnar , kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 4/8] recordmcount: Rewrite error/success handling Message-ID: <20191009110538.5909fec6@gandalf.local.home> In-Reply-To: <20191009104626.f3hy5dcehdfagxto@pengutronix.de> References: <8ba8633d4afe444931f363c8d924bf9565b89a86.1564596289.git.mhelsley@vmware.com> <20191009104626.f3hy5dcehdfagxto@pengutronix.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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 On Wed, 9 Oct 2019 12:46:26 +0200 Uwe Kleine-König wrote: > uwe@taurus:~/arietta/kbuild$ ./scripts/recordmcount "arch/arm/crypto/aes-cipher-glue.o" > arch/arm/crypto/aes-cipher-glue.o: failed Thanks for the report. > > I didn't debug this further, if you have problems reproducing or need more > infos tell me. The defconfig I'm using is attached. > Does this fix it for you? -- Steve diff --git a/scripts/recordmcount.h b/scripts/recordmcount.h index 3796eb37fb12..6dbec46b7703 100644 --- a/scripts/recordmcount.h +++ b/scripts/recordmcount.h @@ -389,11 +389,8 @@ static int nop_mcount(Elf_Shdr const *const relhdr, mcountsym = get_mcountsym(sym0, relp, str0); if (mcountsym == Elf_r_sym(relp) && !is_fake_mcount(relp)) { - if (make_nop) { + if (make_nop) ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset)); - if (ret < 0) - return -1; - } if (warn_on_notrace_sect && !once) { printf("Section %s has mcount callers being ignored\n", txtname);