Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4017691rdh; Fri, 29 Sep 2023 08:52:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2/UNABqrxlrxmkxYFyXsPwmjr6kilNPVUB32PDbKxaLWzqBDhGVkXVjiExTmota2Z4Kwj X-Received: by 2002:a05:6a20:8e09:b0:153:a461:d96e with SMTP id y9-20020a056a208e0900b00153a461d96emr5303153pzj.47.1696002720368; Fri, 29 Sep 2023 08:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696002720; cv=none; d=google.com; s=arc-20160816; b=UhkI6ZHlaM44Mgt8CxmH+zFBNPGdqJrr5JNi9BHREeoIUOHVGkvT4PQIdQhjLXrNSo n6/IFZJnCmx3StOcW3k5drRENhMt0nia3zIi83WIpqbD6D2GrgaxbXksJQwIkaDhiOym J3FFyD6iMakvm5MFVIxRrRYP2v2pEepunllrwjtZQrJOSDLGAu3OTAheEdGQRpVJdngP TzmHHCAIXFy6Usljl0TrQ1PNOw179iSbZod/8A9Jjn8eeQnlunN/kNpJrGfTAYNlYsLw 1VKGDgxBS+i2dUR54/8WtcexJcrOlVITWsKNE5HMxRtzwcmlz8UfuSgW/ueu1rkuqWqq YBrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=qKjeAecmuz2bAiUWd004K4gJSct95dOnTYQGx96vz2w=; fh=BgjHBbn+cl5xRrMDkcqF2+XFBaij/xH85GUY9AkHaMY=; b=wKcXp53gMII/I12QlWK8fQUZbZzxmBn+ugndFyYoIffqrY7cpj3aXFubE/68YrlPUz enYD2IX2Ho5MJVxB05rKGJvxS5kWZQJ1HQorVLDGrpu5NVmLpo6QoK6ideS44YoEOp3L fyKHrU4XF0qdN92WTn/6ZP94hh0IEHDe2dn+qiBRsGfqx5NMC1A4vpA+UC7O2EsCMVBb ZcCletm7kEaaSsuePdGk8xvJ25+G4Baaq3bMqM5f5FypYfKsWWgEf6LLAxJRZbRI7jEq Xqzkkunf+4p0E2vTzou6kQOSPt+xcIbSJwEy+mUeMMaSkag07SbdWAjbS42kW+ZCEtES Ig2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="iQ8O7/BY"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id u186-20020a6385c3000000b00553813c2df0si21234522pgd.513.2023.09.29.08.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 08:52:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="iQ8O7/BY"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 71389838641D; Thu, 28 Sep 2023 23:48:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232519AbjI2Gsb (ORCPT + 54 others); Fri, 29 Sep 2023 02:48:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjI2Gsa (ORCPT ); Fri, 29 Sep 2023 02:48:30 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 297391A4 for ; Thu, 28 Sep 2023 23:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=qKjeAecmuz2bAiUWd004K4gJSct95dOnTYQGx96vz2w=; t=1695970108; x=1697179708; b=iQ8O7/BYcCLmXe7DgDLWVDiRzrhDoIN6l3GNnxl792wNdn+ wFZA3hVttDNGHZM0SLBdtNZkjJbsBvgwQ6qQEB0M/XHSOstYq+wMRtfvU8llxia9WLtYVMwcfMpL/ JfdDgAp9WQ8dt5C8mLJr6u4jRqBunARGqm/m4iUeHFGJF6316PbJjodGM1/Qp7YNxpUL8UYmBtWEj BPsMnh5ZRDIE6xZMp9Jbdoq9HRaIItZfdgwYK2cuRiR6qM3GK2HsV2NMHx1c0J/p7zPccELJSGDzO KNQ2+q6MKAIDSawrdX20KEuCB65Y7KkvnK9C0hvCNjSAnYVfrA2ALMTVTIEcaZiA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qm7IW-00BKda-1J; Fri, 29 Sep 2023 08:48:24 +0200 Message-ID: <3ff89e5a9ee6aeddaa771e1ada0faf13ce549f9f.camel@sipsolutions.net> Subject: Re: [PATCH 08/18] wifi: mac80211: mesh: fix some kdoc warnings From: Johannes Berg To: Jeff Johnson , gregory.greenman@intel.com Cc: linux-wireless@vger.kernel.org, Benjamin Berg Date: Fri, 29 Sep 2023 08:48:23 +0200 In-Reply-To: References: <20230928143539.1037500-1-gregory.greenman@intel.com> <20230928172905.33fea2968c62.I41d197b570370ab7cad1405518512fdd36e08717@changeid> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 23:48:56 -0700 (PDT) Hi, > > +++ b/net/mac80211/mesh.c > > @@ -56,6 +56,8 @@ static void ieee80211_mesh_housekeeping_timer(struct = timer_list *t) > > * > > * This function checks if the mesh configuration of a mesh point mat= ches the > > * local mesh configuration, i.e. if both nodes belong to the same me= sh network. > > + * > > + * Returns: %true if both nodes belong to the same mesh >=20 > I thought kdoc used Return: not Returns: >=20 > Huh, indeed. I'm sure this actually fixed it though because we did start running kernel-doc on this code internally (via W=3D1), the issue at hand was that we used to compile without mesh (not supported by iwlwifi) and now added it for hwsim testing. So ... I looked, and indeed _both_ are accepted: scripts/kernel-doc: } elsif ($newsection =3D~ m/^returns?$/i) { $newsection =3D $section_return; } elsif ($newsection =3D~ m/^\@return$/) { # special: @return is a section, not a param description $newsection =3D $section_return; which I guess means /** * foo - ... * * Returns: bar */ and /** * foo - ... * * Return: bar */ and /** * foo - ... * * @return * bar */ are all accepted. Though "Return:" is more common, perhaps due to the docs: $ git grep ' \* Returns:' -- | wc -l 3066 $ git grep ' \* Return:' -- | wc -l 9189 Personally, I find "Returns: %true if both nodes ..." to be nicer to read, since it's more like a sentence? But then again it depends on whether you're reading it as a description or an instruction, I guess. "Returns: something" is a description, and "Return: something" is an instruction (for the function). Hmm. I'm inclined to say I like the descriptive text better, but since it shows up in the generated documentation with "Return" anyway, maybe it's better to have it in the same way in the code? Though of course it's (slightly) easier to just apply it as is :) What do you (and others!) think? Does it matter? johannes