Received: by 10.192.165.148 with SMTP id m20csp2671676imm; Sun, 6 May 2018 21:55:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoOC74kD9NRjCbVWAdXtNYw4w19JLharHW6RpURdf0uqXYgPYWuOhODH+jWUP3FwF95X1D7 X-Received: by 10.98.18.212 with SMTP id 81mr35621573pfs.243.1525668931310; Sun, 06 May 2018 21:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525668931; cv=none; d=google.com; s=arc-20160816; b=TaXzea9c1tk86b16Zxrmnc79k1AuYIdkAI1LmO5Zmoz1m7u770B93CPkYq6TmdnuB1 RTkPqSG/bQQLBAh6ZVzcboTbkRmd1ESUUPiGjFJ2StL4nAV1n3/wqD5RIkbO3aROobEZ DvqyBCAnz/JVc4WSU7OE5x/0qWtYPj5eC8TMFGBMowEJ+9y2v8irm16LedrcwjQUkCzF QK8rb9yDiEPE6HEn1E0Ni63VOvV0KnnsdLOyLqNU+HVbnl5eNO9N2nq2B3Hh8Do3ORD2 04LFN9Fg2wgEg7yHhaoBpadXH0VawYNnwRfPSS1soWHOOWae1x51PqiCea+D5hwbs988 +OGQ== 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:arc-authentication-results; bh=HliNJWHxzqev5krtByiRmj6oJVtGNga0NfRL54IIGIQ=; b=uZfXFxjgvc+p1ABH+1oxJEdHX2KjdsNYOmymoVZtRem1P4SQExNDyvBBoj/edc5p/B 08WoH0YXLJ5jQVxnEQwk6Nhy4mOx97f452+wN5bUqijnoAe6ou3e2ANStEDREYqAN0Bs Bn9ltwhyR+ptmo8ytOtVN8S0vFIM3nWFz5p3+1HxesexDgdOBjoGPtkNpIxhsAMIHXCm 0W4uW7k11aC2g7z4ydF4hNRfY13/1KEOajpaXN57w27WIyBaEQ+44x11UKEJZT8PtTCi MO+KBWNT70i/MHBBKkhYbcvMTw0kNNBQqzIom63IZ294HbxqSBTyyLCgAiQtEM3n423o sZUg== 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 r3-v6si21497866plb.336.2018.05.06.21.55.17; Sun, 06 May 2018 21:55:31 -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; 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 S1752011AbeEGEzG (ORCPT + 99 others); Mon, 7 May 2018 00:55:06 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33668 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751908AbeEGEy4 (ORCPT ); Mon, 7 May 2018 00:54:56 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5E2F3406E970; Mon, 7 May 2018 04:54:55 +0000 (UTC) Received: from treble (ovpn-120-85.rdu2.redhat.com [10.10.120.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2030F215CDA7; Mon, 7 May 2018 04:54:54 +0000 (UTC) Date: Sun, 6 May 2018 23:54:53 -0500 From: Josh Poimboeuf To: damian Cc: peterz@infradead.org, linux-kernel@vger.kernel.org Subject: Re: Kernel build with gcc 8 a lot of warnings Message-ID: <20180507045453.leou4zypnlcck4vr@treble> References: <20180505192112.GA18728@zrhn9910b> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180505192112.GA18728@zrhn9910b> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 07 May 2018 04:54:55 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 07 May 2018 04:54:55 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Josh