Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3200620imu; Mon, 17 Dec 2018 15:22:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VCy+GMR3x9XZpCnXM6tWM5DnIrErWCoZ1ZwMrk3/fAthoJTNGD/0gCluwRgOoqAHUlVsKu X-Received: by 2002:a17:902:209:: with SMTP id 9mr14637242plc.288.1545088932512; Mon, 17 Dec 2018 15:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545088932; cv=none; d=google.com; s=arc-20160816; b=cl1tJr7sRl2fPLtJwQnwmZmomPNTKliI1rIS2kiJpt+vI21ahmfodTmm46whokBGVB z7Rjbr1bED3YqXV9TW9nIgOomQL8XXavdheAZdl4GxaPo4wA3yQDeftMAGjlM7Zn8Hj5 a6OipoOCcfjE+J5plXiKFtZUBpLBFXFAm7JmxKN1iN7SCCNPV/bxHMBwKetmwZZ5SETi sfUqtnOSyOTSNVWBMYNwme01asGuH/yOVsip8jQ7vwnwornC8oGYi16uLyk3rZpbqZfW EoENLw2DQHxKHR6UQgL6irPft67F2Hz/SxCEsLWSU6gPF48MY0dgV/qbfzwWu1YIbaxp vuaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=cYII5lTD7ALZsfE/UC1nIEzUb30a0fLSvcj4rWujQiE=; b=eo//dHamFdklvDht5VzA1Ui81Eau0fkl4igzGjJIXlzlA7B976RCQDges9uYqcHLkL kKay2DiaLhvp6YIj8cXhsQf+o9yBIBokfZ+Kk9KAl9VwvuEeGr05l82TQJeKDQbbE/q9 Gg53K+VHILApAIgLajvIov8c+lI1t+t8VWOtLWJ7C8U+RnKOO0BFjAA+19rwlwWhvJTs glBHQy1tloEb/0NhmkQsQ+4SUnDtjUK5pvcYNkdhuOk60iFOpkyfBlTlzGeQ4wmts/2W bsLBodR+JwCT4khqQyQVU1vmuWzVyvlOF85olUs4UG2zImILE/yQg36NeZEhoNBk1cdV e3JA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r77si11759203pfa.186.2018.12.17.15.21.57; Mon, 17 Dec 2018 15:22:12 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389437AbeLQVbc (ORCPT + 99 others); Mon, 17 Dec 2018 16:31:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47158 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726943AbeLQVba (ORCPT ); Mon, 17 Dec 2018 16:31:30 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BC3BEC062EDC; Mon, 17 Dec 2018 21:31:30 +0000 (UTC) Received: from treble (ovpn-120-179.rdu2.redhat.com [10.10.120.179]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4140810018F9; Mon, 17 Dec 2018 21:31:29 +0000 (UTC) Date: Mon, 17 Dec 2018 15:31:26 -0600 From: Josh Poimboeuf To: Peter Zijlstra Cc: Andi Kleen , Arnd Bergmann , Linux Kernel Mailing List , the arch/x86 maintainers , Steven Rostedt , Miroslav Benes Subject: Re: objtool warnings for kernel/trace/trace_selftest_dynamic.o Message-ID: <20181217213126.lsqhyszoulel6uq6@treble> References: <20181217173900.ygifx7khwmzn2gv2@treble> <20181217180434.GS25620@tassilo.jf.intel.com> <20181217181638.dfexg6mkmbfyzfli@treble> <20181217192938.GF2218@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181217192938.GF2218@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 17 Dec 2018 21:31:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 08:29:38PM +0100, Peter Zijlstra wrote: > On Mon, Dec 17, 2018 at 12:16:38PM -0600, Josh Poimboeuf wrote: > > > > Yes LTO causes the to be treated like static functions. > > > > > > I guess noclone is unlikely to be really needed here because these > > > functions are unlikely to be cloned. > > > > > > So as a workaround it could be removed. > > > > > > But note we have other noclone functions in the tree (like in KVM) > > > which actually need it. > > > > How about we just use the __used attribute then? It seems to have the > > same result of preventing IPA optimizations (without the weird side > > effect of missing frame pointers). > > AFAIK we don't have any in-tree LTO, so it can all go in the bin. > > When/if we get the LTO trainwreck sorted -- which very much includes > getting that memory-order-consume fixed -- we can revisit all that. Ok, then if there are no objections I'll just send a revert of: dd3dad0d716d ("ftrace: Mark function tracer test functions noinline/noclone") -- Josh