Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2181322ybi; Thu, 20 Jun 2019 10:24:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0CHubinrsTzjxjIo5s2evEFuMDNq7xpCUk2oPZugRtUqkX5Lf3IYuMTnAXAL4KKelTOyV X-Received: by 2002:a63:214a:: with SMTP id s10mr13753434pgm.13.1561051447848; Thu, 20 Jun 2019 10:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561051447; cv=none; d=google.com; s=arc-20160816; b=OH2zjHDogJTmxwenYhlPe6dsQnCuVThQd/F8B1lRuWuPpfmgBeTPKSj1ziTaNY491F FUNOeNhVSuS0xXBX88R+HF3EGkzmaqlX/2jVbNbGEoZR6qwTAjYf6h+gVzB6selPB7lG +f3YJt0n0zLKPYBM6tTjukp5TQl1KCaiJ5y8TvIkQwh2xZqe1Gm0JZpaTcTvuxjxQSk4 zoJfYvmb9piafBPeUCtFhUONrxtHn07lBVirj7I0Xv8s9FoX+TEdxV49olkr0j0YuD0u SFFYd56Ork6Nv6AmyOW+b2HnoU/5I4sli2DQ0pt11G55GSFcoeKv5J2/VWIc+eWvN3FH v0Cg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=PtklCVYV8bfZXS0SZvAiOjrQ2yJ2ynrocAeQpsRsGX4=; b=EwJp7jRCaPjbxuIBWG+b5jp1WMoIyIWGq4hicNAo3REc9L+ba/CtpU17Ef1QqmXzu8 fDLKCS9knAa9wG2cz6VmO+vLiDA+KWjGmoZe29ElCze5fO2RuOsjg0Qx7I73XDr9r+5W uDlfa/F4RCdU3noIOWrzaOnKoLoJtYi5G3iVdOspCQxJi/GmWnuYIpO2mcZF/NHOjubb jJzrzPwIpDtows5xraFZN4PJepu5cow1yoWrG+Oz7ajFVK6M6AaWW73g3iAXUW8wn08a MRnq0Lt1SC7Drs2TSCy9KLSmSOc498qdPnkKzs/KDDn8X1qkISppT+HqBS7egf4lAxn5 FLTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qvy1Dnsr; 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 m143si78340pfd.224.2019.06.20.10.23.53; Thu, 20 Jun 2019 10:24:07 -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=qvy1Dnsr; 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 S1732277AbfFTRXe (ORCPT + 99 others); Thu, 20 Jun 2019 13:23:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52614 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732179AbfFTRXU (ORCPT ); Thu, 20 Jun 2019 13:23:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PtklCVYV8bfZXS0SZvAiOjrQ2yJ2ynrocAeQpsRsGX4=; b=qvy1DnsrQMDY+x7l2EDUa1Zzt xH+CIfz798eRgQY5Dwqv5+1Vljg6V97bxL+2kW12XBVpiZSNBUkF45q0S2EqcBAUzEYrQb9A292SS SHpspALsABTf0JfPK/Mf2E+bfeFaeYeozApspZuFz6vC/+i0ERMr4YFxxVWooJAWU93T91kio6B+v keFWRxSDm71JYxBAkDUYF++SlVECMUqfEAEt5UJkCjZg03fOakEUTxDjdL1YVsGxeOjCVE3h2ykEa BAWp9RqNtku+W1LN2uJGbd40rpcNyHl93x3HxfeDWK3azPlN5/jMVrnxivRmyuaAmWvxYnS6c0j00 cmgZjQ9Vw==; Received: from [177.97.20.138] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1he0mM-0008Rr-CV; Thu, 20 Jun 2019 17:23:18 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1he0mJ-0000Cc-GA; Thu, 20 Jun 2019 14:23:15 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck Subject: [PATCH v2 00/22] Add ABI and features docs to the Kernel documentation Date: Thu, 20 Jun 2019 14:22:52 -0300 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a rebased version of the scripts with parse Documentation/ABI and Documentation/feature files and produce a ReST output. Those scripts are added to the Kernel building system, in order to output their contents inside the Kernel documentation. Please notice that, as discussed, I added support at get_abi.pl to handle ABI files as if they're compatible with ReST. Right now, this feature can't be enabled for normal builds, as it will cause Sphinx crashes. After getting the offending ABI files fixed, a single line change will be enough to make it default. a version "0" was sent back on 2017. v1: - rebased version of ABI scripts requested during KS/2019 discussions, with some additional changes for it to parse newer ABI files; v2: - Some additional fixes and improvements to get_abi.pl script; - get_abi.pl script now optionally suports parsing ABI files with uses ReST format (by default, this is disabled); - Added scripts/get_feat.pl to parse Documentation/features; - Added SPDX headers. Mauro Carvalho Chehab (22): ABI: sysfs-bus-pci-devices-aer_stats uses an invalid tag ABI: Fix KernelVersion tags scripts: add an script to parse the ABI files scripts/get_abi.pl: parse files with text at beginning scripts/get_abi.pl: avoid use literal blocks when not needed scripts/get_abi.pl: split label naming from xref logic scripts/get_abi.pl: add support for searching for ABI symbols scripts/get_abi.pl: represent what in tables scripts/get_abi.pl: fix parse issues with some files scripts/get_abi.pl: avoid creating duplicate names scripts/get_abi.pl: add a handler for invalid "where" tag scripts/get_abi.pl: add a validate command doc-rst: add ABI documentation to the admin-guide book docs: sphinx/kernel_abi.py: fix UTF-8 support sphinx/kernel_abi.py: make it compatible with Sphinx 1.7+ docs: Kconfig/Makefile: add a check for broken ABI files docs: kernel_abi.py: Update copyrights doc: ABI scripts: add a SPDX header file scripts: add a script to handle Documentation/features docs: admin-guide, x86: add a features list scripts/get_feat.pl: handle ".." special case scripts/get_abi.pl: change script to allow parsing in ReST mode Documentation/ABI/testing/pstore | 2 +- .../sysfs-bus-event_source-devices-format | 2 +- .../ABI/testing/sysfs-bus-i2c-devices-hm6352 | 6 +- .../testing/sysfs-bus-pci-devices-aer_stats | 24 +- .../ABI/testing/sysfs-bus-pci-devices-cciss | 22 +- .../testing/sysfs-bus-usb-devices-usbsevseg | 10 +- .../ABI/testing/sysfs-driver-altera-cvp | 2 +- Documentation/ABI/testing/sysfs-driver-ppi | 2 +- Documentation/ABI/testing/sysfs-driver-st | 2 +- Documentation/ABI/testing/sysfs-driver-wacom | 2 +- Documentation/Kconfig | 11 + Documentation/Makefile | 5 + Documentation/admin-guide/abi-obsolete.rst | 10 + Documentation/admin-guide/abi-removed.rst | 4 + Documentation/admin-guide/abi-stable.rst | 13 + Documentation/admin-guide/abi-testing.rst | 19 + Documentation/admin-guide/abi.rst | 11 + Documentation/admin-guide/features.rst | 3 + Documentation/admin-guide/index.rst | 2 + Documentation/conf.py | 2 +- Documentation/sphinx/kernel_abi.py | 166 ++++++ Documentation/sphinx/kernel_feat.py | 169 ++++++ Documentation/x86/features.rst | 3 + Documentation/x86/index.rst | 1 + lib/Kconfig.debug | 2 + scripts/get_abi.pl | 498 ++++++++++++++++++ scripts/get_feat.pl | 474 +++++++++++++++++ 27 files changed, 1429 insertions(+), 38 deletions(-) create mode 100644 Documentation/Kconfig create mode 100644 Documentation/admin-guide/abi-obsolete.rst create mode 100644 Documentation/admin-guide/abi-removed.rst create mode 100644 Documentation/admin-guide/abi-stable.rst create mode 100644 Documentation/admin-guide/abi-testing.rst create mode 100644 Documentation/admin-guide/abi.rst create mode 100644 Documentation/admin-guide/features.rst create mode 100644 Documentation/sphinx/kernel_abi.py create mode 100644 Documentation/sphinx/kernel_feat.py create mode 100644 Documentation/x86/features.rst create mode 100755 scripts/get_abi.pl create mode 100755 scripts/get_feat.pl -- 2.21.0