Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB624C433EF for ; Thu, 6 Jan 2022 23:46:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245538AbiAFXqw (ORCPT ); Thu, 6 Jan 2022 18:46:52 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:63090 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245689AbiAFXqv (ORCPT ); Thu, 6 Jan 2022 18:46:51 -0500 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 206M452M006704 for ; Thu, 6 Jan 2022 15:46:51 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=facebook; bh=xJF1XKBSeg/O+j/x3gIxbPrX/aounzPjtLfRmE80AHI=; b=dqc4qVeC539z6Irh5CNCUbnkJ27x3M9jgYtrOdi2aNrNlw/AQ3zuOBoSEuO3mZiuUS+3 FMl/ykmMRlbZWLC42ql4LyFLVzOj+7jqCyEC4+mkMkfyysTZKCIlsfVf7P62iqW8tsSe 2y/zGy5lGlLsBE3vw762+h8oEAFrRoAY7/U= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3de4vjt7kk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 06 Jan 2022 15:46:51 -0800 Received: from twshared14302.24.prn2.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:82::d) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Thu, 6 Jan 2022 15:46:49 -0800 Received: by devbig921.prn2.facebook.com (Postfix, from userid 132113) id 7E5F615CB716; Thu, 6 Jan 2022 15:46:44 -0800 (PST) From: Christy Lee To: , CC: , , , Subject: [PATCH bpf-next v2 0/2] libbpf: rename bpf_prog_attach_xattr to bpf_prog_attach_opts Date: Thu, 6 Jan 2022 15:46:37 -0800 Message-ID: <20220106234639.1418484-1-christylee@fb.com> X-Mailer: git-send-email 2.30.2 X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-GUID: w8ILPl0ukn_iPpfyr_Ok8itZQ6aoc8BS X-Proofpoint-ORIG-GUID: w8ILPl0ukn_iPpfyr_Ok8itZQ6aoc8BS Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-06_10,2022-01-06_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=fb_outbound_notspam policy=fb_outbound score=0 priorityscore=1501 malwarescore=0 clxscore=1015 spamscore=0 mlxlogscore=935 adultscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201060144 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org All xattr APIs are being dropped, mark bpf_prog_attach_opts() as deprecated and rename to bpf_prog_attach_xattr(). Replace all usages of the deprecated function with the new function name. [0] Closes: https://github.com/libbpf/libbpf/issues/285 Changelog: ---------- v1 -> v2: https://lore.kernel.org/all/20211230000110.1068538-1-christylee@fb.com/ * Used alias instead of returning original function * Split out selftests to a different commit Christy Lee (2): libbpf: rename bpf_prog_attach_xattr() to bpf_prog_attach_opts() selftests/bpf: change bpf_prog_attach_xattr() to bpf_prog_attach_opts() tools/lib/bpf/bpf.c | 9 +++++++-- tools/lib/bpf/bpf.h | 4 ++++ tools/lib/bpf/libbpf.map | 1 + .../selftests/bpf/prog_tests/cgroup_attach_multi.c | 12 ++++++------ 4 files changed, 18 insertions(+), 8 deletions(-) -- 2.30.2