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 36DE5C636CD for ; Wed, 1 Feb 2023 12:36:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjBAMgy (ORCPT ); Wed, 1 Feb 2023 07:36:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232002AbjBAMgp (ORCPT ); Wed, 1 Feb 2023 07:36:45 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F24E5CE45; Wed, 1 Feb 2023 04:36:43 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8BxZ+naXNpjZHkLAA--.18171S3; Wed, 01 Feb 2023 20:36:42 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxOL3WXNpjUXImAA--.10032S6; Wed, 01 Feb 2023 20:36:42 +0800 (CST) From: Tiezhu Yang To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next 4/4] bpf: Mark BPF_ALU and BPF_JMP as deprecated Date: Wed, 1 Feb 2023 20:36:38 +0800 Message-Id: <1675254998-4951-5-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1675254998-4951-1-git-send-email-yangtiezhu@loongson.cn> References: <1675254998-4951-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf8AxOL3WXNpjUXImAA--.10032S6 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou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TuYvjxUcCD7UUUUU Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For now, BPF_ALU and BPF_JMP are not used by any kernel code, but we can not remove them directly due to they are in the uapi header file, so just mark them as deprecated. Signed-off-by: Tiezhu Yang --- include/uapi/linux/bpf_common.h | 4 ++-- tools/include/uapi/linux/bpf_common.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/bpf_common.h b/include/uapi/linux/bpf_common.h index ee97668..75ae3dd 100644 --- a/include/uapi/linux/bpf_common.h +++ b/include/uapi/linux/bpf_common.h @@ -8,8 +8,8 @@ #define BPF_LDX 0x01 #define BPF_ST 0x02 #define BPF_STX 0x03 -#define BPF_ALU 0x04 -#define BPF_JMP 0x05 +#define BPF_ALU 0x04 /* deprecated */ +#define BPF_JMP 0x05 /* deprecated */ #define BPF_RET 0x06 #define BPF_MISC 0x07 diff --git a/tools/include/uapi/linux/bpf_common.h b/tools/include/uapi/linux/bpf_common.h index ee97668..75ae3dd 100644 --- a/tools/include/uapi/linux/bpf_common.h +++ b/tools/include/uapi/linux/bpf_common.h @@ -8,8 +8,8 @@ #define BPF_LDX 0x01 #define BPF_ST 0x02 #define BPF_STX 0x03 -#define BPF_ALU 0x04 -#define BPF_JMP 0x05 +#define BPF_ALU 0x04 /* deprecated */ +#define BPF_JMP 0x05 /* deprecated */ #define BPF_RET 0x06 #define BPF_MISC 0x07 -- 2.1.0