Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2195439pxb; Fri, 25 Mar 2022 12:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2u0NFirbI9sJFsLPmg0Z4NDYltQr1fCccfThbjH7at/d3FNtaicQTxa8cbr0y0Uyno//k X-Received: by 2002:a05:6a00:b8e:b0:4fa:de88:9fc7 with SMTP id g14-20020a056a000b8e00b004fade889fc7mr11656436pfj.56.1648237757744; Fri, 25 Mar 2022 12:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648237757; cv=none; d=google.com; s=arc-20160816; b=MiVTJ8eZH11FFOwKbNsCO53SnrA3LuyfRi4nCa04K1ph1BP1Uk+hMp4fH//VtugipZ E+3EGuqgsZZ7PQG/lVCnE+/aYJzfVMZqXQQoO6uhNt6A1schFYAu8Qz98vqMlaj8zOlg uk24nrHg8vHW4jvByFz+/uJLNrMkK07EPPW0D86bzpPLCD8MR5LVY4RQMs3ulNF4m53k QX5Ny4ctQ7Hj3K4Nbq/REX0Z+UizoalDI0iE6NbNlWT1EzU4kh2rEY/w9RUjJFycIu5s WDhms2HMMLaFK/izeWBL4zQdOyx4QBuPw2iNYiDdrbOa8/78Be03XMPUvjHXIui/r+Tx Zelg== 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=YQ/JApu+Z+kbS8O+DTiZkKixNX1S7/TQQAlWECSLalo=; b=PAE/ICh7mBq25USc4mimHS71OvNKnCx2LkkfNr0f1RlDA2E6iiJgtAfQQaRIGf4qln rbItTul424EwENFDsfC9kMDzr4iek7e5tlXE8SFY8oLZ5Z2jSxQgBRrr3jmybk9GwXOr SW6FHsJsDYrod+Pw2FW64gFSqiG9n02Qu2BEO9MyheHgF6p4R7zB3+60O9Mj5JelJDmi zZT0iz6mRtNDgVuX901e3ZRmRtjy97fyiv/e6f6mqP8dFR+s0ctxd0z8Hi6OkZSVG8qv PaQHlksQhr5xiW9bWO9qQcmohm2pSCmZngubhchQIzs12T2mzHam5um5Rf4ABAyohzRo /aXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MpSJvzwF; 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 nn17-20020a17090b38d100b001bd14e0303csi3572360pjb.20.2022.03.25.12.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:49:17 -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=MpSJvzwF; 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 A68B01945C8; Fri, 25 Mar 2022 11:38:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345687AbiCYHZF (ORCPT + 99 others); Fri, 25 Mar 2022 03:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345649AbiCYHZC (ORCPT ); Fri, 25 Mar 2022 03:25:02 -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 77BA22A71B; Fri, 25 Mar 2022 00:23:27 -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 744D8B827B7; Fri, 25 Mar 2022 07:23:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26084C340FC; Fri, 25 Mar 2022 07:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648193005; bh=npnMOXqhqiiyY8gzvGPB6tzBdGADkYcbd6BnNfDswhQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MpSJvzwFs/HnOLwqNHoFzG6zl/7hhZmVwrrV0z2V8SdolzdrMmHU2ZAFE2Tq+FMZa /u4tAzv0bRpGPk0K1cnJ5tBj0MUs5jcyW2msIo8W5rbGIkoa1FjYiBpJ7XnxyV1zRN ElxdVZsBy46mjhGeAkMjs/85WFatACGE1ah6aL8oSUabtENISFwmPnLBiiDurCxj8g w6mTkpKiKVKlncj99DyC/WE94tukW+5ijcBElhESeXKgDpaUDnDyRcPFeze1vlgLLN 1GvRr8pJzXNEXzuFxZo7pXHhM30FKspmB517610AZgeFqIwpUVZvncxb011+RQ4JAj Lz/OuQR1eJd2w== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nXeI6-00AYYW-Gi; Fri, 25 Mar 2022 08:23:22 +0100 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , "David E. Box" , "Hans de Goede" , "Jonathan Corbet" , "Linux Kernel Mailing List" , "Linux Next Mailing List" , "Mark Gross" , "Stephen Rothwell" , Randy Dunlap Subject: [PATCH] docs: kernel_abi.py: add sphinx build dependencies Date: Fri, 25 Mar 2022 08:23:18 +0100 Message-Id: <5d7ea5b7cfbd9300fc6cc75900b1d8839abd4ba9.1648192982.git.mchehab@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220325071822.42917fcc@coco.lan> References: <20220325071822.42917fcc@coco.lan> 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 --- 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