Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp889400ybz; Fri, 1 May 2020 10:22:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKuukv3QRerkYVNn/6Y/cgCdjZz51PkpbCbWg9Ax3TODdWSb98MP4ljH6HH9S6AyCpOhX/J X-Received: by 2002:a17:907:7242:: with SMTP id ds2mr4305607ejc.297.1588353730304; Fri, 01 May 2020 10:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588353730; cv=none; d=google.com; s=arc-20160816; b=ATE0jcaYBmRR1IbaZE6JMewlZFovvNdYE0Wa5h/j5DeMCQgULL9kdIdOGMs13ieqPr awi9+jrrob21x33GLrgRs1N8GXZ6YtP1yFA+7+H/NGLmL/fl+o3GTn2JM4hRsf8QPxaj rrie0YOmt4u2GE8/CmHmnoL3CUCo48pAkBfGzTsIaRoMsvJlYp2uNtrmEkT49aSGXJAE l+34Ipac4IKh9a7VVas74r/+feHQEH2f8vix/ptXS/bU1MCqqaKevIGDhz6ultRwhyjP gXN0CMoyx62gjlvFuac7JvpJnCeEB/j+PExV4NPJkxQ6VTJN1QVz2dZIiRIA0IhpylC5 NLZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/l3zOAnDi9DKZar5oCraWARLMZ5QjkXjzkWoreOxc9w=; b=v+8n6KaJY7eIVDD4LYXVdD+4OPgXOY5k7Yt9GBmfbZRIS9asyEp2pmDhpmY4KQqW+1 ONDbudXwUKZf4voG8/RQE+DF1xK6lQ4tpBmXzXI83ZZD3oTIC435DuqW9nOBEFL6TwCC UXT1PN2TTjFZIXZM/INStJI14eNCzXGAgXzD/NUrKADa+O0NnargJSTMbmcgieDiCde4 T/F4G3lvS2FCc39qw2Jvc3+oG9CJxovdlTRX2fZD7e5BVu/BaU8tzkF1q/7Pgun7eMci hdCVym5uwVkJ4F+PGcsORYNHh1sugwxtCzm0WsjdjIptSkDlHJc9vn2TMIPfkqdiHgJM Llow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1YXw33IL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf13si2151829ejb.78.2020.05.01.10.21.46; Fri, 01 May 2020 10:22:10 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=1YXw33IL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730056AbgEARQm (ORCPT + 99 others); Fri, 1 May 2020 13:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729951AbgEARQl (ORCPT ); Fri, 1 May 2020 13:16:41 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A858CC061A0C for ; Fri, 1 May 2020 10:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/l3zOAnDi9DKZar5oCraWARLMZ5QjkXjzkWoreOxc9w=; b=1YXw33ILwhYlmrposW28v4Rv0r v5wS+POxan9edlR9ycvkAop2l5sYxGYv9fHhBzTaMKQAiUiZzEogiz5RG1W69w1Zj6hYlPdTK4lZs mkz/4imtgUrqu9EaoRktr9mRc07JazLirJ9kPdZiDmgDsl+zQtaTGO1tlM2VlPqnbTgiK2Rp7JfRU IB2fzFQnZzcStJbrSBOrBXVCFJH0hC+jH8xr0hdsYFlEaYtFr5oJD4p95vX/yjTMndthi2dRshUF+ b+tjLKy2rCzBMYTqSHZbUL1/NtRfj6jg/fFLZG8nVs9kEqED/XCjcGuSU0wykGknfGXr1b5VAHVQb zZDhOjtA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jUZGw-00038H-FF; Fri, 01 May 2020 17:16:22 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 04C18300F28; Fri, 1 May 2020 19:16:18 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DD115205E6F0C; Fri, 1 May 2020 19:16:18 +0200 (CEST) Date: Fri, 1 May 2020 19:16:18 +0200 From: Peter Zijlstra To: Arnd Bergmann Cc: Josh Poimboeuf , the arch/x86 maintainers , Linux Kernel Mailing List Subject: Re: Remaining randconfig objtool warnings, linux-next-20200428 Message-ID: <20200501171618.GF3762@hirez.programming.kicks-ass.net> References: <20200501002858.4wuiqqv5o32jcvxf@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 01, 2020 at 01:41:30PM +0200, Arnd Bergmann wrote: > disappears, and it also goes away if I disable inlining that function: Yes, makes sense. The state objtool tracks is strictly per function. And I suppose GCC-10 just changed around the inline heuristc a bit and we got lucky. > --- a/lib/locking-selftest.c > +++ b/lib/locking-selftest.c > @@ -1134,7 +1134,7 @@ static int testcase_successes; > static int expected_testcase_failures; > static int unexpected_testcase_failures; > > -static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask) > +static noinline void dotest(void (*testcase_fn)(void), int expected, > int lockclass_mask) > { > unsigned long saved_preempt_count = preempt_count(); > > Arnd