Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp834166pxf; Thu, 25 Mar 2021 15:18:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwnVDxSNxB00bgQ+ryrrSevnA5GKB2dZcribaCtP//ZG5+LmnoXJFXWUHi42b0mCkqlWHV X-Received: by 2002:a17:907:3f26:: with SMTP id hq38mr12027458ejc.374.1616710731071; Thu, 25 Mar 2021 15:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616710731; cv=none; d=google.com; s=arc-20160816; b=05r9Rle0OK0yddPB/H9B0kKaUptkGeeytnLmP8stPbMqHt6/cKEqlK7hsfFsNZKZ6l JVlwCtYIP7cUMK7ftgTERY0Wq9gehc9T3mzhlO6a1aZ2r6Gw8HsuxK+wGFfG6kV4+3nS fnfhBv7H4KL3PO1PXP3AOZ9ls9mN4KyE6FMpISNPO1tcKL9U3iciRZmhUj24iuDxyhBu QHRw4yYF6PO4oqCTVlZj4hEOVg8UhRLzow4jfmvqDtJGlDdnfRKKpIOPD7o4UiUIjh0n 5VfQkkBbCoNwtIgpD3Owos6AZaTY5nG787N+JJY937P1FYU3wBXXu019mnH6oFbJu4tJ Hgqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NVCefAzy77SIiZ982ecvAabze2914IZvTimkJPzBisY=; b=gmzYbqBzc2dza37cCIG0Qihnete5oPtNev+ujfF8Ee2TQAaSNnyNzw9jqYRt/qBPqm CWkDt/KNmZONFfAtcZT8LCkP/etTDpisTpoH0dgHQsXMJDkC3WeOrLkX0fs1bDJ9xknr IFW+Pg9MV6tmJfMGXLTq1XcAYBIh1BYdvIHTCV2vTi7Wa3bWYH3Ea8DB5sAJWN8BXWGd byg0tRVMy8Q7+I1iNLzHsDWWr57GYeZu7CYNgt+WDpaADHzVlpplk7Vvk15U504GNOlP OxqxcZz+FA9Ry8s4RjJG8EDw15G2yR/M9jEKfma0yyp5uuaPgeZLugafUJswmMlD10iQ wTmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TfxwZjnF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si5170668edd.528.2021.03.25.15.18.28; Thu, 25 Mar 2021 15:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=TfxwZjnF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbhCYWPE (ORCPT + 99 others); Thu, 25 Mar 2021 18:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbhCYWOw (ORCPT ); Thu, 25 Mar 2021 18:14:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15E35C06174A; Thu, 25 Mar 2021 15:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=NVCefAzy77SIiZ982ecvAabze2914IZvTimkJPzBisY=; b=TfxwZjnFgqGZ5NQ+eKBh0v7KU+ rqNxyVhfuYmNk7nqg49MuhL7N0divk7vJxDTz+/8ySCo9BnvrcZUXLDmGH7hPLLd/PGY1A6CyMXpf lhKRgxZqoK0InTMHIJDdQUPKEBhw3Gz/DjtPFDhH3Jo6aPOmpu6Sj8KVnLQusA457Ordfjt8hMet/ U+wYfoP3yEltBc4womhWfhS9iaBZHKGP5633Ku+1RtusLbdZM3T/STFT3EH7Rju7wLZLw4pWHQhQA IaPWvOW21uGBpAg/tsN3GYuLtg3L7+4rP8ApqxwBdQLG33GBoDCP8pwFxtE4RFsd7jhBKJpAEi7iD v6LLnFcw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lPYFR-00DtKj-Au; Thu, 25 Mar 2021 22:14:41 +0000 Date: Thu, 25 Mar 2021 22:14:37 +0000 From: Matthew Wilcox To: Jonathan Corbet Cc: Mauro Carvalho Chehab , Linux Doc Mailing List , Rob Herring , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel-doc: better handle '::' sequences Message-ID: <20210325221437.GA1719932@casper.infradead.org> References: <20210325184615.08526aed@coco.lan> <2cf44cf1fa42588632735d4fbc8e84304bdc235f.1616696051.git.mchehab+huawei@kernel.org> <87tuozyslu.fsf@meer.lwn.net> <20210325191435.GZ1719932@casper.infradead.org> <87a6qrx7wf.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a6qrx7wf.fsf@meer.lwn.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 03:04:00PM -0600, Jonathan Corbet wrote: > Matthew Wilcox writes: > > Well ... > > > > If somebody wants to write a new tool (*) that extracts documentation > > written in a different format, I think that could be done. Because the > > hard part of writing documentation is getting the person who knows the > > code to get everything that's in their brain into words, not really > > the formatting. > > > > If somebody did want to write such a tool, I think we'd also want a > > tool that turns the existing kernel-doc into the new format, because > > maintaining two function-doc formats would be awful. > > Yeah, the thing is that, as long as we're documenting code with > something other than RST, we *do* have two formats, and they interact > with each other in surprising and unwelcome ways. > > I don't really see a fix, though. Even if we come up with the Perfect > New Formatâ„¢, I don't want to be the one trying to push through the > patches changing tens of thousands of kerneldoc comments over... I can't argue with either of your points. The rust code is alredy coming though ... rust/kernel/buffer.rs:/// A pre-allocated buffer that implements [`core::fmt::Write`]. so now we have three formats. Markdown and RST are _very_ similar, but not identical [1]. Oh, and even better we now have three distinct tools -- kerneldoc, rustdoc and sphinx. Have the rust people reached out to you about integrating the various docs? [1] https://en.wikipedia.org/wiki/Lightweight_markup_language#Comparison_of_lightweight_markup_language_syntax