Received: by 10.192.165.148 with SMTP id m20csp3915411imm; Mon, 7 May 2018 22:59:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqvXO/4Eq7YgyMZeRgEkyz5c0pplgdoqFK2pIOnX7uGGYi1kEp94ZooUyVdFUe5RrtO1QjD X-Received: by 10.98.100.2 with SMTP id y2mr25382283pfb.71.1525759165877; Mon, 07 May 2018 22:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525759165; cv=none; d=google.com; s=arc-20160816; b=u3vRsJlPADmBCBmcAWs734y5gvBLsDPBUzglUP7u1RPi36Ar8b+TL1gJ56CysjOKnT tN/Nkmyw14kH82Rw49urNxx1myfdfZStUzE1CK/BhdXAp83lpT/zWuALJsst4rAW/Evh yJ31BZtghh0TwVtK3GyULi8eakrffa0ne5PCP2vBKq141/4aYkGgDAbUziKgeY9Uxi8Z /iI2gCxVQp7dHgoNdC1KiwGKSO08/SINVyl8cubbkEeEx8yImRRkVDfMT69k8/+56Qvu DxUiYCsW2qtC+ATsFIBdJstuI0Q0owpRFS7GkCh65ip/zwMyPNuaGNhauzyZcqXydF46 H0sA== 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=VvNXpeSaWKAp+8kppf16G0MEZPnQrB7bk0hdayuSHXE=; b=ieFYXn9Yigqzdbf4kDZv4w7d7egDRrjvuqhJ8fV9arOEeHAzPiOJUNNVDZ8de2ckDa Lc4m5DXVaAWjI6vA7J8/wZ5nAF9/4bwkbe2S7Gxf6tZSiwxL36jeFbJ+GifsfLRAuYYs tog/smKWDOS7V9X2jM8nm254lD0BLlCCMIuMCDoObdstNA3BnnYjzu469+zZUtcACblQ rwqb/d/GWYU3GA8OVjbu4hiZDiCL2J/08t2nSYtGHBly5HVYwBWzZcpZGagFNZqDXTRk sWPNhxONGEMno3lnlmbJSCJsNlciwW3bYo0NqgXrsT8r9s0GuXe85qi0SI0Eqst8BFbe TriQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GYNehCQT; 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 d29si23653089pfb.232.2018.05.07.22.59.11; Mon, 07 May 2018 22:59:25 -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=GYNehCQT; 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 S1754124AbeEHF6U (ORCPT + 99 others); Tue, 8 May 2018 01:58:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:54994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751289AbeEHF6T (ORCPT ); Tue, 8 May 2018 01:58:19 -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 D44F92148C; Tue, 8 May 2018 05:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525759099; bh=UuA/XdKGX33013KekiI80cEj17jVyk8z0obViv0ppUc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GYNehCQTUsZbk/Lej2MdEi3Jf2qUQsjgTjZ08JHRTNdiokASDJ6AKBUJLKb7Zvlef NM5aybNuILrBbWMFNtjMf1IOQESWG+hFwvkzfXgK6kJtDgHzi9zpR/e/ScAQyQcMFI Mnhb+kjLwUMYZX1rdxdtbSFwUqwSmrfi4CAlGNuw= Date: Tue, 8 May 2018 07:58:06 +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: <20180508055806.GA14989@kroah.com> References: <20180505192112.GA18728@zrhn9910b> <20180507045453.leou4zypnlcck4vr@treble> <20180508055126.GA18724@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508055126.GA18724@kroah.com> 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 Tue, May 08, 2018 at 07:51:26AM +0200, Greg KH wrote: > 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 :( s/Archi/Arch/ ugh, time for more coffee...