Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1816154rwd; Fri, 9 Jun 2023 02:33:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6SJ/xgifaT7zQlb5jo4BKOopRbdLnDO3MESXPZrSlNDUChIVNg8tsUofGUwj7ZxzAWxt+0 X-Received: by 2002:a05:6830:16c6:b0:6b0:cccc:3279 with SMTP id l6-20020a05683016c600b006b0cccc3279mr950265otr.12.1686303223697; Fri, 09 Jun 2023 02:33:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686303223; cv=none; d=google.com; s=arc-20160816; b=XHfRDO+mMZV5OBmYkqP3JZbDdSblVzzlX3rweKI1r91Cx0QqY7+lzait+U4YR34jJz rD9M6mPRIWR4iedMd7heVagD7waxoz4ADVfcltZLGjECRARx9olgBjmjeEqIVdfxTsM8 z8Q4/qvxYsBL7b/VhMWQ+GYiMgSbf+N9zV6axlWSSZdgpV6GSGC9Ogs60ok/GAZ75YHS lPCuBug3Mrb+rjuLDekWi4t7dp+tWPjLIDLxh2xOkRtOv2NjhMvm6r+fHEXEY0UaH4Ua L75CEm2zEBhnF6IP/LZSdhHp/qzbqQY3cGvErXWNFr/bkIGJFHT4v9kMtiFh1SjI8DAL EygA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=xZRhkDtTSeZgnqu7N8XwI7ct33rW0W+QqL6s4Ga2BxU=; b=e8Rpy5nuQRbxJpymcJ1PcpZW90OkJcK86U4sC9nBPbfbodVijpgNbojBwu2421sFup p3NIABQaIK+5Ccib+EQyORDj1fJH9vmz57SVEGVG5tigWe491zVKVBVIir0gVnrZLFyS u+l8MCBNZa96in8MinjPC8wqAX/kK8VS0LHDy4AwgD1HBeO/820z2DLLcVA6Ev7LcY2d EtBfej0ytDl8TkVySCpUpBLixTaz909y2z0z4Kpaya8QOcNpf3goj5lISScVYa0VzLXg kMAvb49p+th8swJDGeJlSu5fepX30QmY2cJRDqLc2yb79KhShRc1VMu4We0t1Lm1Gr8l IN7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=d53OvKO4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v135-20020a63618d000000b0053ef5472637si2415089pgb.150.2023.06.09.02.33.31; Fri, 09 Jun 2023 02:33:43 -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=@linutronix.de header.s=2020 header.b=d53OvKO4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239387AbjFIJZm (ORCPT + 99 others); Fri, 9 Jun 2023 05:25:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241555AbjFIJYq (ORCPT ); Fri, 9 Jun 2023 05:24:46 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 906DA7287; Fri, 9 Jun 2023 02:18:53 -0700 (PDT) Date: Fri, 09 Jun 2023 09:18:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686302294; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xZRhkDtTSeZgnqu7N8XwI7ct33rW0W+QqL6s4Ga2BxU=; b=d53OvKO4aVNs1Bv7j7EpoJmcL1pqH5I3Y8S+hc9ma/xNXtUskgj88c2txhxkJXQ6YMppXv UnUjVscJ8M/KOPkCjnXkg60XWrY+Vi1qDZzG6LekBTeY7VtLNFx3ZyFeq31c7t9zgo+cce Z7YS3RjMHcaHtJeIsFOn0HvlBgHNXFOR6/o8DDQbRN+hPhUYb75iGP4tqRXKZ6UFoIdoUJ QQBg6UFKloTImGWC/GXepogCoCN9NCQDApp+ueSeGjO2NiC9GkoxXTXLAdklzE4Leo6dKU g/2q5V00y6Y2r1X19fdc4c1CwVozNWxvhIKRvEA9mOTSEyoyFeo4QKmjfHsYmg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686302294; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xZRhkDtTSeZgnqu7N8XwI7ct33rW0W+QqL6s4Ga2BxU=; b=WSnfe8lI18zPdZWsVuC24ZigkrV4oE2SgHYb0pf2q44d567uGc+e1lofwhPCneBlngV323 +Zjnm+V4Kzaq/2Dw== From: "tip-bot2 for Ingo Molnar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] x86/orc: Make the is_callthunk() definition depend on CONFIG_BPF_JIT=y Cc: Ingo Molnar , Josh Poimboeuf , linux-kernel@vger.kernel.org, Peter Zijlstra , x86@kernel.org MIME-Version: 1.0 Message-ID: <168630229338.404.8674192988459787200.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 The following commit has been merged into the objtool/core branch of tip: Commit-ID: 301cf77e21317b3465c5e2bb0188df24bbf1c2e2 Gitweb: https://git.kernel.org/tip/301cf77e21317b3465c5e2bb0188df24bbf= 1c2e2 Author: Ingo Molnar AuthorDate: Fri, 09 Jun 2023 11:04:53 +02:00 Committer: Ingo Molnar CommitterDate: Fri, 09 Jun 2023 11:09:04 +02:00 x86/orc: Make the is_callthunk() definition depend on CONFIG_BPF_JIT=3Dy Recent commit: 020126239b8f Revert "x86/orc: Make it callthunk aware" Made the only user of is_callthunk() depend on CONFIG_BPF_JIT=3Dy, while the definition of the helper function is unconditional. Move is_callthunk() inside the #ifdef block. Addresses this build failure: arch/x86/kernel/callthunks.c:296:13: error: =E2=80=98is_callthunk=E2=80=99= defined but not used [-Werror=3Dunused-function] Signed-off-by: Ingo Molnar Cc: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org Cc: Peter Zijlstra --- arch/x86/kernel/callthunks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/callthunks.c b/arch/x86/kernel/callthunks.c index 8e0a9b6..fcb8eea 100644 --- a/arch/x86/kernel/callthunks.c +++ b/arch/x86/kernel/callthunks.c @@ -293,6 +293,7 @@ void *callthunks_translate_call_dest(void *dest) return target ? : dest; } =20 +#ifdef CONFIG_BPF_JIT static bool is_callthunk(void *addr) { unsigned int tmpl_size =3D SKL_TMPL_SIZE; @@ -306,7 +307,6 @@ static bool is_callthunk(void *addr) return !bcmp((void *)(dest - tmpl_size), tmpl, tmpl_size); } =20 -#ifdef CONFIG_BPF_JIT int x86_call_depth_emit_accounting(u8 **pprog, void *func) { unsigned int tmpl_size =3D SKL_TMPL_SIZE;