Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp357994rwr; Thu, 27 Apr 2023 02:14:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uL7Kdykn0TW3nCJ8iHjDY5qli1AM+IwtJWC5qolS4HHjSir2bfPG7u1Ah6kQl8j5Stf07 X-Received: by 2002:a17:902:dac1:b0:1a6:93cc:924b with SMTP id q1-20020a170902dac100b001a693cc924bmr1107905plx.3.1682586898459; Thu, 27 Apr 2023 02:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682586898; cv=none; d=google.com; s=arc-20160816; b=m7UAoS5CKIbsxqqsO0Q2rNPUB4Subry4UAdhJRUrjlLXAQr2l7ri/zf6oxHbUp46rc ghH97QeaMZ1aUq34fES0SSbqv1YdH5T6x+ByZrZQJIilg2NFB/NRS+5YtZVDYG2lLBH+ wuiw5QQAKa00D2y/LQNcEws+plt1QO0nOUsWWtnVcDdBPNJJFDYMiRya0fVo+wDmRSeK h7VPmxyCRbSHZOnUndwqvU3r8+mhdVy3a9ZyYL0LiMQ+BG2BXNB85IWytHziINzrSf/p w8E5u8VyWUtq/yVQGQ99ZaN2YokUq/n2f3H1CyMa8GDKmkGtbXMXHOTdiAjE2bJ9k1cJ ftOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=y09E9QS6Yr8kDAw0d1I7IaminPcVQRdJTamLt2npN78=; b=v3jSOW2wF1lW2iuGqxBdbcCDNxUzUWozSeMYraFI8h9U91V4FuP1jKJ/oxe7+620xs HNz8ZZyWkWNyrt+/SH6xlSHo76rMK3/0cDUwhZEfvBZVo23mv9cRcpxPuyAgFaTnZ6sp 75L422wcP2z+pjeH4oXCSKf0uIjST0+oFMzJvIboPlunzobKDlLDUX0l8S7eWsgrreUO HWvKnrN8c6+4mPEpBPRLmiynhb0lLwdS/cycujeETw90myqNEhqgsj8vme28iNM0P7+k xIS1twN0x7VFQ2WOSHtsUj8ah1E1m5Hwu/OL7Z6nQgo/uSFOWx+phl8Vr5hAx65Dx5O2 1AQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=QNati0ej; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a170903229000b001a95babe3c0si14596020plh.371.2023.04.27.02.14.42; Thu, 27 Apr 2023 02:14:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=QNati0ej; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242986AbjD0JO2 (ORCPT + 99 others); Thu, 27 Apr 2023 05:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233094AbjD0JO1 (ORCPT ); Thu, 27 Apr 2023 05:14:27 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EAFE1 for ; Thu, 27 Apr 2023 02:14:25 -0700 (PDT) Received: from zn.tnic (p5de8e8ea.dip0.t-ipconnect.de [93.232.232.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 873FB1EC063F; Thu, 27 Apr 2023 11:14:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1682586864; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=y09E9QS6Yr8kDAw0d1I7IaminPcVQRdJTamLt2npN78=; b=QNati0ej1iopUcgcVXDtlcdyEVRbI0gTlwWFE6QXo76lhE7WpnBf1y2iykB9IavTXGNazf adpr+7yLCSQ4l6oKewYCstqY1kW63xKh5fZf+6ukY/kY+R8YQiFhNGSBGDb3e/YySbOEiu zMoc+5DBszx0o7QyblzKXOws9UfiYQ4= Date: Thu, 27 Apr 2023 11:14:21 +0200 From: Borislav Petkov To: "Paul E. McKenney" Cc: jpoimboe@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: An objtool warning from mainline Message-ID: <20230427091421.GAZEo87ezQPLwLKiPF@fat_crate.local> References: <02bd36cf-b2b8-4634-a70b-1476420188c8@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <02bd36cf-b2b8-4634-a70b-1476420188c8@paulmck-laptop> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 26, 2023 at 04:50:49PM -0700, Paul E. McKenney wrote: > vmlinux.o: warning: objtool: exc_nmi+0x2b3: call to __const_udelay() leaves .noinstr.text section What does ./scripts/faddr2line vmlinux.o exc_nmi+0x2b3 say? I guess it should point to io_check_error()'s udelay(). If so, it is noinline: 81423c37415f ("x86/timer: Don't inline __const_udelay()") > I see this with gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04) and also with > gcc version 8.5.0 20210514 (Red Hat 8.5.0-18) (GCC). I can't trigger it here with gcc-11 (Debian 11.2.0-19) 11.2.0 Which is weird because the asm looks like it should warn. Does it go away if you remove the noinline before __const_udelay()? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette