Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2494745ybi; Mon, 17 Jun 2019 05:56:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzuuFz1tevGJWn1TBF1+ZT1155PF9zGPVDEY0ohCX8eleUG+PGqL5cZjySZU6fy7HvLVuo X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr26414764pjq.142.1560776186289; Mon, 17 Jun 2019 05:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560776186; cv=none; d=google.com; s=arc-20160816; b=g5sogRyXNpZSE1ZNO7ibN1oydoRzaC3b5vy6Fy77DQ6UCTrw/0tHoJaLOOIH1Lj+w9 cSzd/pZqXrsaaLlLcGurpKncHyjshRMk+m5EZFLJcMMn2zBWxauLsKu4ul6KO4BjVJV5 2jWcsZCgIqQTn0QNj/6YKw5Xo0lTsICxtqYvOVcjUIxV425lgjW9us/4SglhmOcO0eRo 1og1d2dWvEONgNfxjphtVHhi8KVRb0FO4d1xvGu8L0DobhBmTXymZA0/MMLXT2917jUx R5s7nxeaLh8rh5BVQUfJyPd806JewklHptTeSLmDqE+0NilGv7/OCLaA6N83po8H0lPF UhVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=INiIEz7kc+eLPiovds34DCVu32pK/MCu4wBGtyf6gUk=; b=blQyW9bjIQ/HcUbfEQmCf5Fpyv/E1/ZV6N78H8pj72e1uvcv2uGx2hNCsjYDG7eHkd qTCMJnnxVV5cn//FRETOPfzti+40ciHOsKwyna4sbm0g9wtB9QywGgPCp4yQgyRIBQxi GtwLApzO4YR1EMDZcEU5vjzL6ssbOYuGQ9PYr305uUiZolsYIwiNzbr+UDwt8gEfVBz/ hZTJwHUg4ApMoYl97/T4mw5o13PvpFkMSp8Nv556HmOtljoSqL2iwVswqKIlkaZ0Cvq6 AV+SZV9Ur8HoJoooNxjPRF6TpYm+4vXEl9GrHeGN25+ufEDRCG+e9MoqxKU+byUVBylP I3+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y+V2FTna; 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 l10si10706500pgk.276.2019.06.17.05.56.11; Mon, 17 Jun 2019 05:56:26 -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=pass header.i=@kernel.org header.s=default header.b=Y+V2FTna; 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 S1726708AbfFQMym (ORCPT + 99 others); Mon, 17 Jun 2019 08:54:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:58874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfFQMyl (ORCPT ); Mon, 17 Jun 2019 08:54:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 79B73204EC; Mon, 17 Jun 2019 12:54:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560776081; bh=vjYiSvVQdR3JA3dPjhZJabq2wvGGMHTWiZ5C19FCbeM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y+V2FTnaE9McfD6PC9Ha2Yrarg+z2tNKy8h0c+cp6hWDrLLNkYYjL7AyUofCHeeH+ TMYJCAnup3M0xU7xcW++aQQw1qGKJTpNvCQ6KUgOFat/c2aT7l+JWbBW/i/H/QWvqV zqDLdzUd73msDhX6AOKD5WL+RnnKBeOrZzfUfNEo= Date: Mon, 17 Jun 2019 14:54:38 +0200 From: Greg Kroah-Hartman To: Jani Nikula Cc: Mauro Carvalho Chehab , Linux Doc Mailing List , Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH 12/14] doc-rst: add ABI documentation to the admin-guide book Message-ID: <20190617125438.GA18554@kroah.com> References: <9da2a7f6ff57d9d53dcbb964eb310f7956522870.1560477540.git.mchehab+samsung@kernel.org> <87o930uvur.fsf@intel.com> <20190614140603.GB7234@kroah.com> <20190614122755.1c7b4898@coco.lan> <874l4ov16m.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874l4ov16m.fsf@intel.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 17, 2019 at 03:36:17PM +0300, Jani Nikula wrote: > On Fri, 14 Jun 2019, Mauro Carvalho Chehab wrote: > > Em Fri, 14 Jun 2019 16:06:03 +0200 > > Greg Kroah-Hartman escreveu: > > > >> On Fri, Jun 14, 2019 at 04:42:20PM +0300, Jani Nikula wrote: > >> > 2) Have the python extension read the ABI files directly, without an > >> > extra pipeline. > >> > >> He who writes the script, get's to dictate the language of the script :) > > The point is, it's an extension to a python based tool, written in perl, > using pipes for communication, and losing any advantages of integrating > with the tool it's extending. > > I doubt you'd want to see system() to be used to subsequently extend the > perl tool. > > I think it's just sad to see the documentation system slowly drift > further away from the ideals we had, and towards the old ways we worked > so hard to fix. What are those ideals? I thought the goal was to be able to write documentation in a as much as a normal text file as possible and have automation turn those files into "pretty" documentation that we can all use. And I think that fits with the way this patch set goes, right? We are not on a quest for purity of scripts to generate the documentation at the expense of having to force hundreds, or thousands, of developers to change their ways, or to force a "flag day" conversion of existing documentation resulting in a huge merge mess. So, we are stuck with the current structure that I totally made up for Documentation/ABI/. Turns out it is almost parsable, as Mauro's tool shows. His tool also validates the existing text, which is great, and has caused fixes for it. If someone wants to write that tool in some other language, like python, wonderful, I have no objection, but as it is, this is a useful tool already, allowing us to validate, and search, existing documentation entries that we have never been able to do before. It also provides an output that can be turned into pretty html/pdf/whatever files by other tools in the pipeline, a totally bonus benefit. So what is going backwards here? Maybe the processing pipeline isn't as nice as you would like, but remember to view this from a normal developer's point of view, not a documentation pipeline developer's point of view please. So, in short, my requirements are: - keep Documentation/ABI/ file formats as close as possible to what we have today, preventing any flag-day issues or merge problems - be able to query and validate Documentation/ABI/ - be able to turn Documentation/ABI into pretty documentation. If you object to the mechanics of the last requirement here, I don't object either, provide something else that works better. But don't throw away the whole thing just because you don't like how things are hooked up here. I'm going to go apply most of the rest of these patches to my driver-core tree, stopping at the "hook it up to the kernel documentation" point. Is that ok? thanks, greg k-h