Received: by 10.192.165.148 with SMTP id m20csp1413965imm; Thu, 10 May 2018 10:16:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZok5qSWf87zS/bzqEMkulUNPVKM01o7ngUMo5xJZb5tKfh4SaTQfTbvHDltk53TaDgOcp5b X-Received: by 2002:a17:902:d891:: with SMTP id b17-v6mr2207344plz.0.1525972601445; Thu, 10 May 2018 10:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525972601; cv=none; d=google.com; s=arc-20160816; b=jcIgyiAJ+bSmLfa2zzGz8nH3id1Wh1iXZTdRCIHiti+5B8VH5ONsCe5gMNOVWMDDm4 jkJ68z1uXBmYiwt1tWi9mznbczz3jUKXdK6OW7B3pQ1fbsuVvhWiyXVjj41AiHfLW3gL 4UH5Dyk8nna2D4B7L/1dTCErWpi7l0tvpvOLVmU5CnEBYkPBcw9RV9mw8OT81DtoJOIg OGaI0VhrarnlH28plYaW55sragvpjCZqS+Gu6lpehc+Vu0inuTFDoewiBTiB1/44HVNO OaiqE5b7UHq3fRHOBxQkpEed0rx+3uHP/ljjb03VGzXcyG6C1AU4DcChca6sYTYPWhGF +64A== 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:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=9zhUJeHf0m6kN0PmrId4KbbBhwT0f07+Dj8UYQbdjTU=; b=GSBkowj+xF8PjEhQSul3u8sTUcdwiFsOur/chQUKazWE4fu7zzwpt/DFWlXwpIiwIj 7/RFVfRjc43kyHIuo667wLHywEJGijU15Rv1xoMYpdNbUPGFtxxrHGERYeAzjnXfj0o+ JvbQamjZE5f29wx/K0XFmSjXaR+ZOjyip+XZV7OLC0yVedgL6gZHq7i1GsigySLKMX59 Bkeo9u+nVxPgyzkf+0oznYPKhgA8gQ9ICc933dZCZP2gUSfXqSGelozcy6jMFP9uoEE1 FazUqszVZpW0JswskPFELK62JC179dquZFf4IPWdptgoRqhuGXU0uvGw9SbSSifn1mr6 wGxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hrr5P+Zw; 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 d17-v6si1095619pll.590.2018.05.10.10.16.27; Thu, 10 May 2018 10:16:41 -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=hrr5P+Zw; 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 S966654AbeEJRPA (ORCPT + 99 others); Thu, 10 May 2018 13:15:00 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:37402 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966492AbeEJRO4 (ORCPT ); Thu, 10 May 2018 13:14:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To: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=9zhUJeHf0m6kN0PmrId4KbbBhwT0f07+Dj8UYQbdjTU=; b=hrr5P+Zw/6a8oFYkozke0sgdj VAGntiW0Gjc/30oq9YMBfebPsYYrXeV1lL0OVVGPXrzFELPjkO8+N49oag0rfR+knSorIWc6T1c4I 9Itr7unVoP24d2EI2auSZhF7SD9xHm4X/6ZiTWW1cwwztIipFk3gODq0UdnJqiGJ4aXqnsrt9Dm6v W/l1J8zqCYQU1ifcL1g3dwvowB3tIBQz18vkJVcZYWN2pUhQZ3IDLXHbVZfZagKDXYrNl3ctLTj0/ dyt3s/r4qEw/PxgFoX3anuUmHFQ8VnG2YZc1PgU3YO0oDMiRnzFcA/RCGGlv8RrPU2x3pGKcdqjUV 8qrdGI3cQ==; Received: from 177.41.96.165.dynamic.adsl.gvt.net.br ([177.41.96.165] helo=vento.lan) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGp9b-0003gq-Eq; Thu, 10 May 2018 17:14:55 +0000 Date: Thu, 10 May 2018 14:14:51 -0300 From: Mauro Carvalho Chehab To: Jonathan Corbet Cc: Christoph Hellwig , Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra Subject: Re: [PATCH 13/18] wait: wait.h: Get rid of a kernel-doc/Sphinx warnings Message-ID: <20180510141451.31cb030e@vento.lan> In-Reply-To: <20180510134249.64445281@vento.lan> 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> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 10 May 2018 13:42:58 -0300 Mauro Carvalho Chehab escreveu: > 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. Btw, running this: $ git grep -A2 "\*\s.*following.*(code|example|artwork|flow|diagram).*:$" currently doesn't have a single match. If we force a two word combination, and an ending with ":" should be enough to not having too much false positives. Regards, Mauro