Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp207982pxk; Wed, 30 Sep 2020 23:45:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq/F8P4z2BvZwCxSis1tOV0C8G91C9eoAaib6SJHHTPeOyJoxCxJan6vrh0JfkyWnL0JxA X-Received: by 2002:a17:906:d93b:: with SMTP id rn27mr6610203ejb.330.1601534714335; Wed, 30 Sep 2020 23:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601534714; cv=none; d=google.com; s=arc-20160816; b=DOJqdd1pEXeLiEkL027TX1thBAI6VCToKXlHF7P8kCLBa6M4O2oJgjYA+R97VV4uxC lVyYxXmkfoLNYJ9zKPHXei81XYr0+qD9cSNMeGtQtHrxIMDz/rPgPGYSgVG2ev9sFYUx n1HbUaKZ82ndzibKaLRwKB9VPRH0XG4kOg33sxrgGRKxuonJQ0/IPDXQ4WHXLR6MW/dH o+reZMMqLr1RTIoXpYK1kgwffLWZqUcxoIw5UmZ6fb0SgDD1Kiu/tH2gF5DQG95KCewH 9xsxqQjk9sYR4008fI92SdQKHavO7YmUU1aGhef+P2tPl6m0BRrvOpMBTkH8/qzHXDho eaHQ== 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:subject:cc:to:from:date :dkim-signature; bh=+QXHjbA4wJYxfMV7sd3IFCdqiZ+WUP3QgLeqAOf7cU4=; b=0ksL+6G5fyiC11esWK4g4cGS/fa5jRXp2lrWcDb17/nw0W6fspOZ7foOUXQhzSaKAD z8OIolD1mHOyAW6YK+E+5sOd/giBeOhcRiHLzjiEO89D1hTPlBpX/XX+iTN+rJVLPlld WQX7gUYk2uW8wH/gccgfchjMvMWjc8+Gl2V97CVlZ8VULQzjdwzi6xnRk1s5xOugByGT eXgpyPNcOSL22bA9wMWtT6mM5Pup2eCytzbw/B3SARcxlSTLcv/Pd1lHjdd2VcTD3oRr bBE5BO7t0ZBWzPN8F1u/YP9w6hTymUxx9rxhhqcdQ3aRklUPgxG9bF+pEzdZF46xX1FK a+rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cM0yXeUd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c24si2734422edw.144.2020.09.30.23.44.51; Wed, 30 Sep 2020 23:45:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cM0yXeUd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730862AbgJAGlt (ORCPT + 99 others); Thu, 1 Oct 2020 02:41:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:46462 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbgJAGlt (ORCPT ); Thu, 1 Oct 2020 02:41:49 -0400 Received: from coco.lan (ip5f5ad5d2.dynamic.kabel-deutschland.de [95.90.213.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CA5CB20848; Thu, 1 Oct 2020 06:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601534508; bh=CESks9T8sCotDTGSbJvcIn+WtTDi56a2QYNDKjHeMCQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cM0yXeUdvjTaUQJRCCsk5u057Onxypq4csFdLsYxUa4lWxUOc0uTvbIf/IJ5wYk/T pL+2UPtce29mTVaLYx7wllKWISx5EfQRFbcIKziXct94uL6DD6tJObucvAGHg27WcQ CGS6lXEgDCQ5uUErBBX5LdC6yn0MfYTmlyoBjgWg= Date: Thu, 1 Oct 2020 08:41:43 +0200 From: Mauro Carvalho Chehab To: Kamalesh Babulal Cc: Linux Doc Mailing List , Jonathan Corbet , "Steven Rostedt (VMware)" , Miroslav Benes , Petr Mladek , Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 23/52] docs: trace-uses.rst: remove bogus c-domain tags Message-ID: <20201001084143.7c6f7836@coco.lan> In-Reply-To: <5e19b1d5-8015-c41d-788d-00b121599c6b@linux.vnet.ibm.com> References: <5e19b1d5-8015-c41d-788d-00b121599c6b@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, 1 Oct 2020 11:36:53 +0530 Kamalesh Babulal escreveu: > On 30/09/20 6:54 pm, Mauro Carvalho Chehab wrote: > > There are some c-domain tags that are wrong. While this won't > > cause problems with Sphinx < 3.0, this cause troubles with > > newer versions, as the C parser won't recognize the contents > > of the tag, and will drop it from the output. > > > > Let's just place them at literal blocks. > > > > tired with Sphinx v3.2.1, invalid C declaration warnings are not > seen with the patch. Well, it would be possible to use :c:expr: with Sphinx 3.2.1, in order for it to check for invalid C declarations. Btw, this is one of the improvements over the last versions: the rewritten C parser there is a lot more pedantic with regards to the C syntax. - That's said, the backward-compatibility code I added at Documentation/sphinx/cdomain.py will convert this into a literal markup though, as there's no equivalent tag before Sphinx 3.x. As there are still one upstream issue on Sphinx 3.x that requires a fix[1], and we don't know yet the issues with :c:expr[2], at least for now, I would avoid adding :c:expr: markups. [1] Right now, the C domain is not able to have two names for different types. So, it is not possible to have a struct "foo" and a function "foo". Due to that, while I was able to fix all warnings with Sphinx 2.x build, Sphinx 3.x will still have bogus warnings. [2] One of the limitations of :c:expr: is with regards to function prototypes. You can't use it like: :c:expr:`int foo(void);`, as it will complain with the function return type. > > Signed-off-by: Mauro Carvalho Chehab > > Reviewed-by: Kamalesh Babulal Thanks! Mauro