From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 355AC2EC3B for ; Wed, 14 Jun 2023 17:38:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA630C433CA; Wed, 14 Jun 2023 17:38:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686764334; bh=yR02GLqLTyIWX9U99iZ0NmxdvKpsBgaVyJ69Zs8coD8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E+mqqpXDrfi0M5vMnMyDyCaP4VXNq5VjGypXXs4eNB/nF3EBHBxrSKnACgKw8tACV bGSmC9YtfOeKezRJYRBHDUKFAI6MKLNrN38mpmDFp6LmrrdAhs6OWK8wNGVGqzPDww jXnY5RwyBy3XLNuPl4CO+ktqjzVcBgjK+0Npg47EtHpKPTzNUmpEGJ8uT7bmUaDlK3 Kj949YVplhBwd95vrgIdkkdU/NxOLOJ/FoZlPuNz3GX+CHJ8Lt4AjilkqAOVJDncjt KelZFaQwoq8sXgj9hQj4Hf7G2O87JSpnb4Lb1A6pjz+fIdV7/lDVxwf0nUYRkiB/Ow MPj9kyHLTPo7A== Date: Wed, 14 Jun 2023 10:38:52 -0700 From: Jakub Kicinski To: "Kubalewski, Arkadiusz" Cc: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , "pabeni@redhat.com" , "edumazet@google.com" , "chuck.lever@oracle.com" Subject: Re: [PATCH net-next] tools: ynl-gen: generate docs for _max/_mask enums Message-ID: <20230614103852.3eb7fd02@kernel.org> In-Reply-To: References: <20230613231709.150622-1-arkadiusz.kubalewski@intel.com> <20230613231709.150622-3-arkadiusz.kubalewski@intel.com> <20230613175928.4ea56833@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 14 Jun 2023 12:48:14 +0000 Kubalewski, Arkadiusz wrote: > >From: Jakub Kicinski > >Sent: Wednesday, June 14, 2023 2:59 AM > > > >On Wed, 14 Jun 2023 01:17:09 +0200 Arkadiusz Kubalewski wrote: > >> Including ynl generated uapi header files into source kerneldocs > >> (rst files in Documentation/) produces warnings during documentation > >> builds (i.e. make htmldocs) > >> > >> Prevent warnings by generating also description for enums where > >> rander_max was selected. > > > >Do you reckon that documenting the meta-values makes sense, or should > >we throw a: > > > >/* private: */ > > > > Most probably it doesn't.. > Tried this: > /* > [ other values description ] > * private: > * @___MAX > */ > and this: > /* > [ other values description ] > * private: @___MAX > */ > > Both are not working as we would expect. > > Do you mean to have double comments for enums? like: > /* > [ other values description ] > */ > /* > * private: > * @___MAX > */ > > >comment in front of them so that kdoc ignores them? Does user space > >have any use for those? If we want to document them... > > Hmm, do you recall where I can find proper format of such ignore enum comment > for kdoc generation? > Or maybe we need to also submit patch to some kdoc build process to actually > change the current behavior? It's explained in the kdoc documentation :( https://docs.kernel.org/doc-guide/kernel-doc.html#members