Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp49708ybi; Wed, 29 May 2019 16:27:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNj2xElxLcyF6e64jeZadFeH04hlAPzcR1apDnu5hUmEmoGbcx1fvN8++kP7tu245gOA1u X-Received: by 2002:a63:2c50:: with SMTP id s77mr652137pgs.175.1559172429166; Wed, 29 May 2019 16:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559172429; cv=none; d=google.com; s=arc-20160816; b=ssf2Vh9Z1uE05nF5/+DNir7zeQ8PwlZaCptRDENsfIn8qe4qK/ANd2STcf3cEcIDMZ LcsLmR+JAjxWjF2WeIb7L4mMntWUoGjV1Y5iyxOwAw/iw0429Yod65rqA1d4HyVHFY2S TP82w/TXIkGF8Fd2SaERdiyz1s6sMlwONSwZUX5smhj+ygVR1OTHRtNmVGBmcEpElChp URxqLxtG2GNDMQ130koWarJ41vUNB3DZtm8b4D2wScXOxVph+fXXyzYtDpQKHYfg9m0h ziIonhrqz6WUFzkzNGXatR+zW8BvTDrHhT2BRKPCzijPQpZB/1MEeTqGlGcnY7aK43Rj U2Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GuRApsTHKHRm35pYDPJVOOpxLQPAfK9zSYMx81HUKXE=; b=UpfYbSWx11fGFxKV25/QYH2EEAjQMvqzGnpbho4oOPOQ0/NFIfrWq8UWcht+CT4Bhm HIhEvMrCWC5K9Xk5iFTzD5NxI6oiAzxK/ue/8QUFMAyN0StmXfr6pBAnUdcKyU717Nyr l/HnZLMwYaxcWG5icJ/f3wG+nMwrlC24dW5aiMll8L9xfmd7K0A3SVaSbWaCLbSgsMmp 74+tEmvKKuyU+UNGZlR2But4xGdpQ+hvtUhPyoqYEma+ufaVcZ8gpOhFQXCfUCgbjBcp XzFKwRLSVqRpg5LeLe+tz23sotZbT+5VwnAa401U7uHVGKoX/wZxITkUr53ndKb70s7E 96UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MbDfc3Xd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si1226271pgb.562.2019.05.29.16.26.53; Wed, 29 May 2019 16:27:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MbDfc3Xd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727072AbfE2XZX (ORCPT + 99 others); Wed, 29 May 2019 19:25:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:49136 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbfE2XYB (ORCPT ); Wed, 29 May 2019 19:24:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GuRApsTHKHRm35pYDPJVOOpxLQPAfK9zSYMx81HUKXE=; b=MbDfc3XdcpZjOoZSr+ZRM1zxYz lZGU489ttKjY+QRV4zlBaMZrDhQwHYdNiMRNezRDKxh8aXYsaSXtIEJx79iUMbc7oPPk9IWG0Rfm4 3/YaBAEkXDQozUp9eyCxfR+iqfNapR/9MBCE1GV0ti1E3aBzeZwr7bKlLxm6IDyj+dEM0SltjW6f1 bfqhJmJqn17Vf2ehOFhaCfL/G638neZQpNK0go4gR0nGuOzB8uYDW9RZS3kzOpW8AvZB5dAR/GvR5 YmJxKgcWOHUov4djDnKrMEAEkpKc3ZffrNE3Vils2X9JSVu8FmkkGTzWZm3cPSkAf4GAsiZdJa+AK 8SXiXF6Q==; Received: from 177.132.232.81.dynamic.adsl.gvt.net.br ([177.132.232.81] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW7vL-0005Rg-3g; Wed, 29 May 2019 23:23:59 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hW7vI-0007xE-Mh; Wed, 29 May 2019 20:23:56 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH 08/22] docs: bpf: get rid of two warnings Date: Wed, 29 May 2019 20:23:39 -0300 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Documentation/bpf/btf.rst:154: WARNING: Unexpected indentation. Documentation/bpf/btf.rst:163: WARNING: Unexpected indentation. Signed-off-by: Mauro Carvalho Chehab --- Documentation/bpf/btf.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst index 8820360d00da..4ae022d274ab 100644 --- a/Documentation/bpf/btf.rst +++ b/Documentation/bpf/btf.rst @@ -151,6 +151,7 @@ for the type. The maximum value of ``BTF_INT_BITS()`` is 128. The ``BTF_INT_OFFSET()`` specifies the starting bit offset to calculate values for this int. For example, a bitfield struct member has: + * btf member bit offset 100 from the start of the structure, * btf member pointing to an int type, * the int type has ``BTF_INT_OFFSET() = 2`` and ``BTF_INT_BITS() = 4`` @@ -160,6 +161,7 @@ from bits ``100 + 2 = 102``. Alternatively, the bitfield struct member can be the following to access the same bits as the above: + * btf member bit offset 102, * btf member pointing to an int type, * the int type has ``BTF_INT_OFFSET() = 0`` and ``BTF_INT_BITS() = 4`` -- 2.21.0