Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4610514pxk; Wed, 30 Sep 2020 07:25:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyItXujyvQZQ0A1hvTPt7nnkRbWI5YgV9YdUfywo6oFAj11CR00ZqCKylJHuuVIExlQjKiy X-Received: by 2002:a17:906:f1cd:: with SMTP id gx13mr3198890ejb.133.1601475903217; Wed, 30 Sep 2020 07:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601475903; cv=none; d=google.com; s=arc-20160816; b=b3/8hbNa0ueC27gO13MIkCc5NYAGhanQ/lVgUR7CbePE0NP7fFysoArhWLCU4QZjWF tL4mEnrjXYrVqru0M/WgqHvBu5aP99DNue0pchp6laNLWvSzQBRKDslFaXONf+aGPFqL VZwOjfMZRCKKbu0dXG5QvkTJdv1CfelMMT2zkaGyivr3V163NwHsq7tWke+NrLFBQl/1 fsjR5gpXD/C7UmSzoDMmr0vI/tcpSKC0L6G8YBrKWBxMpy6+WnBBTYYTuHHaY6JmygHP 0Kcj14zcN2+5cij1PS6XsGjPdZKMnXPj8B4NI4/7o3TpInv+bCgjQpJmK0G10/g/Tt5K UNzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oigZZ8fwnKdijTGbB+XJe0Q1L7a18hLArTockoTKJXc=; b=V4N9xe8d+2/11sxXdWEX5nglTIHcv5cKIks2ldRifpDxg+6fFqUTU17SU//2fajwo1 YnBl6P0WagalT2YFkWvXf8uvSjRZutvNPDIlxiLbT7K41gWwc+tl0KYbIBp52CMW6Rol S9bntuO8xswKrl9pmSERM/zTfK2nnuRGPxl1Dhxxsz/L0SygeqEjexDvsgvUp+dyzGiJ zyvjZlrZVz1Xp9csinIEel/VTmImvX5G9MV9zsFI1pnnnDTjzgJ08Tyu73vR8L4Na2Yz 4qgygzmwHzHRQzEOgpYcas48V9eD7Yo1F7NUaoHO8wvucAXRD/FHXws1Xo6B7RN9SVdX YGnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wOm9XY7G; 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 h22si1207983edj.64.2020.09.30.07.24.40; Wed, 30 Sep 2020 07:25:03 -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=wOm9XY7G; 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 S1730483AbgI3OXb (ORCPT + 99 others); Wed, 30 Sep 2020 10:23:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:38400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgI3OXb (ORCPT ); Wed, 30 Sep 2020 10:23:31 -0400 Received: from kernel.org (unknown [87.71.73.56]) (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 BACBF20709; Wed, 30 Sep 2020 14:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601475811; bh=pINutTAllKNrOxvh9eBLUiQGJF57WCSpPIcKD+TgvwE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wOm9XY7G3LjDR5NbyAZSpMyQTH90xpvpkBDGnvJwQnf/RxvZYo0bMTUf/nW4Vwm27 LxBapNA1DwycI7LbvZq7qob63IVAXsD9KgiH1ypaCP06FGYlrhmAj4YRuEarwZ20PU /8RNSeDgkcebLR1ofrZf4ACH3DVpPZ/Nd+lbPD1M= Date: Wed, 30 Sep 2020 17:23:23 +0300 From: Mike Rapoport To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , Jonathan Corbet , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v4 19/52] memblock: get rid of a :c:type leftover Message-ID: <20200930142323.GL2142832@kernel.org> References: <0aab04f62bc3dfa82394e20d61c05c6efbfb4859.1601467849.git.mchehab+huawei@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0aab04f62bc3dfa82394e20d61c05c6efbfb4859.1601467849.git.mchehab+huawei@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Mauro, On Wed, Sep 30, 2020 at 03:24:42PM +0200, Mauro Carvalho Chehab wrote: > chanseset b3a7bb1851c8 ("docs: get rid of :c:type explicit declarations for structs") > removed several :c:type: markups, except by one. > > Now, Sphinx 3.x complains about it: > > .../Documentation/core-api/boot-time-mm:26: ../mm/memblock.c:51: WARNING: Unparseable C cross-reference: 'struct\nmemblock_type' > Invalid C declaration: Expected identifier in nested name, got keyword: struct [error at 6] > struct > memblock_type > ------^ Maybe this warning is caused by '\n' between struct and memblock_type? There are two more occurences of :c:type: around and they do not seem to cause warnings. > As, on Sphinx 3.x, the right markup is c:struct:`foo`. > > So, let's remove it, relying on automarkup.py to convert it. > > Signed-off-by: Mauro Carvalho Chehab > --- > mm/memblock.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/mm/memblock.c b/mm/memblock.c > index 165f40a8a254..326c6b3fec1d 100644 > --- a/mm/memblock.c > +++ b/mm/memblock.c > @@ -50,8 +50,8 @@ > * > * Each region is represented by :c:type:`struct memblock_region` that Can you please also convert this one? > * defines the region extents, its attributes and NUMA node id on NUMA > - * systems. Every memory type is described by the :c:type:`struct > - * memblock_type` which contains an array of memory regions along with > + * systems. Every memory type is described by the struct memblock_type > + * which contains an array of memory regions along with > * the allocator metadata. The "memory" and "reserved" types are nicely > * wrapped with :c:type:`struct memblock`. This structure is statically And this? > * initialized at build time. The region arrays are initially sized to > -- > 2.26.2 > -- Sincerely yours, Mike.