Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3431483pxb; Mon, 4 Apr 2022 16:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnJqhP0TBSRCahZLyIsVWy/D5+fMIn3ACW8kiGpjut5VcArCCEGGsChdL1qtB0MFvBG9ze X-Received: by 2002:a17:90a:930b:b0:1bf:ac1f:6585 with SMTP id p11-20020a17090a930b00b001bfac1f6585mr804179pjo.88.1649116087287; Mon, 04 Apr 2022 16:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649116087; cv=none; d=google.com; s=arc-20160816; b=DO1ZETccVXYjCxGYecdYzhjetp3f7gbUfsLsCbJZT/FuLHIfu97/Y5TPRCsiWYwhSi AtVX3fa3/G7xnfBBjqabY09ssEGZQuNG6+QeaDpJOnHcO/HACK0L5rRCLpn4hQILEeRP DCBxQPPwtDfBNRXFvlTix01UPbbYGXdpMbQ4Clb7Pf9LU+id8CIxFqJ2psAqdbkia/vs sv1FN3upx/EBRd/AwqeJr6fdVdqoAj3Fq4sxUxj1l+6nWI/qQq1jAOfZyj8r/0WjBoYg LhjYAwriBP5pN3EmmNPRkXryIQlkiVF+1EC78LIwIbW5xzFOBuP/szemCUgrSJPJqIHi vfWQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zKMW+sdIqLLLXCkGEF3DSba9i8KXqL6Tdio5mAr9GBA=; b=DOgz5He5btK5UAdOBQo1QT1AaQPINDYcqym7Cw/3pGwmF6ifE3HjJpb4f8pxKcn3tU pkwg/h4F+pBG708BS6VdLqEFvva77QgG68Lvhl0ST1b1FFhiJaEjFeui1NZJkDdhm6O9 1vrUD0IvRndHqfd0jAYaa0zHI2M8XIasHTGn2aStfsG1wgeh5xEOd8PONpG0ekjfRrRS nCfUxejLyQ+HCNZT2H+2s3g1WaChxn1POfIvVMQh30UkBDag+mMb36mo19homn/M/NYC Qd1Fp8RK3inFFsFfmcf+hPOeHLVxu/9ysKs3zq01QMIA7SUlCg1n2Fdgk0QwR3y3DYD+ bjjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RELnGWHM; 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=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q4-20020a056a00150400b004fe25e70d99si1397463pfu.177.2022.04.04.16.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 16:48:07 -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=@intel.com header.s=Intel header.b=RELnGWHM; 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=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9103451311; Mon, 4 Apr 2022 16:34:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357881AbiDCMat (ORCPT + 99 others); Sun, 3 Apr 2022 08:30:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240845AbiDCMao (ORCPT ); Sun, 3 Apr 2022 08:30:44 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE85234B85; Sun, 3 Apr 2022 05:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648988928; x=1680524928; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ykhv0PHM2+QYmFYUxNK1v3kWBps7WbMwukEDYifJB/Y=; b=RELnGWHM5YwJyn38W3I6Ni7k5PAW9PeWBprQl9/SlGurIj9wUYalCSQR XsUDxTMFLRC+btS6sG0npWZg8kbAuT+JgD9WlW+TeWTflFIXVijN/ZfV+ Wjj1o4j4wajO3DgRGJ9QHwEHa6vMQbIichgDDZl/sgtYOu6V5iNWVpvGh C37XyD3sCRHN8C1D9Sb0aEYPzmGaOgT35QVD644l0+9sVY0WylL/PVIsD Qj/HnyJtCKtV4dPQcRxulnYeXR3DrBFvxrbtppoxscqD2OAKBNDWI6wcI aL1dXjop06qFfglZgkZBXzcoE4AhrJIE6Pgp9RVduIH2vSaFn543Z7euB w==; X-IronPort-AV: E=McAfee;i="6200,9189,10305"; a="285326415" X-IronPort-AV: E=Sophos;i="5.90,231,1643702400"; d="scan'208";a="285326415" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2022 05:28:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,231,1643702400"; d="scan'208";a="568943543" Received: from npg-dpdk-haiyue-2.sh.intel.com ([10.67.111.4]) by orsmga008.jf.intel.com with ESMTP; 03 Apr 2022 05:28:45 -0700 From: Haiyue Wang To: bpf@vger.kernel.org Cc: Haiyue Wang , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , netdev@vger.kernel.org (open list:BPF (Safe dynamic programs and tools)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2] bpf: correct the comment for BTF kind bitfield Date: Sun, 3 Apr 2022 19:53:26 +0800 Message-Id: <20220403115327.205964-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220403084433.200701-1-haiyue.wang@intel.com> References: <20220403084433.200701-1-haiyue.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 The commit 8fd886911a6a ("bpf: Add BTF_KIND_FLOAT to uapi") has extended the BTF kind bitfield from 4 to 5 bits, correct the comment. Signed-off-by: Haiyue Wang --- v2: update the btf.h under tools directory. --- include/uapi/linux/btf.h | 4 ++-- tools/include/uapi/linux/btf.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/btf.h b/include/uapi/linux/btf.h index b0d8fea1951d..a9162a6c0284 100644 --- a/include/uapi/linux/btf.h +++ b/include/uapi/linux/btf.h @@ -33,8 +33,8 @@ struct btf_type { /* "info" bits arrangement * bits 0-15: vlen (e.g. # of struct's members) * bits 16-23: unused - * bits 24-27: kind (e.g. int, ptr, array...etc) - * bits 28-30: unused + * bits 24-28: kind (e.g. int, ptr, array...etc) + * bits 29-30: unused * bit 31: kind_flag, currently used by * struct, union and fwd */ diff --git a/tools/include/uapi/linux/btf.h b/tools/include/uapi/linux/btf.h index b0d8fea1951d..a9162a6c0284 100644 --- a/tools/include/uapi/linux/btf.h +++ b/tools/include/uapi/linux/btf.h @@ -33,8 +33,8 @@ struct btf_type { /* "info" bits arrangement * bits 0-15: vlen (e.g. # of struct's members) * bits 16-23: unused - * bits 24-27: kind (e.g. int, ptr, array...etc) - * bits 28-30: unused + * bits 24-28: kind (e.g. int, ptr, array...etc) + * bits 29-30: unused * bit 31: kind_flag, currently used by * struct, union and fwd */ -- 2.35.1