Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4389514rwb; Tue, 6 Sep 2022 06:59:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR6zJijiFTgYorL9Mryko6NDkXN5eEHZcoT/u8NrVKJMI7rqHNaJmiybBMlkLg8PdxrDJFAg X-Received: by 2002:a17:907:97c3:b0:741:834c:b060 with SMTP id js3-20020a17090797c300b00741834cb060mr29847306ejc.735.1662472743752; Tue, 06 Sep 2022 06:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662472743; cv=none; d=google.com; s=arc-20160816; b=bAf6+ZId40tyACKccF3+BE2B0pndV/QvfX6rk7cwVeE9wmkM8xalteWbOXaiGwHUPQ AKej/JY5Rqzbi40sJGYdX61Yhy2/9vEIY0VZ9QZI3nPqI5ZvcfVdtdjPeURaDuCRbFOS yQ18EnWzDW6j1QtVoy4DOkZYbHa0pATMqn6X7LOMH5WSsKYjChsy2puJYTA/Hs9+2xzE 6GMSviyWzPSoc8TVP5WKal20k8xeGwR3pvT8B6i1bejtLStEP7C9vM7aeMiLQp+yi4xx qBbsol8jtwwTvalRxLL2KDejSUAzzBhoqjHqFgmBUdlF9OWHXc04dRLNTRfBe71Kr7te O2nA== 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=kpQncaWi1rPGv4Qfj0dCTbSWSdM3syJ34wzIR8RwF0A=; b=ypE+HeSFaK5UCiu+WZvco63jPR5ReSOT9Avg+aVlK6NDQP+S7fNYu41wL4Z1uVYsnl m1PFxxSW6jYsEAyipalod5SYQp0a6+De0nWCCSQjp/+z8FHEprljk7137GeKH24MkJzI EpBGGU+3z8LoH4WSajDoljot3+M4gBCkQp/zCxxb2bVwmGypa+WuPNHNtKgCS0B0Tmni qMiKYLUw+nTCEIaUANCaTAw4Q8o3FmQ+iHTxD1W4+NfYLr4srOer06ZtLyEkiF6gkTav 49Spl79klmHjB4cT1Z+qOrmqHTCHjGw17syFycvMQjWJ9wvqaRPDB4ZEdt1RMO6L6BKQ Tu3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GAQ71TXZ; 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 sa24-20020a1709076d1800b0073d6dc47b12si9566248ejc.606.2022.09.06.06.58.27; Tue, 06 Sep 2022 06:59:03 -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=GAQ71TXZ; 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 S239172AbiIFN5S (ORCPT + 99 others); Tue, 6 Sep 2022 09:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240326AbiIFNyl (ORCPT ); Tue, 6 Sep 2022 09:54:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5E880F41; Tue, 6 Sep 2022 06:41:29 -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 50CBF61539; Tue, 6 Sep 2022 13:41:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B817C433D7; Tue, 6 Sep 2022 13:41:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471688; bh=Zhjxdo+O3YDSRG51bQSs5A+7FtpAQPLDxhfGV13A5s8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GAQ71TXZFq4KEFXeHYwIY5eYZnesqPwTLWWDh/Ch1pwijbbw2VZ74RGAOkYTI1j3N KZXAHO1C0Yupjh5oTC4xPQUojft9EjdABRqJqOaipUEUkv9xF+ujNZaHvn6WRHwEoO uewr7sMsaRKJiuAsePgRWKzw7b3pF4YTPP/Y6dA8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Martin Rodriguez Reboredo , Jiri Olsa Subject: [PATCH 5.15 102/107] kbuild: Add skip_encoding_btf_enum64 option to pahole Date: Tue, 6 Sep 2022 15:31:23 +0200 Message-Id: <20220906132826.180891759@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132821.713989422@linuxfoundation.org> References: <20220906132821.713989422@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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: Martin Rodriguez Reboredo New pahole (version 1.24) generates by default new BTF_KIND_ENUM64 BTF tag, which is not supported by stable kernel. As a result the kernel with CONFIG_DEBUG_INFO_BTF option will fail to compile with following error: BTFIDS vmlinux FAILED: load BTF from vmlinux: Invalid argument New pahole provides --skip_encoding_btf_enum64 option to skip BTF_KIND_ENUM64 generation and produce BTF supported by stable kernel. Adding this option to scripts/pahole-flags.sh. This change does not have equivalent commit in linus tree, because linus tree has support for BTF_KIND_ENUM64 tag, so it does not need to be disabled. Signed-off-by: Martin Rodriguez Reboredo Signed-off-by: Jiri Olsa Signed-off-by: Greg Kroah-Hartman --- scripts/pahole-flags.sh | 4 ++++ 1 file changed, 4 insertions(+) --- a/scripts/pahole-flags.sh +++ b/scripts/pahole-flags.sh @@ -17,4 +17,8 @@ if [ "${pahole_ver}" -ge "121" ]; then extra_paholeopt="${extra_paholeopt} --btf_gen_floats" fi +if [ "${pahole_ver}" -ge "124" ]; then + extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_enum64" +fi + echo ${extra_paholeopt}