Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp431335imm; Fri, 11 May 2018 00:06:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq0qes+FqVBjy8JeFLE3AFFKpzkPzrLAvtAm6Bt1a34fQGTu/Lv6HgHpLrrUGJuHU4KxQ5S X-Received: by 2002:a63:755e:: with SMTP id f30-v6mr3610062pgn.149.1526022404961; Fri, 11 May 2018 00:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526022404; cv=none; d=google.com; s=arc-20160816; b=ZZDQrq472fSuJuWywhbWhYoyHsNM4wNfX+c4GzL/fQeboxCpwliKe+aEtO+ulipmlV FRcaJ++LjG83o5x49U68W2gtrzUqmGoCrYc2pzaHpR1vvMoX0cfx/6n7nA1klxhyctSa a9YzISJmVp8YDQ8DgKpRrEq+y7ZwNCozFNko0KFRZg6U42LueqK3msEYpxPblyY+so79 DHvGrDYVzfwnBHuQRfi9htbVMrtIw96WI9hw2cE1O4xyst8UomDV+DmQ5TkayZZMdLk5 YOneJV4ZPcHC24jNAQfFvtBNb20TCgJmtTlJWwoD+qwMCCm+4CNWW6SbVWZhSNZ1rkBW SFiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=tjbREjl33j7Vi9WF+vzX5a9A5A4h3xRte1Q3kpiBea4=; b=fDdaUXbXq7KPbeGUgnHOvA12VaRv6b83vxMxFAJsQSGBi/0N5oqiDLnEZ8aKO0f7m0 jdsGdsMErIlV16oF8ktllZZEU9COOhaP3EyPWPRpedVie3rjgJJoUdCHN+not9x/s4OF xKGt3Mq2D2bpvH0YD6ehcL0ochXkaW8IGrz+fKS7p6f4OPJjJ/T1Eryx/SddtfHu5ODv edyE6JXJmy0t29iIzLyj7NklCcwn+d3QSSA/VwpqtS1tOgjJCb4nXyEceytQlmkB+/dD W8agc76jHf3xOzJJst2Co8deo+MJGtg4aVYawSGw803qFDAs5pmhl6ZcvMOahx6LeMfs kldA== 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 x1-v6si2354207plv.520.2018.05.11.00.06.29; Fri, 11 May 2018 00:06:44 -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 S1752372AbeEKHGM convert rfc822-to-8bit (ORCPT + 99 others); Fri, 11 May 2018 03:06:12 -0400 Received: from smtp2.goneo.de ([85.220.129.33]:35480 "EHLO smtp2.goneo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751406AbeEKHGL (ORCPT ); Fri, 11 May 2018 03:06:11 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.goneo.de (Postfix) with ESMTP id 3D9A523F372; Fri, 11 May 2018 09:06:09 +0200 (CEST) X-Virus-Scanned: by goneo X-Spam-Flag: NO X-Spam-Score: -2.779 X-Spam-Level: X-Spam-Status: No, score=-2.779 tagged_above=-999 tests=[ALL_TRUSTED=-1, AWL=0.121, BAYES_00=-1.9] autolearn=ham Received: from smtp2.goneo.de ([127.0.0.1]) by localhost (smtp2.goneo.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id roK1In6Sm1lA; Fri, 11 May 2018 09:06:08 +0200 (CEST) Received: from [192.168.1.112] (dyndsl-091-248-242-098.ewe-ip-backbone.de [91.248.242.98]) by smtp2.goneo.de (Postfix) with ESMTPSA id E87BC23F000; Fri, 11 May 2018 09:06:07 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings From: Markus Heiser In-Reply-To: <20180510134249.64445281@vento.lan> Date: Fri, 11 May 2018 09:06:06 +0200 Cc: Jonathan Corbet , Christoph Hellwig , Linux Doc Mailing List , Mauro Carvalho Chehab , LKML , Ingo Molnar Content-Transfer-Encoding: 8BIT Message-Id: <6C65056C-8A0D-4E0A-9A49-07F10C31955E@darmarit.de> References: <6b9b3184cbfabab1ad89c974ddf1c61631e8f1bf.1525684985.git.mchehab+samsung@kernel.org> <20180510083838.GA21846@infradead.org> <20180510063805.1859b1aa@vento.lan> <20180510073012.5902088e@lwn.net> <20180510112113.4db65764@vento.lan> <20180510093846.184f6de0@lwn.net> <20180510134249.64445281@vento.lan> To: Peter Zijlstra , Mauro Carvalho Chehab X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 10.05.2018 um 18:42 schrieb Mauro Carvalho Chehab : > > Em Thu, 10 May 2018 09:38:46 -0600 > Jonathan Corbet escreveu: > >> On Thu, 10 May 2018 11:21:13 -0300 >> Mauro Carvalho Chehab wrote: >> >>> The problem with a hint-based mechanism is that it will generate >>> false hints. If added, we may end by needing to add extra tags to >>> disable the hints mechanism where it gets wrong, or to periodically >>> do code changes at kernel-doc comments in order to make the hints >>> logic happy. >>> >>> So, IMO, we should provide non-hints based mechanism, like forcing the >>> string that prepends the colon to have a keyword that will make it to >>> parse the block as literal, where expressions like: >>> >>> See the code-block foo: >>> See the following code example: >>> See the following flow diagram: >>> See the following artwork: >>> >>> Is the best alternative to avoid "::", as on the enclosed patch. >> >> But this, too, is a hint-based mechanism. Thanks for the patches, I'll >> keep them around, but I would like an opportunity to try to do better >> before applying them. I fear that using magic words in this way will >> lead to a constant stream of surprises, and I'd like to avoid that if >> possible... > > Yes, it is still hint-based. A careful selection of the "magic spell > words/phrases" would minimize the risks of false positives, but it > could still lead into some unwanted surprises. > > IMO, "::" (or some other character combination that is not used > elsewhere) is still the safest option. Right, let's just stay with reST: http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html We already have some special kernel-doc additions e.g. for highlighting, cross referencing and "DOC:": https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#how-to-format-kernel-doc-comments But we should not break with reST fundamentals. There are other plain text markups on the market, I would remember Markdown as one. They all come with markup rules (syntax), to make text parseable. Mauro brought the example with lists and colons. In ReST, the "::" introduce an indented literal block, which can be used for code block examples or a small ASCII art. FWIW: at docutils there is also a (slow ongoing) discussion about reST syntax alternatives http://docutils.sourceforge.net/docs/dev/rst/alternatives.html may the syntax discussion is better placed there? -- Markus --