From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FB16ECAAD1 for ; Thu, 1 Sep 2022 05:11:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232744AbiIAFLw (ORCPT ); Thu, 1 Sep 2022 01:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbiIAFLv (ORCPT ); Thu, 1 Sep 2022 01:11:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7810F10D4FC; Wed, 31 Aug 2022 22:11:50 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6E5A9D6E; Wed, 31 Aug 2022 22:11:56 -0700 (PDT) Received: from [10.162.43.7] (unknown [10.162.43.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B05CD3F71A; Wed, 31 Aug 2022 22:11:48 -0700 (PDT) Message-ID: <81864464-8cd1-8afe-ed57-c04b1b22a35b@arm.com> Date: Thu, 1 Sep 2022 10:41:46 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: linux-next: build failure after merge of the perf tree Content-Language: en-US To: Stephen Rothwell , Arnaldo Carvalho de Melo Cc: Linux Kernel Mailing List , Linux Next Mailing List References: <20220831083452.2fc938cf@canb.auug.org.au> From: Anshuman Khandual In-Reply-To: <20220831083452.2fc938cf@canb.auug.org.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org Hello Stephen, This seems to be the same problem as pointed by ACME on the patch series [1]. Could this be a compiler false positive ? Because the new code block is exact same like the existing one. This warning seems to only occurs on powerpc64el platform, but not on others. [1] https://lore.kernel.org/lkml/Yw59CkHUVbfrHdkh@kernel.org/ - Anshuman On 8/31/22 04:04, Stephen Rothwell wrote: > Hi all, > > After merging the perf tree, today's linux-next build (native perf) > failed like this: > > In file included from /usr/include/stdio.h:866, > from /home/sfr/next/next/tools/perf/util/branch.h:9, > from util/branch.c:2: > In function 'fprintf', > inlined from 'branch_type_stat_display' at util/branch.c:152:4: > /usr/include/powerpc64le-linux-gnu/bits/stdio2.h:105:10: error: '%8s' directive argument is null [-Werror=format-overflow=] > 105 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 106 | __va_arg_pack ()); > | ~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > Presumably caused by commit > > 9781e500dcb8 ("perf branch: Extend branch type classification") > > "native" here is PowerPC64 LE. > $ gcc --version > gcc (Debian 11.2.0-10) 11.2.0 > > I have used the perf tree from next-20220830 for today. >