Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2656650pxa; Mon, 17 Aug 2020 15:41:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnlMEU66u6Q9ePPyy9pW+r4QGsRx+yExojPpW4Y+/uf0rYnR35vEAAoeVNN4oBvVjRbIxw X-Received: by 2002:a05:6402:1427:: with SMTP id c7mr17735977edx.245.1597704115436; Mon, 17 Aug 2020 15:41:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597704115; cv=none; d=google.com; s=arc-20160816; b=jPnuBNBqpIG6Uu8rgFiUvnl695mKX03Baw4TrjEsVuSsyI92TVbL24GyoV8Ay89pix FNdR0byy821FpOHFW20MLAmjOW8Zx3h4qxiMfoBbJzhfUDX1/XYKQQlERYFlQe1MdZ3t 2XXdAwo/YcZOjclQSQSWFG8FpkGxfJ+A+hyFRiUJUDTtA8l5Tw/3cZAh0t/HVLmX4vek 384OoGg7+AxrM1OQquGFKxps5BKqLWGAVCgcCKZYvX8AtWuosxkRR2GkcwcZPK3AAaBM CetMmAPUFzE7PU/b5cNRZGQ9NwU0leax/jy05eR9u9Hr8NPpQQMZud/AeE1jN+qZFlUB XAmA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=plcX39n0i8xVmy4CAWox3u1/tJ2Liu++/4mzGuIN/BY=; b=QsIeLLmqaI4CjqFEzG6kRvnHk1dz0WzGHEke5vPheZZEiePPNC1ViSfRAV4xWoV5Q4 ncCISR6AmdvYBEY5qM5dXxoPF783Nl4JF/8R2NsmOL9S2IeMDdMIQr+EdE+kdj9TgzhR MEE6Z2+JWnTPPiJc8o+SL/LeQohOkbyNKr4tuyjTAXo9cWfYTZkI+gRcrIizdBn6k9Vu J5k9OmHC0+XWrEEWxKdn0A8uE47ymxEExfjr3ccY82m87XZDtC5BlwOhIijuTpOrEEDR HOwf7D1aFYTIJCXo4ulJsxJl0bM2e6GIV0gTUZIiPAdDC50fCy0k1OMJwnY0TRTQ7V6R iDFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ap8bMSVF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si12820686edq.101.2020.08.17.15.41.31; Mon, 17 Aug 2020 15:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ap8bMSVF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390633AbgHQSOm (ORCPT + 99 others); Mon, 17 Aug 2020 14:14:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:54542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388395AbgHQQG0 (ORCPT ); Mon, 17 Aug 2020 12:06:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 E9D3120772; Mon, 17 Aug 2020 16:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680386; bh=fGjbhm6ieFwl0Pv8oddzM6Pl+xjoXp9fYXB/Sx3ueCg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ap8bMSVFeBpo3seRfZT4NYrGTD7mU7L36TbBoQFCKhbplICN1I2Yw4gMnH+lyvqA6 GpBZZdF1OfzNokE92rfYzW+W3ysaym1pZ6iPFLlpOw9wGnRhNYvCgD8pNeXFE2ClG9 5OMBSnKjVOj6VnAhGB2v9haUKQKGLCxHiEpb7OB0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Aneesh Kumar K.V" , Madhavan Srinivasan , Michael Ellerman , Sasha Levin Subject: [PATCH 5.4 159/270] powerpc/perf: Fix missing is_sier_aviable() during build Date: Mon, 17 Aug 2020 17:16:00 +0200 Message-Id: <20200817143803.759991736@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Madhavan Srinivasan [ Upstream commit 3c9450c053f88e525b2db1e6990cdf34d14e7696 ] Compilation error: arch/powerpc/perf/perf_regs.c:80:undefined reference to `.is_sier_available' Currently is_sier_available() is part of core-book3s.c, which is added to build based on CONFIG_PPC_PERF_CTRS. A config with CONFIG_PERF_EVENTS and without CONFIG_PPC_PERF_CTRS will have a build break because of missing is_sier_available(). In practice it only breaks when CONFIG_FSL_EMB_PERF_EVENT=n because that also guards the usage of is_sier_available(). That only happens with CONFIG_PPC_BOOK3E_64=y and CONFIG_FSL_SOC_BOOKE=n. Patch adds is_sier_available() in asm/perf_event.h to fix the build break for configs missing CONFIG_PPC_PERF_CTRS. Fixes: 333804dc3b7a ("powerpc/perf: Update perf_regs structure to include SIER") Reported-by: Aneesh Kumar K.V Signed-off-by: Madhavan Srinivasan [mpe: Add detail about CONFIG_FSL_SOC_BOOKE] Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20200614083604.302611-1-maddy@linux.ibm.com Signed-off-by: Sasha Levin --- arch/powerpc/include/asm/perf_event.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/perf_event.h b/arch/powerpc/include/asm/perf_event.h index 7426d7a90e1e1..7aba3c7ea25cd 100644 --- a/arch/powerpc/include/asm/perf_event.h +++ b/arch/powerpc/include/asm/perf_event.h @@ -12,6 +12,8 @@ #ifdef CONFIG_PPC_PERF_CTRS #include +#else +static inline bool is_sier_available(void) { return false; } #endif #ifdef CONFIG_FSL_EMB_PERF_EVENT -- 2.25.1