Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp74076iof; Sun, 5 Jun 2022 21:33:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWLtfLd9iIQ1uW0h7T0I0r8UgA7/PC32o51TT9OZncEHUOYBzMCpc4qjT2lp2ako6N1ug0 X-Received: by 2002:a17:90b:1bc6:b0:1df:cb4b:836e with SMTP id oa6-20020a17090b1bc600b001dfcb4b836emr24596001pjb.117.1654489983781; Sun, 05 Jun 2022 21:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654489983; cv=none; d=google.com; s=arc-20160816; b=fEbggFuuRMWVrmttV2uTbnLX7M4qmZ1dsaE4iePREoF/zWMe9U7tUplMXLle7+bZhc 1lau67QtSuZlBxYpiIOWqpxHFm+8HMt9wOK+upDAbqm0hFIL1chAVgQOCPidFtQK3EoG GPLyC6F5FSs7ELEMQgNPHuoI4oIYW5tqChNzayYrwejCxyAo7e6A+2eijT4AIF34Q4AK FTmG2AIP0sCc1ELmivq+dp0WRpkvLDhoVweqUICU7kZyuJxa2emAYAzEMcSKhYhBWXf+ 28JkN9E7IAO9OLanHytt9lE1tfxRLlfdqGluB2TR5W7yhyG1xdG4w4i3/dgHoGKS6EEe 8u0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=D1oSh/zkOb0zLC6PHny/ePqUzakwJzlmJ/W2Y397lOE=; b=WrZH8oUsSE/bvKypB6GN+DrsKZAiBkCJTV7RcS4+Pugr/m8gKfPt4D0M9i8kuJGQoR PW6ivId9PUoqjw3e68mUcenc+yxZ24zP2eCOqhNiiY6LkzOimxUZwhtrKzXsceT98C1s E8E1qU4d6npDpDq8OTYZVGZu5/3Ucz/T2y275rflJYB1iaQ77NLjOdysgEq8Vd/Hgzlw YvIiCVtFlzs6YbH8iEiyd3ZwoScOX+fUmlzNglZzK3OdiwrC8oe9odHmjWO0vPRI3tyx g3UHGtpkuBI2HQqN8xwK2B5qqgWmzYLPalUKGGX3Q7Bm7YT5MjQDh61Kp/jZBCiqKKk5 H1BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1PUHDNFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u3-20020a17090341c300b0015d21512abfsi22804259ple.527.2022.06.05.21.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:33:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1PUHDNFA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8178C193F7; Sun, 5 Jun 2022 20:59:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344986AbiFCRnv (ORCPT + 99 others); Fri, 3 Jun 2022 13:43:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344995AbiFCRnR (ORCPT ); Fri, 3 Jun 2022 13:43:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82C4B532EC; Fri, 3 Jun 2022 10:41:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B0F8161B0F; Fri, 3 Jun 2022 17:41:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C02ADC3411D; Fri, 3 Jun 2022 17:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278116; bh=4pC3B+B9HGnfVRgy18c8/h6OnNw9NHaafYHGd+R1Q6E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1PUHDNFAowmaT05rQNUUiaRXj5GUE+C8D2qJ33sUjfL/TMVpQ8DExa6EOUhDWn61l E1KXx9xNtfVocQxj32H2ZVFXPJ4oL7chlpsnDS7e2koLI0hCrbXuwkObC/lE+w2AoG jOGzJOV9V9HL9d/M7H2P6bS4eZaF3I0RdJi8GuvI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Olsa , Adrian Hunter , Namhyung Kim , Arnaldo Carvalho de Melo , =?UTF-8?q?Daniel=20D=C3=ADaz?= Subject: [PATCH 4.19 15/30] perf tests bp_account: Make global variable static Date: Fri, 3 Jun 2022 19:39:43 +0200 Message-Id: <20220603173815.543846863@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173815.088143764@linuxfoundation.org> References: <20220603173815.088143764@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo [ Upstream commit cff20b3151ccab690715cb6cf0f5da5cccb32adf ] To fix the build with newer gccs, that without this patch exit with: LD /tmp/build/perf/tests/perf-in.o ld: /tmp/build/perf/tests/bp_account.o:/git/perf/tools/perf/tests/bp_account.c:22: multiple definition of `the_var'; /tmp/build/perf/tests/bp_signal.o:/git/perf/tools/perf/tests/bp_signal.c:38: first defined here make[4]: *** [/git/perf/tools/build/Makefile.build:145: /tmp/build/perf/tests/perf-in.o] Error 1 First noticed in fedora:rawhide/32 with: [perfbuilder@a5ff49d6e6e4 ~]$ gcc --version gcc (GCC) 10.0.1 20200216 (Red Hat 10.0.1-0.8) Reported-by: Jiri Olsa Cc: Adrian Hunter Cc: Namhyung Kim Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Daniel Díaz Signed-off-by: Greg Kroah-Hartman --- tools/perf/tests/bp_account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/tests/bp_account.c +++ b/tools/perf/tests/bp_account.c @@ -22,7 +22,7 @@ #include "perf.h" #include "cloexec.h" -volatile long the_var; +static volatile long the_var; static noinline int test_function(void) {