Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3082329rwd; Wed, 14 Jun 2023 10:58:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5R7IlUlw0tuerVFqpndNc1SJRvPQFR/u2mdzz5yX5abiO1eEqIZhT5lQrGiUecgj6D/yvv X-Received: by 2002:a17:907:9304:b0:96f:45cd:6c24 with SMTP id bu4-20020a170907930400b0096f45cd6c24mr15358747ejc.23.1686765514295; Wed, 14 Jun 2023 10:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686765514; cv=none; d=google.com; s=arc-20160816; b=MfMweVItmAcbRXBb7au5R3prKBxpylGtFOlvREfBA1XcoJgf6ARgG8yDAKHjF1+HQE 8E3e/FYwyqSJm4eDzQDYtfkq7LreQ32KrC8Jg+Xuo82fALrrJtJ0qtZ2A1hr7nP7mNmA gWhatfONksUYd2PswquujMPwGAfTLJbsCntjLegyYYutDhw/1rnLHsi6XSfGcwUZzkOr rppl3qaQw/3z3Yz8pLwha5lbpvLKsjBWxukPIVEXXWFDs9LvbbI/anGlnv/4j81tfJgQ IXfXf4pPmo3Hit6noKxi9Dd3vK5V4yTgn+kEBxEwhfP77wICokpHxeCXm3JkbMYHVGSP Wz/w== 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=ulkwL96IA4ZOPFV6Ef9z6K9CqVjs3t1QDZ+Kt25Dpgw=; b=IXDNZFfic35XdelxDheLK3FKwq34K1//DPMISt72bu6wiOL6vISJqx4H5mK2oeDM8v vjnWa4/R3dN11p8v2Je9Ka9AFrkPyDxwfhK+pQY4OHHq+IwdQOaNsZ3JcnDvMm4rL7kD JYMV3lC/goliRqZPOLoB5t7O0xbX6kpnEbYwxPberKOaw0pNf9J2VtAB2Dk8d3PY1YaG ++vzt64zvw5kM0nmM6p5G0lyJ6niUtO7AChGkzGIijO9qA1h8Bk1DxzNvrfqrLDNuPrr mRXwPFpETgOhR5epvKqXiq46EyYnTjXYjtZVWUNWTixQ+5i66ckI7P0duF+fqQokoCCu WiCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E+mqqpXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a1709065a8e00b0097462908aa7si5398161ejq.80.2023.06.14.10.57.59; Wed, 14 Jun 2023 10:58:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E+mqqpXD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237922AbjFNRi7 (ORCPT + 99 others); Wed, 14 Jun 2023 13:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237525AbjFNRiz (ORCPT ); Wed, 14 Jun 2023 13:38:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A220E43 for ; Wed, 14 Jun 2023 10:38:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9D1B964526 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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