Received: by 10.223.185.116 with SMTP id b49csp1033424wrg; Fri, 16 Feb 2018 11:10:37 -0800 (PST) X-Google-Smtp-Source: AH8x224jCjfFLAWPY0eyqLCnvpf2EHLVfT2HuKvHIbhacMFZt1ygJ0KEKjEtlnaw0lQKMQbcm7GA X-Received: by 10.99.113.94 with SMTP id b30mr5936473pgn.228.1518808237534; Fri, 16 Feb 2018 11:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808237; cv=none; d=google.com; s=arc-20160816; b=tdOwD6mi1kLwSkUoDBxx+1hgusR7xagOg2W9Xansn81XdFZNXkXI6P9XnSLQzFQf97 gShZaJgi4Jbs36w5/hrDJjO8nQaqvoQJWScHpCpKrmnJXt75dZCM+BTdOyNlLPWZaDTm 4itEPIdJgkPTlxKyymgrkJnuweQlROjCI7BWgQqM2+JRBpnpe3CYmaK5dRDOffkfo//r sDICJuH02Zn5alG1udOJgIV1uhPxrwTktgCQHOdbFFBZKELdMI/belu9U6vYu7/ZOxyF Qav+ri83fTVnfZwy0FJ1Dci7xdMYSCsN/YD91+y8IWTvTEVftE9eO+6LHgvdlEuUy62o 5rhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=AN+qQHwUd2JC16GkBiW/WHnmMIUHDSw5x0LEjjRwGtk=; b=QY7QvgjQiOovBOJqT7cAbSZcks5wUWOM8tKq6y7V7rA/geEISQOljKCLTUR9yOqjXw TWhuozdO7m8SmQYxvI0/dMeB5/DdNBmRO3bEbY/SdDqduf43YLipg3BtzrtfwMyXJzN4 5B+PJ3DzkYAiecKJZrDfS1nY46Lc4W9cIVFCpzTWk96lOaiUut/h0mydmuC2RmkA3fKZ OpYIHy3XNgLb/+E3ambEKSV0KEF7bD6+NVLstmiENwqPcMZox9i81zy03mbqePbcQDRz xeBkjr26Yd8a+1cClmMkMgp3e9O37+0jI3SK6W6hy/W7T5zMhAICE3xAFgn7oiBehcMj 4Qfw== ARC-Authentication-Results: i=1; mx.google.com; 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 g67si1289350pgc.690.2018.02.16.11.10.23; Fri, 16 Feb 2018 11:10:37 -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; 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 S1032403AbeBPNsd (ORCPT + 99 others); Fri, 16 Feb 2018 08:48:33 -0500 Received: from osg.samsung.com ([64.30.133.232]:54425 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032299AbeBPNsb (ORCPT ); Fri, 16 Feb 2018 08:48:31 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id E11D634663; Fri, 16 Feb 2018 05:48:30 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id etIi1E3pJcmk; Fri, 16 Feb 2018 05:48:29 -0800 (PST) Received: from smtp.s-opensource.com (177.17.248.146.dynamic.adsl.gvt.net.br [177.17.248.146]) by osg.samsung.com (Postfix) with ESMTPSA id 72B973462C; Fri, 16 Feb 2018 05:48:27 -0800 (PST) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.89) (envelope-from ) id 1emgNE-0002xP-TF; Fri, 16 Feb 2018 11:48:24 -0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet , Jani Nikula , Matthew Wilcox , Tom Saeger Subject: [PATCH 1/6] doc-guide: kernel-doc: fix example for nested_foobar struct Date: Fri, 16 Feb 2018 11:48:15 -0200 Message-Id: <25fef501c673f1d1e5e25171b7ce428101cf48fd.1518788761.git.mchehab@s-opensource.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's a missing */ at the end of Kernel docs example. Even adding it, it will still produce 3 warnings: example:33: warning: Function parameter or member 'bar' not described in 'nested_foobar' example:33: warning: Function parameter or member 'bar.st1' not described in 'nested_foobar' example:33: warning: Function parameter or member 'bar.st2' not described in 'nested_foobar' So, make the example more complete and add the missing end of comment there. Signed-off-by: Mauro Carvalho Chehab --- Documentation/doc-guide/kernel-doc.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst index 2fb7f2bfc245..9fce378dccb2 100644 --- a/Documentation/doc-guide/kernel-doc.rst +++ b/Documentation/doc-guide/kernel-doc.rst @@ -250,10 +250,14 @@ It is possible to document nested structs and unions, like:: * @memb2: second member of anonymous union/anonymous struct * @memb3: third member of anonymous union/anonymous struct * @memb4: fourth member of anonymous union/anonymous struct + * @bar: non-anonymous union + * @bar.st1: struct st1 inside @bar + * @bar.st2: struct st2 inside @bar * @bar.st1.memb1: first member of struct st1 on union bar * @bar.st1.memb2: second member of struct st1 on union bar * @bar.st2.memb1: first member of struct st2 on union bar * @bar.st2.memb2: second member of struct st2 on union bar + */ struct nested_foobar { /* Anonymous union/struct*/ union { -- 2.14.3