Received: by 10.223.185.116 with SMTP id b49csp37693wrg; Fri, 2 Mar 2018 13:09:55 -0800 (PST) X-Google-Smtp-Source: AG47ELtKRTYZr/DCkwHvaEMFDi9ud2WgCgbWQrqNt0OklGPT01W5/iY73JXGvJkC68ZL1NVRA5Wu X-Received: by 10.99.124.91 with SMTP id l27mr5459481pgn.298.1520024995400; Fri, 02 Mar 2018 13:09:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520024995; cv=none; d=google.com; s=arc-20160816; b=qbgrQcJTCKnoe9tl3j5zVmQQyFu5CvrkGUItad3NmOmRZDR23As4YjMTagOpnzGa6Z GKPhWAl6EeQ2lfyH42vwfesPqFMUg+iG+YF/X0idpnnnxonA92+oWsSKXX2YtN8REUeN VwpDNo50awESxODk4hjM664qChiNUYKEDr9olxhOfktfxH0yxuo4Dt5H2Iuue5+jxOxj mKKsVzOCTYIyXElKsFnqKHvD/vSjATPyoEFxr7YYHeM3QTDsXbp42A8SAOoprRQwCNoD zatAKkfoHtGaesu65GdtD9FRaReawQE/aogfhCISXjsXClZlIxxX580BUj690ziTyRtu 2ARA== 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:arc-authentication-results; bh=OhYQBM53Krdm4L88RFQjUUPksu6NxoraXJ33HaU3bWI=; b=DJivARCwNgtwLwS5GQVx5fA+gIvON4Q/c1QkMXbM7fM8L4kwqh73JDw/hyBB//VLfn 2Amr4k6c87KX2D57pBlZR8UkBwrcxysU8VNRrxyZ5mvOL6aiV63Nd4NSzmeU3Dus/qI7 +ZenLO7EECQRYqghGm5b7dEBXe+BBch76PJu8SagbRvqOMBB2Sx9wbk9cdF51gBbxZUj Pcdsh56n6QVto2hXhJ9+iuVWtBGQMXToagjBueS7gl2oFYr4Y4AVJitz1ZgiIdyVnMkx rHgNGp/T4bqQbhhjmfSj2ev4J5DwTI4DcqAm3gGiCWf2gVJREs0JLxNNHLR6d0FE4OVi c+dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=T5yQcZL1; 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 p11si5516615pfl.127.2018.03.02.13.09.38; Fri, 02 Mar 2018 13:09:55 -0800 (PST) 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=T5yQcZL1; 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 S1947368AbeCBSkW (ORCPT + 99 others); Fri, 2 Mar 2018 13:40:22 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:41270 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967965AbeCBSkR (ORCPT ); Fri, 2 Mar 2018 13:40:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OhYQBM53Krdm4L88RFQjUUPksu6NxoraXJ33HaU3bWI=; b=T5yQcZL1vqUEFor8epzPODil/ bd3zcalPHV2QrJfS8Xfvu+GBktI6rJGmPDdHRk1GPuGbhEvBEmc/ouolSAZBW1CEJbf2+CwNJHR8S k64OLv4PlYDcymJ/UqGuspZKrLjmRrFCm2+FHDHSUPLn9if1pbyP9jEAwNgMae0vfcPQwZ8M4cJxk aHkUD1nWm2mno2pdKenpdFSpZ8MFrsd1NQLSSZjekMPKvdmOz/RqO0roRGS1Wc0leQnFQ1x2XGjiC uPxsldoCkUGbpTuTDLE0wcjogqo/ppZDg5iA+ypJS+oMDm4d909J8KlIr4cTGtGojPoHnPRV3GJpn MTUcaEeuQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1erpbL-0007Ed-9b; Fri, 02 Mar 2018 18:40:15 +0000 Date: Fri, 2 Mar 2018 10:40:14 -0800 From: Matthew Wilcox To: Takashi Iwai Cc: Jonathan Corbet , Jani Nikula , Jiri Slaby , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] Documentation/sphinx: Fix Directive import error Message-ID: <20180302184014.GG31400@bombadil.infradead.org> References: <20180302152831.11510-1-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180302152831.11510-1-tiwai@suse.de> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox Sphinx 1.7 removed sphinx.util.compat.Directive so people who have upgraded cannot build the documentation. Switch to docutils.parsers.rst.Directive which has been available since docutils 0.5 released in 2009. Bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=1083694 Co-developed-by: Takashi Iwai Signed-off-by: Matthew Wilcox diff --git a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py index 39aa9e8697cc..fbedcc39460b 100644 --- a/Documentation/sphinx/kerneldoc.py +++ b/Documentation/sphinx/kerneldoc.py @@ -36,8 +36,7 @@ import glob from docutils import nodes, statemachine from docutils.statemachine import ViewList -from docutils.parsers.rst import directives -from sphinx.util.compat import Directive +from docutils.parsers.rst import directives, Directive from sphinx.ext.autodoc import AutodocReporter __version__ = '1.0'