Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp558325ybi; Fri, 7 Jun 2019 12:38:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTMoR2dmnr3sgHO6AgeN8ahKzMmBGmRh99JJUF0BNfFRZgC//9HeTaLicHeiP7Es1Z8TWw X-Received: by 2002:aa7:92da:: with SMTP id k26mr8115407pfa.70.1559936322959; Fri, 07 Jun 2019 12:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559936322; cv=none; d=google.com; s=arc-20160816; b=KnYjAmCHC/ijrjoqrf3F+qdFLBTreFgLeMO1oTRUEFkRBYu+MXL1a0ocSUb+reDQ9O kTkrf0RBdAS8NVTIfJVFyqkdNCuovXP1Sp3gpu/DeKN2WBao4vKuTYBvm9g0uBiNovs2 qy+qJIY5EanfrZQsxD0dGlYSJRXaGWZcYFcnDFpmFenNLHPTvLRqn7zfblLuJ/LFgcIC v4h/vyNT6B3ERNh2s+/XUfkVkKQL91LndvagNdLCxI5AGO6br9iagXU1aJcslEJwezLD GSCXZefaLx+zvz95ekalduROrttM9qOas+vE8ij3rz2pXDKKGiGLk7ucAl400LkwHoEp OLSw== 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=e3C4ul1ER6PyCoizpBQg5C8nin/xYkn5bpb6N98bym8=; b=Z6LINw+jz5tvW12BZE9Z6Hb76PZ3YhREpX8PefYIyRxnpRiGQGGeCmu2tLbvuW5Jnc o6kMlVCd3+JJku7rkHktSQcXlfH870l3MXY97eWpV/UQ/3hFxGRYiz7BzBoEoH+DiSbr LgwnKsZ7BXoxtKEJaTuvl6Ly13Gj+IOfBYDVR2Lqcg2wcN6gbUvi0gEr2qovCPP7q9sV /udjP4ziSxQlPzHLwKbxy7l3AgFPZPagF/BfiZKjcU3vqDIkHewDfrN/Gald+OQ0YOnD /spMV8q7DfIwX2Odn+5iOPfjpxYUlSLpQwDb32MG59ozMN7klq2LhUPIeCf+TGgHDeUH tayQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="q/bqPLHc"; 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 m127si2776059pgm.231.2019.06.07.12.38.25; Fri, 07 Jun 2019 12:38:42 -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="q/bqPLHc"; 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 S1732294AbfFGSzl (ORCPT + 99 others); Fri, 7 Jun 2019 14:55:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42364 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732086AbfFGSyk (ORCPT ); Fri, 7 Jun 2019 14:54:40 -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=e3C4ul1ER6PyCoizpBQg5C8nin/xYkn5bpb6N98bym8=; b=q/bqPLHcZic+BcN8nra57eHCqK aqgJXfRNnHQXl3Np3DnZCzyGe+0ZNxz5OA+bDaokK4/Bl5iU0FviZ1wVp87vFTBLYVo40UKIUf4QP uXy29Qe9zUL6buBMX1AkzSXONqIvGbtkX1NXd1+TtuyQdUxDSoOKtFrZO5sdT6NPnEay8AiWjRPBi ishF7rW4vHXnb6vxoKlOLH055ytS7n8siudayrH89hmvS1t3YOM1VGbiHNaz6TJoXtp89ZxM8sW+M Zh7xkzUy06WXNPJW3vi4x9U3IgX5XokSgjkku43slDxVNu7NlV+zn4AdftbZXMMAI/UUoRN4o3+TW IjSSBCRw==; Received: from [179.181.119.115] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hZK0d-0005sk-M2; Fri, 07 Jun 2019 18:54:39 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hZK0b-0007Ei-AQ; Fri, 07 Jun 2019 15:54:37 -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 v3 05/20] docs: bpf: get rid of two warnings Date: Fri, 7 Jun 2019 15:54:21 -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 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 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