Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp286662imm; Sat, 1 Sep 2018 02:52:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmttFgrgsD7Cc3bbpx4Zkzjas/iHtT5KFIEypL3ieIdL106YuRjgra1nJx9e4yLpwhXnUr X-Received: by 2002:a62:5691:: with SMTP id h17-v6mr11440269pfj.204.1535795555689; Sat, 01 Sep 2018 02:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535795555; cv=none; d=google.com; s=arc-20160816; b=TkLyudkbCFvtHaR0Rb9hLEob5XjbGtVdeGpW++3f/5d+fm+zeVDzH9rahamRS+DvJo FBVJztPQktv31Sy01wKMYiNUFeiQAt2M5+V1iLA8MWIpakSRkDNdHwv5GEAlL1YQgCUz +HeqiRZDCrPWri+PMhjxc2jAwNPGFd2SVG91PQJv5PkhInlxrC99/DU4mTjXIIve4taG 8LDlBDitkMZqbrG6LeiMccdsQVfmJrsh+yjMkPDtLzV05KihQ8bJYDTu5f5PKMuR/lI8 WXranYRBPdWH9lVeZ4/0WiaGf7Uztp0/NJk7Ger2QXSx5V4wbAwEjyPcco9q2AZ3uLPx qqWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=rui4h199nzVUF/aM7NcFEbNPO56rvPR4mqqB7otxqNo=; b=eUtuIfpjVA4QyHp8Ia7CD4Rb+6AKEqeBOh1JLEp7OVeCba/Hf2asaLxk+vST0Z4Wpc 7zolsc8KNaEvPdtfE31h7ux4pDVmh2808dM/GqCcd2FrzQZFGtR1+HfFGceZNoUxFw5v bwx7CgP8zf7bkIWJefypERcdorIetIZkO4fC1wBhQ8ROk9MJJKCqrqtkPzAB6cknNLuG 67OEPdEfu/MQJatZ62I6SEDaR/iMxNwkQW06l3YNNS4DMvla0N/3riq0kEmMrOtrIW/h f2QUvgWeSO2n3pyram26IDGeHG9m8zlVv5bsSnSsn5lcbZ6FeYQh2imBEAcMJop+lQtE oXiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XaZX18Rn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14-v6si12049806pgl.490.2018.09.01.02.52.08; Sat, 01 Sep 2018 02:52:35 -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=XaZX18Rn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbeIAOBq (ORCPT + 99 others); Sat, 1 Sep 2018 10:01:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:58112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbeIAOBq (ORCPT ); Sat, 1 Sep 2018 10:01:46 -0400 Received: from devbox (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (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 F26DF2083C; Sat, 1 Sep 2018 09:50:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535795419; bh=f4vy5kd4FJ2ufc8eO90qGSTy27Q9Jtxw1pvhXhP0cWs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XaZX18RnDsnaH+CKwtIJVxzlGgoICpvOjLTYbl4JZzIiI3w9vWtn2G8OA+5kzU5Ah oob2DBkZiyAkSwW5U4HqZfwKQP6vlkvAAYWvy6DanRteZGfHZE5jBzvfMTtTJL7nBq ljZdobbY2hvSQN0A50qfNMOW8yXIJ+poQF6NlFEg= Date: Sat, 1 Sep 2018 18:50:17 +0900 From: Masami Hiramatsu To: Arnd Bergmann Cc: Stephen Rothwell , Steven Rostedt , Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build warnings from the build of Linus' tree Message-Id: <20180901185017.0a81bc3e61f5d021664f13f3@kernel.org> In-Reply-To: References: <20180824133206.4218c2e5@canb.auug.org.au> <20180824172053.20fa197294f51496dcec5605@kernel.org> <20180826035323.254463c8b183e6912c5b9a13@kernel.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On Sat, 25 Aug 2018 21:53:17 +0200 Arnd Bergmann wrote: > On Sat, Aug 25, 2018 at 8:53 PM Masami Hiramatsu wrote: > > On Fri, 24 Aug 2018 14:46:16 +0200 > > Arnd Bergmann wrote: > > > On Fri, Aug 24, 2018 at 10:23 AM Masami Hiramatsu wrote: > > > > > > > > On Fri, 24 Aug 2018 13:32:06 +1000 > > > > Stephen Rothwell wrote: > > > > > > > > > Hi all, > > > > > > > > > > After merging the origin tree, today's linux-next build (powerpc > > > > > allyesconfig) produced these warnings: > > > > > > > > > > Maybe introduced by commit > > > > > > > > > > 6b7dca401cb1 ("tracing: Allow gcov profiling on only ftrace subsystem") > > > > > > > > > > I am guessing, but that is the only new thing that affects all of > > > > > kernel/trace ... > > > > > > > > Yes, I agree. But I just followed Documentation/dev-tools/gcov.rst > > > > to enable profiling in kernel/trace. Hmm, doesn't ppc64 support > > > > GCOV_PROFILE? (But as far as I can see, ARCH_HAS_GCOV_PROFILE_ALL > > > > is enabled in arch/powerpc/Kconfig) > > > > > > > > Anyway, I'll try to reproduce it. > > > > > > Thje same commit causes a link failure on ARM with a randconfig > > > kernel (see https://pastebin.com/KspjpyKG for the .config): > > > > OK, I confirmed that this happened with both gcc-7.3.0 and gcc-8.1.0 > > with your config. > > I also confirmed that CONFIG_GCOV_PROFILE_ALL causes same issue. > > (Note that CONFIG_GCOV_PROFILE_ALL depends on !CONFIG_COMPILE_TEST, > > so allyesconfig disables it always) > > > > Hmm, now gcov kernel itself might have a problem on arm and > > powerpc(on gcc-8)? > > Yes, that is very possible. I always force CONFIG_COMPILE_TEST=y > in my randconfig tests, so I miss that kind of problem. Finally, I've found that this issue (on arm) can be reproduced with a combination of config options. When CONFIG_BUG=n and CONFIG_GCOV_PROFILE_ALL|FTRACE=y on arm, this happened. If I set CONFIG_BUG=y, I could build the kernel without these errors. I also built on x86-64 with CONFIG_BUG=n & CONFIG_GCOV_PROFILE_FTRACE=y, but it succeeded. I guess arm kernel need to embed a counter near the code section. So if it is in .text.exit, it caused the error. On arch/arm/kernel/vmlinux.lds.h: #if (defined(CONFIG_SMP_ON_UP) && !defined(CONFIG_DEBUG_SPINLOCK)) || \ defined(CONFIG_GENERIC_BUG) || defined(CONFIG_JUMP_LABEL) #define ARM_EXIT_KEEP(x) x #define ARM_EXIT_DISCARD(x) #else #define ARM_EXIT_KEEP(x) #define ARM_EXIT_DISCARD(x) x #endif So I think we have to add CONFIG_GCOV_KERNEL to there. Thank you, -- Masami Hiramatsu