Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1591993ybm; Thu, 23 May 2019 03:45:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXwcdsPNd+ENtyhX0OuJb3utxD2lQQNyjrplGzt9tPlLY+tm9MyvYW8ThOiQf6GvmOA6SD X-Received: by 2002:a17:90a:17c7:: with SMTP id q65mr482620pja.92.1558608344264; Thu, 23 May 2019 03:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558608344; cv=none; d=google.com; s=arc-20160816; b=u0rN867dAthjkCb76JR/4YJQ2s0Ttx4n/q9BqUkEj6fRLpEk4P2cciQOijlYnJXJyT e/Q9FFK3K5swxMvD+naCc5fvSk+omqz1O/OCJyAE7wOptmKOhmEQh3dCZej/nc3lKsS1 MhyrjQMj7srTcq0p8e4x0HTOUGmatSU8yCuVam4ygQgmor0jPQGogpXYkHEAWxh0ra6j 7hLyoq9yWwIddks44ow3jS8Mtlenrr4crfu09BEu7USq0jn0OvwmJO73KVzXC8LhaIki R6LHZ4lECtL7hJmiASIsfNbELQHG0zb3ppreXJ0TjfsRDn8i6hg7KRwDEGCRpG8SIOrs NwDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QvOd/fJjXFPdnBle2fe0Q+QGkQ9sPITwaJ/QwVHAAQc=; b=A23gAq0Q8wENN2DFHmB+15yuk6yERyOBQiM3W2dzXnZDNYzmndeYZg2aKzuWVTg3mq 0m+YCGg2nuxDHiYDGn+2oboAwLRiYAYHN17RHb2IANtHQ5rSjqlI7m+6cyZl1474TxXH Fx3uI828qq1wD1bqAuitvceVc5c+JP5GczNSXRikn1QVYPY0KZdu1K5+Z2jf3Aw1CUzT uLiL6nPNalyNv+XJm5NZYWnjUueGZ4n3gSajtThtjt6DSLpPsdv5FYbpzxYuTjCAXtV5 zl6hLS+XtzmujCL49Nf9aQ378iXrx1tahEVCwKKZiwvFIeA/f0R57MsnPOejd9MQ+Sn6 vyBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WOPe066L; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8si28438647pga.482.2019.05.23.03.45.28; Thu, 23 May 2019 03:45:44 -0700 (PDT) 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=WOPe066L; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730471AbfEWKnt (ORCPT + 99 others); Thu, 23 May 2019 06:43:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33574 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727434AbfEWKnt (ORCPT ); Thu, 23 May 2019 06:43:49 -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: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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=QvOd/fJjXFPdnBle2fe0Q+QGkQ9sPITwaJ/QwVHAAQc=; b=WOPe066LjGPPjgHOGdhYNNG1/ DhfVtOPIlIw34+3TEYQ7jEnqmcPjn9Evi5RiSOj2s5BwgVX0fW3PVoYjtRTEuFY+oNcOYah+g6LmV p/BChW8y9p+AVytHNDj59D6zZ5vNMCfo59T690RSAX94yzd5/hTC4EUMRkHXnjDdmH6JicXqIxYiv jMdAVDiyly7/t3LVMSPsyoioIAYuDtEAxqMu2D4h+lj5/aazGZnb10IWtrPh0oTg0dXYzfB6XZl1Z tf49cBau0kwGcuJi/5oGTSbjkGIBDtILGuZDdzOxS0L9YXfG+bBs3C3PWrWaxvmglhQ1w4IZymZJZ gjtcbQkFQ==; Received: from [179.182.168.126] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTlCO-0007Os-OE; Thu, 23 May 2019 10:43:48 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92) (envelope-from ) id 1hTlCL-0006Bw-7s; Thu, 23 May 2019 07:43:45 -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] docs: cdomain.py: get rid of a warning since version 1.8 Date: Thu, 23 May 2019 07:43:43 -0300 Message-Id: X-Mailer: git-send-email 2.21.0 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