Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2172834iof; Tue, 7 Jun 2022 22:08:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqBKc7z8gI9Y/Fj4Qu+KfPtscx634kcbdjvAQbN9GDcOMO+G1bSTeosQGaujiANGSli06/ X-Received: by 2002:a17:902:e5cb:b0:165:1500:a69b with SMTP id u11-20020a170902e5cb00b001651500a69bmr32494581plf.29.1654664926410; Tue, 07 Jun 2022 22:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664926; cv=none; d=google.com; s=arc-20160816; b=xZ5JWB3TCssZiAG4aYe/4VYgN0sJ15qrIfJ1ugngFqlh8SVbYsArkXqtcn0FqTzwPC ywcekcu1WH7aak5OWzFEDfcpfbIDt0UzRvIE6oLEzTsMQLmj95k3Wyixo9PfuAYtrOMz 0dlz3mLxMJnhMdD5wLiR62vmC+K/gUmBCMEBF3VGc7tI1gpOJ5H4PrAbbIJKIsXXNiKP 578GRfSSfDRjokRq1sTrJsr5GXLceryZ7xSBnrxsAjmERMs7lX09niudNiUg/y1HeIn4 Q6rekRikv6S6Ikwgly6nLBhZ4EPbCPgAyTvTo48qd+OIEgdsq/7l83tINH+ljpBBQkF6 fGkw== 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=PHoGxnu0LHMN9oAkN0oKwRoUNCP30yeZTjR/BF8HVBc=; b=tyTh/g4ayQw3++Mqml+e8RSj5dHbNEAg6lsTaxChZ5LKf7uIMfj8rL54ZaLzldjdTF UYaP8EGx/sEXUswTppX0lCwBTkITrR2XMR3ljDT+Zt1ZWHsaaSG41+46Lys3udGe6198 xDkbWO0dv3toWUhwPVfpDkWAP/CWiQ2Cg4bwPTiffOBOaZoHIbVq11CNf0JtUmaEY6H5 gdzZVyv0fKN4rpDYIhsnbxAxsl2/t9jA1swVNDh36Rxlg3+1uvD93EMrP0QK0G55vUVH wiGQdxckbTJ+mtzmK3vzW5W84UV0sKulvPf7meDbgotM/W88cuIcvCpxB8SUN/9I1vIg qzaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sBcJSjb4; 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 e6-20020a170902ef4600b001663333529csi25783295plx.260.2022.06.07.22.08.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:08:46 -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=sBcJSjb4; 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 D164B3F6EDD; Tue, 7 Jun 2022 21:38:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380522AbiFGVa5 (ORCPT + 99 others); Tue, 7 Jun 2022 17:30:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378133AbiFGUex (ORCPT ); Tue, 7 Jun 2022 16:34:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4905F1E96C0; Tue, 7 Jun 2022 11:37:35 -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 ams.source.kernel.org (Postfix) with ESMTPS id 96D4AB82182; Tue, 7 Jun 2022 18:37:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAD91C385A5; Tue, 7 Jun 2022 18:37:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654627052; bh=6oCEsGrH4yCyfhP7SrWq+do8nPz28zA/Cu2zTNcGrHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sBcJSjb4FLYJIN0AbtfDrzfG0crsl9qMrD0Io6d4STf9gdDEcgyOa4mieUpYgEyRU nj+EjixqVJyZiitTJN2uijIBPcStOpIGZyd9ePorCvMYBso6bAuPai8kLtb4fk8HCq OKAl7nTLexItu+X0FlXg3TZGTcppFKzV5ixZfJ38= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jiri Olsa , Heiko Carstens , Ian Rogers , Ilya Leoshkevich , Sumanth Korikkar , Sven Schnelle , Thomas Richter , Vasily Gorbik , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 5.17 598/772] perf build: Fix btf__load_from_kernel_by_id() feature check Date: Tue, 7 Jun 2022 19:03:10 +0200 Message-Id: <20220607165006.563021102@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164948.980838585@linuxfoundation.org> References: <20220607164948.980838585@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: Jiri Olsa [ Upstream commit 73534617dfa3c4cd95fe5ffaeff5315e9ffc2de6 ] The btf__load_from_kernel_by_id() only takes one arg, not two. Committer notes: I tested it just with an older libbpf, one where btf__load_from_kernel_by_id() wasn't introduced yet. A test with a newer dynamic libbpf would fail because the btf__load_from_kernel_by_id() is there, but takes just one arg. Fixes: 0ae065a5d265bc5a ("perf build: Fix check for btf__load_from_kernel_by_id() in libbpf") Signed-off-by: Jiri Olsa Cc: Heiko Carstens Cc: Ian Rogers Cc: Ilya Leoshkevich Cc: Sumanth Korikkar Cc: Sven Schnelle Cc: Thomas Richter Cc: Vasily Gorbik Link: http://lore.kernel.org/linux-perf-users/YozLKby7ITEtchC9@krava Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- .../build/feature/test-libbpf-btf__load_from_kernel_by_id.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/build/feature/test-libbpf-btf__load_from_kernel_by_id.c b/tools/build/feature/test-libbpf-btf__load_from_kernel_by_id.c index f7c084428735..a17647f7d5a4 100644 --- a/tools/build/feature/test-libbpf-btf__load_from_kernel_by_id.c +++ b/tools/build/feature/test-libbpf-btf__load_from_kernel_by_id.c @@ -1,7 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 -#include +#include int main(void) { - return btf__load_from_kernel_by_id(20151128, NULL); + btf__load_from_kernel_by_id(20151128); + return 0; } -- 2.35.1