Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2189949pxb; Fri, 25 Mar 2022 12:42:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4ZFHe45CJraJdGxjOix4nMLTvL3WCXKH0W9teULcczXyI1b2YSVv4xwXLOOwFjKCHetWR X-Received: by 2002:a17:90b:4c0f:b0:1c7:d2de:5aec with SMTP id na15-20020a17090b4c0f00b001c7d2de5aecmr9202280pjb.110.1648237330710; Fri, 25 Mar 2022 12:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648237330; cv=none; d=google.com; s=arc-20160816; b=ELGh9MThboKXevctgHbgEKawfyivpYq4AZo32MUrMhHBNPu0kNSKLRfk5xTgr9sPBF hr0/6cneJiRxkbPxShb7MxYS+xGplw+3y3GqlMx1xiqamUS5Cx7MjRcoCdjy9MDXTMlv 45scvcCuBB+Xq4m9HOOmAUoViLwIfDsflh6p8P5arnYkFL5xULBbvs3Ahh7UVrFmF1qA 8tVTFUc0f7OkP/Y0Ku3OZYUNXFjfVKmqu5iA57zjKvu9QFaKKYpEt21CSKCPCeoSmOak XCUcfoQ6HQd/BSynCzTLx+FWB/TpwwBVce0Oah99Xs66Vb28AQ5uqrBH6Z5FGlwsmvR8 nHtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bhn9/WJDk35zgbVB8g0jdqoBvcyEkIrnUW36NrXeiQM=; b=zKhT4YHA9HMByva49CTl0wQt5MeRKey22vIUxFjM41V+4qV9k+501gwgsT2eZ/qziS Ufkwp7UEd52wUdh0YKJq9t8cNHSVVw/ds9GpdmpyH0QMDMaHvGAVmpyfLMi1IMadMF+/ M3WBYm6lmDFzX7I3MOV4tkRZhw/DoRa8YYzkIyUgnzHlCzydlbkkheDecGaRRLaRLZV6 mFcGvjtkakQw89g6+7r6HIH/snm2kF0TfMcE03A3QYcHMLYQNxZ/mL0CUtS5F39FyMmt Oo71oueRBKFTE8ylfz7V+znf0ezniiwIGMLzLV02M5m1Npr/mxcRCWOFowLRGpBh4XES gNdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=roKqEQZa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k10-20020a637b4a000000b003816043f0ffsi2900644pgn.756.2022.03.25.12.42.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:42:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=roKqEQZa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 955BD28D2A4; Fri, 25 Mar 2022 11:32:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359289AbiCYOHI (ORCPT + 99 others); Fri, 25 Mar 2022 10:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359278AbiCYOGz (ORCPT ); Fri, 25 Mar 2022 10:06:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4B45D8F48; Fri, 25 Mar 2022 07:05:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8AE6BB82892; Fri, 25 Mar 2022 14:05:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B137C340F3; Fri, 25 Mar 2022 14:05:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648217118; bh=2D/dTzYT0VeIm/mTkB4UUkqS1y1RpVZCZTgMnIjY/m8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=roKqEQZa30ZCjFSe95w3/zNnmw+s1QUTJp2189zfM8KvKmzCoxEQ41BdGgjrlHBFG BKZsA8b09FAaMAaBCLp6b0JrOZ2ZDwFh3sKPdCKRKr6gSgcIF00hbYgtIh2ue+dLHR jDvNi1XtAFP/G+jEo7NxfBCyxcXuM927rA+66C2Zy6OPHQ2XX/enFcavFZAOMt7Pyv tCX9gEKHxjB+L63m6fyJ2RhvU6ZrrWRFwD6WAS0DUasmGXjySRzxWzGi6CBKJUXMEB QfwOVFNtIYmxmeAMKoeCcgt7JwRiAF5mIO3GpVSbI1I339BuYOU3SyD2zSv+MpHCjm E/HHdXT5jlQbw== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nXkZ1-00Axyw-PW; Fri, 25 Mar 2022 15:05:15 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Hans de Goede" , "Stephen Rothwell" , Randy Dunlap , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/4] docs: kernel_abi.py: add sphinx build dependencies Date: Fri, 25 Mar 2022 15:05:12 +0100 Message-Id: <2c53fbfe3c02a47a5eae4beb298a6db0c95be54a.1648216561.git.mchehab@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ensure that Sphinx-build will handle the files parsed by get_abi.pl as dependencies. This way, if they are touched, the ABI output will be regenerated. Reported-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v2 0/4] at: https://lore.kernel.org/all/cover.1648216561.git.mchehab@kernel.org/ Documentation/sphinx/kernel_abi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py index 4392b3cb4020..efab9b14a9f5 100644 --- a/Documentation/sphinx/kernel_abi.py +++ b/Documentation/sphinx/kernel_abi.py @@ -128,6 +128,7 @@ class KernelCmd(Directive): return out def nestedParse(self, lines, fname): + env = self.state.document.settings.env content = ViewList() node = nodes.section() @@ -154,6 +155,9 @@ class KernelCmd(Directive): self.do_parse(content, node) content = ViewList() + # Add the file to Sphinx build dependencies + env.note_dependency(os.path.abspath(f)) + f = new_f # sphinx counts lines from 0 -- 2.35.1