Received: by 10.192.165.148 with SMTP id m20csp3910946imm; Mon, 7 May 2018 22:52:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrNvn0zVQi5xfsvHfPHV3r6ZzixX5DiMGkb/eAHgXdWFxXYq7VhytvzkE3KUEvK0HUxT29k X-Received: by 2002:a63:925c:: with SMTP id s28-v6mr31244555pgn.368.1525758761990; Mon, 07 May 2018 22:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525758761; cv=none; d=google.com; s=arc-20160816; b=V1rgyzlYcymrqNvjWrHRZgFABYNr05Ck4PPIpHoi4R46a4ERnOkEsaedo3jki4XKf2 n8ZmyoZ3mSi10bQYvnLRfNqv05m9uH+oc6pZLkuZE0EIxe0k+Gau6Ziuy1hxbGVbCBc/ f6zYQ+UaizIzlGaE1yBMy+eBd8CCjqPvGA7DXh+NpFT1Ne1Wf1czJpUbqO5ZzH+kd+Ga ODPZ7aZbx1jmjZ46jzfqqkzYOFXZUjmqnuJe0eUd005OnHTGSo1T+JNn+cu/Q+MraNwi Mgy3YDJ+GWohw1wyxo5j9xhp0rUvNB7y5RuvgglvjNiqgqU1T9ksBYM7+U92JxVMGyjY 4ERw== 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:dkim-signature:arc-authentication-results; bh=e+lDbEmtxKmxTBgxlyy46htWCkGj4/jOKUudY5Dn81w=; b=R2CMte8vHquGxqubTQ2gClRyrVWpG9kydYUS9qmWXmn0oLVGb8uwaLTrP0phZ4iq32 vndMrW/uOajB5gfkBEigmklbFUQPUUnuDxqu0bBq+s+T67cd0s0+c45O0Tarc2iAiGSG M+fpBU5OpkVBDrXpMgwDbm7ulWCSWBTs09qhkWpVc0IEr7eRTtBmTo5w090eINzg6eZZ d1XpRDP2InjIhVcfI6KOKPGCUr6/31HRlBmmSQan6rFu6k7OVRUnjsVwVWm7aP27//37 PTTGE484iz1QnwyZ+Aqe8iZ+t5/UxJONOfZ5fqM9/vwwv42SId/m4+BdvxWrLOA46wMr E2yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fYskoEAc; 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 h7-v6si10936332pgc.14.2018.05.07.22.52.27; Mon, 07 May 2018 22:52:41 -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; dkim=pass header.i=@kernel.org header.s=default header.b=fYskoEAc; 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 S1753914AbeEHFvk (ORCPT + 99 others); Tue, 8 May 2018 01:51:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:54630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbeEHFvj (ORCPT ); Tue, 8 May 2018 01:51:39 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 75F2021741; Tue, 8 May 2018 05:51:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525758699; bh=jQWB2icKdeeKQ8lCCOwNaITULE0oEdBzRNcFApEv94A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fYskoEAcvt5E1Ccn5zV0ZK9kl23+uF2lOtQ47WjGsZS9lqxPW9wFuS4TD/xd7BaxL fBzZKEg27CRvjiRmtUiukt2XKY4Qh4qBCZ3LwUnybQRVO/yNVKIm9KWCS+7HMyOdeq alSgf/rMuNFbe/HYBO2hByQLEs1LTvum2M46ZJCA= Date: Tue, 8 May 2018 07:51:26 +0200 From: Greg KH To: Josh Poimboeuf Cc: damian , peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: Kernel build with gcc 8 a lot of warnings Message-ID: <20180508055126.GA18724@kroah.com> References: <20180505192112.GA18728@zrhn9910b> <20180507045453.leou4zypnlcck4vr@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180507045453.leou4zypnlcck4vr@treble> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 06, 2018 at 11:54:53PM -0500, Josh Poimboeuf wrote: > On Sat, May 05, 2018 at 09:21:12PM +0200, damian wrote: > > Helllo together, > > > > Hello everybody, > > > > is something special to note when kernel build with gcc 8? I receive various warnings from the objtool: > > With GCC 7 works all fine. > > > > kernel/cgroup/cgroup.o: warning: objtool: parse_cgroup_root_flags()+0x40: sibling call from callable instruction with modified stack frame > > kernel/cgroup/cgroup.o: warning: objtool: cgroup_addrm_files()+0x2a3: sibling call from callable instruction with modified stack frame > > kernel/cgroup/cgroup.o: warning: objtool: cgroup_apply_control_enable()+0x20b: sibling call from callable instruction with modified stack frame > > kernel/cgroup/cgroup.o: warning: objtool: rebind_subsystems()+0x296: sibling call from callable instruction with modified stack frame > > kernel/cgroup/cgroup.o: warning: objtool: cgroup_sk_alloc_disable()+0x10: sibling call from callable instruction with modified stack frame > > kernel/cgroup/cgroup.o: warning: objtool: parse_cgroup_root_flags.cold.45()+0xa: call without frame pointer save/setup > > kernel/cgroup/cgroup.o: warning: objtool: cgroup_addrm_files.cold.46()+0x17: call without frame pointer save/setup > > kernel/cgroup/cgroup.o: warning: objtool: cgroup_apply_control_enable.cold.47()+0x24: call without frame pointer save/setup > > kernel/cgroup/cgroup.o: warning: objtool: rebind_subsystems.cold.48()+0x10: call without frame pointer save/setup > > kernel/cgroup/cgroup.o: warning: objtool: cgroup_sk_alloc_disable.cold.49()+0x7: call without frame pointer save/setup > > CC kernel/cgroup/stat.o > > CC [M] arch/x86/kvm/../../../virt/kvm/kvm_main.o > > arch/x86/kernel/acpi/boot.o: warning: objtool: acpi_register_lapic()+0x10: sibling call from callable instruction with modified stack frame > > arch/x86/kernel/acpi/boot.o: warning: objtool: acpi_map_cpu()+0x2c: sibling call from callable instruction with modified stack frame > > arch/x86/kernel/acpi/boot.o: warning: objtool: acpi_register_lapic.cold.6()+0x7: call without frame pointer save/setup > > arch/x86/kernel/acpi/boot.o: warning: objtool: acpi_map_cpu.cold.7()+0x7: call without frame pointer save/setup > > Thanks, this is a known issue with GCC 8 that I haven't gotten a chance > to fix yet. They're related to the fact that GCC 8 is splitting out > 'unlikely' code into 'cold' subfunctions in .text.unlikely. > > I've got some old patches that fix it. Now that GCC 8 is out, I'll need > get the patches dusted off and cleaned up for merging. Any pointers to these patches? Archi linux just changed their default compiler to gcc 8 and now I'm seeing this in my local builds :( thanks, greg k-h