Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3972675pxb; Tue, 25 Jan 2022 00:20:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI3+34hvC/3+TlhNEvDFxzsnGrP7ziIw/iGCPc3g33k3o32+76XCYS5sDQ9hZETW2a38pQ X-Received: by 2002:a05:6a00:c85:b0:4c7:cf25:3aa3 with SMTP id a5-20020a056a000c8500b004c7cf253aa3mr13669693pfv.5.1643098830543; Tue, 25 Jan 2022 00:20:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643098830; cv=none; d=google.com; s=arc-20160816; b=d4JcDYQ74NQMZg4HVal5kjkYSIbgofAZKW8UvTmHyhfzx7DH3Yt6YhWC+fPRlSMKSt NMtwWhtzh+fYVa0z/d2KolEAk+KBYpJMQ6ucXVM9x0egCvVlEuJj0lvraQa5FULFk2on InJU+jaJfMVn7wx0aazAI8mL35KInjyq3MqLn1SXO6V29zzXDj/SnYrQ2nbd/O/hUrJy xX4aJ2etC0OjDtw9EujmHJNKbjISbUFWlUv899c9XjjN1hRxMdadQKFgGpo8ynt3Od1k TbbC7ejZPtp/xPlHnnbUncWDF6Qjx0Lw5wjtjuROXKLLjy1UpXS3nYsr6XryuAz9nxPW Hn3A== 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=L1miunBWZt473RXg5AbJP0rfv75J3vdm3A0VRZE3IWM=; b=vxvMPth3eEe9oR5TgD1i6krvQqJyMTnrKDM1drt3afcYGPPi72bewDY3ihwL1gFCib opsb1RPEe5oYugasDl1Zho/Zeartm+TYjiZiYIHrXC3i6S+AzQbPseWB2zQqbXHMkFJZ wQj2pZ96LRGMuJ1qcN5J9lg15X5akGtaqX1yN0UgCsO9tCLuWVbUk5a6yCHz1KSByrpm NIFN8mfyuwkVknZ+skO7OQoSRsny5il8evCHyxXw6bkwazcrmEtNQPLcl6DzYOTpWgrn QuW4Vn0i76atonCaOJq3J1IimHpZlho/SZEC1dS9Dc7EaNT/tOYwO1G6Cg6XQDbmIIzR q0Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i2MXvWyq; 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=pass (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 u7si19596800plh.276.2022.01.25.00.20.18; Tue, 25 Jan 2022 00:20:30 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=i2MXvWyq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S3413428AbiAYAjD (ORCPT + 99 others); Mon, 24 Jan 2022 19:39:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2363971AbiAXXq1 (ORCPT ); Mon, 24 Jan 2022 18:46:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0A95C05A1BA; Mon, 24 Jan 2022 13:40:07 -0800 (PST) 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 3D52D6150F; Mon, 24 Jan 2022 21:40:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DFADC340E4; Mon, 24 Jan 2022 21:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060406; bh=GEPTA5WbQg+7Raj5vrdh/6V20f+eelTVgqL11f2YC6k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i2MXvWyqMgkcDVmujtTsxFAm7n/OBwPo7Em9DpzIhJqnmsRaxpebtB5lPPJ5yVCMB Ikzup0xjtQ1zMsM15oT/c7d7OGwaXiHxpMx0DQ0p85bIGsePEzXvKQa+xEGQxMCaFI WabjAlsgXeFipsutH/vSI8HZtPMf7qA/HLxxcV9E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrii Nakryiko , Alexei Starovoitov , Dave Marchevsky Subject: [PATCH 5.16 0936/1039] libbpf: Remove deprecation attribute from struct bpf_prog_prep_result Date: Mon, 24 Jan 2022 19:45:25 +0100 Message-Id: <20220124184156.752157099@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrii Nakryiko commit 5c5edcdebfcf3a95257b0d8ef27a60af0e0ea03a upstream. This deprecation annotation has no effect because for struct deprecation attribute has to be declared after struct definition. But instead of moving it to the end of struct definition, remove it. When deprecation will go in effect at libbpf v0.7, this deprecation attribute will cause libbpf's own source code compilation to trigger deprecation warnings, which is unavoidable because libbpf still has to support that API. So keep deprecation of APIs, but don't mark structs used in API as deprecated. Fixes: e21d585cb3db ("libbpf: Deprecate multi-instance bpf_program APIs") Signed-off-by: Andrii Nakryiko Signed-off-by: Alexei Starovoitov Acked-by: Dave Marchevsky Link: https://lore.kernel.org/bpf/20211103220845.2676888-8-andrii@kernel.org Signed-off-by: Greg Kroah-Hartman --- tools/lib/bpf/libbpf.h | 1 - 1 file changed, 1 deletion(-) --- a/tools/lib/bpf/libbpf.h +++ b/tools/lib/bpf/libbpf.h @@ -431,7 +431,6 @@ bpf_program__attach_iter(const struct bp * one instance. In this case bpf_program__fd(prog) is equal to * bpf_program__nth_fd(prog, 0). */ -LIBBPF_DEPRECATED_SINCE(0, 7, "use bpf_program__insns() for getting bpf_program instructions") struct bpf_prog_prep_result { /* * If not NULL, load new instruction array.