Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2279219iof; Wed, 8 Jun 2022 01:14:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyHeP/GQhKvzf0KM/19P81yI1+VI0KYSZTUjIGNE/GVcwS8WTaNeMEclh+5RXqQUcPgyYc X-Received: by 2002:a63:874a:0:b0:3fe:c72:ec50 with SMTP id i71-20020a63874a000000b003fe0c72ec50mr5527138pge.141.1654676092991; Wed, 08 Jun 2022 01:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654676092; cv=none; d=google.com; s=arc-20160816; b=zVhflk74i3jmnE3m/suHkbq9rjrnf1IYB/gDNonQQ7XmZV1Y8CuPc5OiC/EDzdhDNm /8SkXv/o9fhdVZm+g4YDS1aHy5uJDuZc0Hr52y7otrsHaKMzkoWNSMigvquP1Ct+lF3n 3bf4NDZOcWWBjrqoBzJuV55X8ZSsHKe4u5UGxKhH9Mm6271ux/na1mMip34rctPRp0TO Klq/IYgl4MpyXi2XM0wZC3umKRTyqwkLRAxhfFxGeWs40PTad99y4WneABtBL0g4L2/I uAWFsFwbc84RKLCJQtNFWzrphGQtEgr3F36RGEE+N7ZdqZB7+DNTbRYvUfrRx1wF5xWZ TOBA== 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=uXCie2XCHswy9HajlcU92JwL5CNWV+9u4MwD7hldqR9q/1FDoMi0B9TIqzQYHN8CeY jnY8zmk1qSlclXubG2bc7v9KMzbNtq+VHIIefXHImy4SGQ81E1pTpAcRIra1uznkFVTU mog+PzDiDuffu4QE3+O70gvdmjJEbV3OqUCuME9Jf9iAsm9kprq4e5tuJ70G7fH+mH6Q uUMOXzYBfOoAh2AuTfgtbSuVwoFHo96StmeUbxTfoLfOK4ze5BC8DQiKU6nmtr350K+D KXfQDETdvk6YSo02a1jJ92/Mt6lRlWoSh1wdXBEabX2S3G41T/s+MamdjqYIlModaqqJ XugA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HlnepKPp; 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 n7-20020a170902e54700b00153b2d1653asi32630348plf.322.2022.06.08.01.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:14:52 -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=HlnepKPp; 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 660E7391800; Wed, 8 Jun 2022 00:46:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391217AbiFHAhX (ORCPT + 99 others); Tue, 7 Jun 2022 20:37:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383737AbiFGWGO (ORCPT ); Tue, 7 Jun 2022 18:06:14 -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 AD41D196A98; Tue, 7 Jun 2022 12:17:33 -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 4A44F6192F; Tue, 7 Jun 2022 19:17:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30C8BC385A2; Tue, 7 Jun 2022 19:17:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629452; bh=6oCEsGrH4yCyfhP7SrWq+do8nPz28zA/Cu2zTNcGrHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HlnepKPparM/cb27mRvM5OusKxt3rX1VN4VsUk7GbMf1i1BvL/1fkesVQNrjmeUJW XL0UI5JPu6KebaC7JNCHnU+VMAfymQDfLCispKXWjtulBg5U2fQTRmOBQN/bWbvf0q 9sx0otLS02dxA9iVhiMqJGzfv7nFsKaUn6kDAgFk= 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.18 696/879] perf build: Fix btf__load_from_kernel_by_id() feature check Date: Tue, 7 Jun 2022 19:03:34 +0200 Message-Id: <20220607165023.049031152@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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