Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp10498imd; Fri, 26 Oct 2018 04:19:36 -0700 (PDT) X-Google-Smtp-Source: AJdET5exKv6qBE5x7IVJ3PLZb8TpuRCE2YSM7avsPqAmuKb+3PacFSY2jo9T/RdlPhLd+vomn4qD X-Received: by 2002:a17:902:45a5:: with SMTP id n34-v6mr3131415pld.341.1540552776197; Fri, 26 Oct 2018 04:19:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540552776; cv=none; d=google.com; s=arc-20160816; b=CcHoqqWproBTeft0jf+8Wapw1VxghBtrtQ2SFJRKunpzq4uFXRUsj1vCa05Y4XDTYP B4T+Q2waGezfWz8C1s74bl1QihY1vIgoIGv5JvwDe8wpMhy44qCV9VYmDWxJyNGv9hD0 TlAN6+aOFArWx19/d7Uo9is+3KkO93Yjy0TLykdNeSoYfzn2qtKZJYGfcrWrVRUUDVDN 4qUYghPS4IttYh3nUThqblN0QZLEumG1qipyIimqODao/+GI92s8Mu3zZRWa+HyH+ndh 48LN5+klfEuWwC5l2YjsfgKQeycVrh8tfIPy10S6Wez5CidPhAijnQWp0FhP+lIFv4ni OCnA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=9GdEon9kGSnhqtQ9TB/enfDHv2Ma4cxVQmKQ9/8qVJ0=; b=H39wHLcndk1385wKfycQhHjQoZnuSrjpES77sylkWhqcjCRHx+xeGEnFyPcjYkrfAE mQ/AOV1BGJPwb1dq4AhwZ1xsqVTLLwIFM0mFtVG2mduykK27tnnSZcMrYN22oNgWYClr 4iRhS0jIZ3+EZYBI2r/ifMH6gHYmws7mOt1vZFx85QA71JpshpVHaaET25CsXJ2OjU3/ xyQas0zY7QhKPDfIlY+fYEPuyFTCMtEQuTMLgMJuilu/vrQ28Lafrq7IlzqQRVu3UF0B S7OpFGmFwXlzMIOTCBNU9nKqRt8E3imyw6ASAHp1Z48TvMzJkG4dfxhKzFNJ5W7nrOZ9 iOtw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n73-v6si11508221pfh.96.2018.10.26.04.19.20; Fri, 26 Oct 2018 04:19:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727682AbeJZTzn (ORCPT + 99 others); Fri, 26 Oct 2018 15:55:43 -0400 Received: from smtp3-1.goneo.de ([85.220.129.38]:43732 "EHLO smtp3-1.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727291AbeJZTzn (ORCPT ); Fri, 26 Oct 2018 15:55:43 -0400 X-Greylist: delayed 588 seconds by postgrey-1.27 at vger.kernel.org; Fri, 26 Oct 2018 15:55:42 EDT Received: from localhost (localhost [127.0.0.1]) by smtp3.goneo.de (Postfix) with ESMTP id 7861823F240; Fri, 26 Oct 2018 13:09:12 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.753 X-Spam-Level: X-Spam-Status: No, score=-2.753 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.147, BAYES_00=-1.9] autolearn=ham Received: from smtp3.goneo.de ([127.0.0.1]) by localhost (smtp3.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OUgGX45SwA-I; Fri, 26 Oct 2018 13:09:11 +0200 (CEST) Received: from [192.168.1.127] (dyndsl-091-248-240-114.ewe-ip-backbone.de [91.248.240.114]) by smtp3.goneo.de (Postfix) with ESMTPSA id 3274A23F366; Fri, 26 Oct 2018 13:09:09 +0200 (CEST) Subject: Re: [PATCH 10/17] prmem: documentation To: Peter Zijlstra , Igor Stoppa Cc: Mimi Zohar , Kees Cook , Matthew Wilcox , Dave Chinner , James Morris , Michal Hocko , kernel-hardening@lists.openwall.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, igor.stoppa@huawei.com, Dave Hansen , Jonathan Corbet , Laura Abbott , Randy Dunlap , Mike Rapoport , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181023213504.28905-1-igor.stoppa@huawei.com> <20181023213504.28905-11-igor.stoppa@huawei.com> <20181026092609.GB3159@worktop.c.hoisthospitality.com> From: Markus Heiser Message-ID: <094556ca-ea87-9c4a-2115-600d2833fb2a@darmarit.de> Date: Fri, 26 Oct 2018 13:09:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181026092609.GB3159@worktop.c.hoisthospitality.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 26.10.18 um 11:26 schrieb Peter Zijlstra: >> Jon, >> >> So the below document is a prime example for why I think RST sucks. As a >> text document readability is greatly diminished by all the markup >> nonsense. >> >> This stuff should not become write-only content like html and other >> gunk. The actual text file is still the primary means of reading this. > > I think Igor neglected to read doc-guide/sphinx.rst: > > Specific guidelines for the kernel documentation > ------------------------------------------------ > > Here are some specific guidelines for the kernel documentation: > > * Please don't go overboard with reStructuredText markup. Keep it > simple. For the most part the documentation should be plain text with > just enough consistency in formatting that it can be converted to > other formats. > > I agree that it's overly marked up. To add my two cent .. > WTH is with all those ** ? I guess Igor was looking for a definition list ... >> +Available protections for kernel data >> +------------------------------------- >> + >> +- **constant** >> + Labelled as **const**, the data is never supposed to be altered. >> + It is statically allocated - if it has any memory footprint at all. >> + The compiler can even optimize it away, where possible, by replacing >> + references to a **const** with its actual value. +Available protections for kernel data +------------------------------------- + +constant + Labelled as const, the data is never supposed to be altered. + It is statically allocated - if it has any memory footprint at all. + The compiler can even optimize it away, where possible, by replacing + references to a const with its actual value. see "Lists and Quote-like blocks" [1] [1] http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#lists-and-quote-like-blocks -- Markus --