Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3163030pxb; Sat, 26 Mar 2022 12:25:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdT7U5tT1I5i7Y//EPACntpz6Gj/3QYW5ugxB+tGotVy1CymTxbwCZpM7HhwWV94QXAa1Q X-Received: by 2002:a17:90a:628b:b0:1c6:a410:d73f with SMTP id d11-20020a17090a628b00b001c6a410d73fmr32657417pjj.96.1648322702694; Sat, 26 Mar 2022 12:25:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648322702; cv=none; d=google.com; s=arc-20160816; b=f83+WM+D37rsL0y4mSB+qDHj4xm5UP8yPosawDrWvyDXmIYPfoEK3gxwFysb/ZqCEw Zkl0ncOt34W8q+GlJct3cnp5LT8GdMgvdpIqiBlPcwMBN3I3Qp5gxRyQ//dOHWCqqu59 rOOhhThm8EXCbuVppaf+rYDd6fG0aztzVKwUqeYI9ZTobnyJAfKqkwlrFr95XXYHxmGB t09oYtghrfBRwBWNRixbBYTagCaioHVEhVNroPiB+Gb33gbtEqBOkdoWKn3Tx4aMXlDT mnNemv+gCBmKTNmi/tgeSAsb+d3dYUDED+JATZp1sV+4slN4wCADHEudTGQtT311Q7HH us1w== 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=7fIwQzH9loToCgSgqouyZpGufWejeVASwjmnWLCmjQQ=; b=uh6hLqefE/5x9VrEOQ9MqT8n/tYHWtDAR60ILODY7kmI99VY1zMbk1R3SjeW6V6AP6 q1ZcPmdCiqSpjm/BSNQTU1Al2dA131QTt54GQ7iMg4Y2rB/22Lj3L4B7nnDyq+OsrqOH UvdVAr2A1yyA6ObIXSxFAPPMBg2l18ojALEQGR4lvoZf8WrEIPqMSFKh3lfvD1X9YxN3 ekNmdzFzazxzLThpO48913BlpPCnWzukNC4/MDvJh8oMCQhYNqXzRk9pg8vHb9MoMVAn x55kD4K8QBP8pknJmudcphpQfnrWs0eLOnZpgMcngU7Qb24ZQY4Uy9Il6OUD6NPaJs3T S7Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XLn0aW4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k207-20020a6284d8000000b004fa3e2a9b13si6532667pfd.378.2022.03.26.12.24.49; Sat, 26 Mar 2022 12:25:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XLn0aW4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232600AbiCZK30 (ORCPT + 99 others); Sat, 26 Mar 2022 06:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbiCZK3F (ORCPT ); Sat, 26 Mar 2022 06:29:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 636994F479; Sat, 26 Mar 2022 03:27:29 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C274F60BA5; Sat, 26 Mar 2022 10:27:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96547C3410F; Sat, 26 Mar 2022 10:27:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648290447; bh=4xYDm8jiOGCxidWbMBbnubCB80y407Lrcoc3O9x9bTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XLn0aW4S35JWxm7QulfteOw5UXPdQW6wwkoUyPVUqB0Cv27GOnTzBSBmpXaZWnnq3 7Fw7rQn1+lmoe4lYFeMUMkHiV3S/mTandfR9G40O7bsxTyAZ8uoYHDYcindFUdugIZ VXFhs+FLd4BMvAV9MzM2s8uCur22o0bQhAvi4+9iFVPegS9JtJnJzwQlZckSnC8Lk+ wc7y5UjKyftmuvIisK5608iy1b2CJpmd6hsUI/G2nBzAWTnZnZWvltZpJF8r/MtsEw IhyChcKEFQFEAbh5j7lUZtgSdhizvApDwhRl9Vvqg7PMg/HoSDlcnXrizydSnfM1Ty +8Te195rzKcrQ== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nY3dl-00Co0c-4x; Sat, 26 Mar 2022 11:27:25 +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 v3 3/6] docs: kernel_abi.py: add sphinx build dependencies Date: Sat, 26 Mar 2022 11:27:21 +0100 Message-Id: <10bc3d3bc74f514a539cd3b48b9d287d2b6f99e2.1648290305.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=-7.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 v3 0/6] at: https://lore.kernel.org/all/cover.1648290305.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