Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1945483iob; Thu, 5 May 2022 11:29:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyklfmwTvBjTxKnLxHBG/d2+/mplgTdGpcVfZbbAEUK/FiI/N4pvGGf5N4hcQdUsQGvJ5bh X-Received: by 2002:a63:90c7:0:b0:3c6:2bba:a5c0 with SMTP id a190-20020a6390c7000000b003c62bbaa5c0mr1915590pge.3.1651775391039; Thu, 05 May 2022 11:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651775391; cv=none; d=google.com; s=arc-20160816; b=D2D4gOBqO67xX728WoXU5O77ueIr61L+7bZCKzxeN8zbSSoUxRWMxPDdFD+n6u89Pp q2V2Mt5BoyQ4HVOeLLwd+Kd8Yw85AIe2BZ8a+clTyFr6uc/UJWrGF6Cnu3/tNiUlsWVN 2IHae0fjpzoAGTO7cfhMlKdk7z1MS0M2VPg+VEp3uxvs6A/M/vhsV6AAHDMykxd5yfec NKrqwLt7tzVTmuHiOOf2kL6vLO3q8wSgrUMRPuM8AOIeHmg35KWNDMttv4m0ZDRIaFy7 y5NB605EsjcolcchntJpw6cgTQxKiiLgY0PwtYlZL14G83TRng7XWm27oS33a/IB0LFn W6Aw== 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=QyYJs/mMprvWMV99WAQBIp+nJ54nBwGeI1x1COSfpzg=; b=GtL+D3EWjRWd7l0bEAJHssW3Z8aVSRc6+rJkj16coVp75/aw2Z0FvQF+69QqKuECP9 /V46X8SpgBZksmdAy3jG9WVfYvKhvWOHMfoWfBk1DJEIlEb1BAL4koF6ANkBz2fj7sdJ B6+jsjOJ2LBdmE2cqjfNikOUp9Hx59P4WbeTc+oChiygvwsQ677kwO2u41v0oCK7/FoN 8r0stvmVIH8bq1eQBvcUHA7OfRJmUo4aW/5cmxdDSc5TEWFUJ4Or53LFaDhq54MWI5H0 hjqQirVw8HzlRrrySpGzhI3Tp+FqGNaW6nTZB83gRulziCrBta61eaB+6n31bgDuRNP3 DBGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q9h2UnTL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id om16-20020a17090b3a9000b001dc8d30c8a8si7658108pjb.123.2022.05.05.11.29.34; Thu, 05 May 2022 11:29:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q9h2UnTL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359504AbiEDRoW (ORCPT + 99 others); Wed, 4 May 2022 13:44:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355954AbiEDRI5 (ORCPT ); Wed, 4 May 2022 13:08:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B62C9522F9; Wed, 4 May 2022 09:54:45 -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 3527861851; Wed, 4 May 2022 16:54:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83532C385A5; Wed, 4 May 2022 16:54:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683284; bh=+Rmjm5j+NVCX092c+nELx71iEIRBfHPkU0zB4Hx6TB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q9h2UnTLvulCbhwni0ynXjWr6xG9Mf138mMPs3wvzoXxm/7yppJwjdHtxHLfQSG3T 38olak5GhaYNVxDkTT2HMPVJoR4UMNZ7fps7AJZCmCrv70qIYKQjSbv4RLauPWAs16 YlMjNOUdZXJzPL+MnxT3uc7J4C+s3eYx+mgA0duo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexey Kardashevskiy , Michael Ellerman , Sasha Levin Subject: [PATCH 5.15 137/177] powerpc/perf: Fix 32bit compile Date: Wed, 4 May 2022 18:45:30 +0200 Message-Id: <20220504153105.484189218@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Alexey Kardashevskiy [ Upstream commit bb82c574691daf8f7fa9a160264d15c5804cb769 ] The "read_bhrb" global symbol is only called under CONFIG_PPC64 of arch/powerpc/perf/core-book3s.c but it is compiled for both 32 and 64 bit anyway (and LLVM fails to link this on 32bit). This fixes it by moving bhrb.o to obj64 targets. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220421025756.571995-1-aik@ozlabs.ru Signed-off-by: Sasha Levin --- arch/powerpc/perf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/perf/Makefile b/arch/powerpc/perf/Makefile index 2f46e31c7612..4f53d0b97539 100644 --- a/arch/powerpc/perf/Makefile +++ b/arch/powerpc/perf/Makefile @@ -3,11 +3,11 @@ obj-y += callchain.o callchain_$(BITS).o perf_regs.o obj-$(CONFIG_COMPAT) += callchain_32.o -obj-$(CONFIG_PPC_PERF_CTRS) += core-book3s.o bhrb.o +obj-$(CONFIG_PPC_PERF_CTRS) += core-book3s.o obj64-$(CONFIG_PPC_PERF_CTRS) += ppc970-pmu.o power5-pmu.o \ power5+-pmu.o power6-pmu.o power7-pmu.o \ isa207-common.o power8-pmu.o power9-pmu.o \ - generic-compat-pmu.o power10-pmu.o + generic-compat-pmu.o power10-pmu.o bhrb.o obj32-$(CONFIG_PPC_PERF_CTRS) += mpc7450-pmu.o obj-$(CONFIG_PPC_POWERNV) += imc-pmu.o -- 2.35.1