Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5482287ybi; Tue, 4 Jun 2019 07:19:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpiKOTnI1pyb3vKC9DhQ7bxFwf7znPigy2x2K2/P7uigr8Jgt1HCpi0ljjC0uSYQYic0rO X-Received: by 2002:a63:1b56:: with SMTP id b22mr9519286pgm.87.1559657997445; Tue, 04 Jun 2019 07:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559657997; cv=none; d=google.com; s=arc-20160816; b=WEIabKj07rkuOicKwta4OCJC3rmJuC4SlLU5kYOCMT7PrnX3xWOFjkHb/luCoJosu9 /WCeMIP5tn3TncjUeL0wTaTtMbJQdbcLPYKCncxQZnHTDSqu5jWw+QekER7z+RNbD3li 0CnmNAc6Onn4kOmt3YKQX9yETZ6GYyPnRDaZMkRAnC4/PUqbz/VKY+i8LRYuoA+wYI0o 38jciO16VCUwKY/y9KThnjekAVE2CLUezKskkgf5G3mOTbTQtNEvA8MeteDdZ7nxFvNi yUQ0w1GMfrtpvg08exUOttAd5LKGxneYk/OObzB0wGqORUEvUIYxcM2+WmxkGYFUkU8Q 1aRA== 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=dhO3igvxIrcqM2bITRvLnPGN4GI5urZRLFU+88zCRl4=; b=HeSbDbc2zsNb4KR58wq4RrK9/DOnFknfi5UnTL7cIkyaBE71a/RrLtVgyV1dmP80Pc JxHWtEVKnWf5ZskAJwvlLZ2BDUx4guHWNdllYuRumILLYiI5KpvnVjIxXeiDFERNucdg P5xtrmiXVZsAtPNDl0KCFOFKj5c5f+QsNHkyJBfsHDkxjwFxM0MRwJ8bBrcEuAOMcbBR xR7YADmbVIx3bPpsBR0otu8R1yBOFJBfgpyezdkXMfLJa4uBi5BRxqkVZ/4NSfdPKKlq 7Wc7Y3Hq0ndhC+h5547tE88VrLMEg9mc/YtMT7SU5EisLAjXV25Vq907m1ld7dorDsjY PEjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=CbxVc21J; 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 187si24340015pfg.89.2019.06.04.07.19.39; Tue, 04 Jun 2019 07:19:57 -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=CbxVc21J; 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 S1727891AbfFDOSN (ORCPT + 99 others); Tue, 4 Jun 2019 10:18:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52570 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbfFDOSD (ORCPT ); Tue, 4 Jun 2019 10:18:03 -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=dhO3igvxIrcqM2bITRvLnPGN4GI5urZRLFU+88zCRl4=; b=CbxVc21JdLEkl0FXEV2FwrXHbE aK8sdLMTmQioUaiN5FMija5UFkoQqIuFVWCG/MDjmQkbP13PTElegFIY5obDo5hFHZKHutXYUNSiK M8sByLx38c/LyOcgNcMQn+eHslUqV8/PXmBmSqhkpiQum1Z7k9Vb9FEbiV5ND8VK5HLEJKAi6wTm+ 5j9Tp9BehAdbSBtHw5Kh6YzQoUTACOG4NjbDsy/QvtEZ3f6/6pu5BniJxuhS/MneESKh828Voiaik L4SgFCqwLOkt6FVRmNSC+cLLz/HQKhAvxIXvI+4iOJB2+nMtmKbx4K8ztiaPJCdOWTPLJM8+u3/gF CbuE0bRA==; Received: from [179.182.172.34] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYAGH-0001Rp-Ud; Tue, 04 Jun 2019 14:18:01 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hYAGE-0002kv-KM; Tue, 04 Jun 2019 11:17:58 -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 v2 05/22] docs: bpf: get rid of two warnings Date: Tue, 4 Jun 2019 11:17:39 -0300 Message-Id: <72cc48d5e25c9fb2b8729111db82abce8b25ee1b.1559656538.git.mchehab+samsung@kernel.org> 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 Acked-by: Song Liu --- Documentation/bpf/btf.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/bpf/btf.rst b/Documentation/bpf/btf.rst index 35d83e24dbdb..4d565d202ce3 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