From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41024C28CC0 for ; Wed, 29 May 2019 23:09:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 170E924305 for ; Wed, 29 May 2019 23:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559171395; bh=Hdiodrt6PNJsHzuuZ5OJ5Nb1vzUi6JoSxeE08VwnaHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=b2lmg4Q0SEDo5SHI+w1sbPBO6Uf+kj+fMyPxwg67BB66l+ngeckNotx+NfDl0Qh68 oVNW78CQ1ro06hXBS7vuh2Rhd+RWrdw5PEkQsuAlBZw5VXuWYolSir5J2Knc92HHo9 AR0B9hrDg0LKRIh+FcMmWaH4JYHCNpGswCpJkRKg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbfE2XJr (ORCPT ); Wed, 29 May 2019 19:09:47 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:47602 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbfE2XJh (ORCPT ); Wed, 29 May 2019 19:09:37 -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:References:In-Reply-To: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:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QvOd/fJjXFPdnBle2fe0Q+QGkQ9sPITwaJ/QwVHAAQc=; b=WksbaBwu69Iezy6VPCiymd55jZ +TvYlekSzZB4iSkKoITMCtttcQtFW4S9oJQ3wP/H2wfzEeV4FuP7SCy7PPpiX1CQ6tFeNa3xwoIoH H5G7sBZcy5hdcbjuyXBYUt9Gf0qLtS1pmayqhnaLFhfqK4/ml3T8/UAAkKez5Tqj9UTIi3pQ9RDiL NWTBVMewLnG+AOHh9Os1zqV5pibDKKjZ8xmBCAku/gV9j0oPzGZbP5KOtibLwf+0BKd5FvnKgGtxC 1f3BY/gkhmEPGRKyq8aN7mxjUIE2ANiPztzlwUU+XL3zbsGxSvgpVMlHuTT6LG5dXmCRW/BEpBwDQ PnOOuP/Q==; Received: from 177.132.232.81.dynamic.adsl.gvt.net.br ([177.132.232.81] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hW7hQ-0000lE-JD; Wed, 29 May 2019 23:09:36 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hW7hN-0007TJ-HK; Wed, 29 May 2019 20:09:33 -0300 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: [PATCH 01/10] docs: cdomain.py: get rid of a warning since version 1.8 Date: Wed, 29 May 2019 20:09:23 -0300 Message-Id: <034b0371907a003c67b3d974ba0c5df5ed89a663.1559170790.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: 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 There's a new warning about a deprecation function. Add a logic at cdomain.py to avoid that. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/cdomain.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/sphinx/cdomain.py b/Documentation/sphinx/cdomain.py index cf13ff3a656c..cbac8e608dc4 100644 --- a/Documentation/sphinx/cdomain.py +++ b/Documentation/sphinx/cdomain.py @@ -48,7 +48,10 @@ major, minor, patch = sphinx.version_info[:3] def setup(app): - app.override_domain(CDomain) + if (major == 1 and minor < 8): + app.override_domain(CDomain) + else: + app.add_domain(CDomain, override=True) return dict( version = __version__, -- 2.21.0