Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1813919rdh; Sat, 28 Oct 2023 08:07:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8rdJg38vsI/a413BhmkD4lxFNp/XhQ9kKqthzvlI5H5eNEyUrp7aHnLeZDPJxdVROtlOK X-Received: by 2002:a05:6a21:35c4:b0:17d:ec93:6a86 with SMTP id ba4-20020a056a2135c400b0017dec936a86mr6447226pzc.19.1698505677930; Sat, 28 Oct 2023 08:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698505677; cv=none; d=google.com; s=arc-20160816; b=j0d/DdVarNFZBoEn+jIzgkPC6Ltg5hMoZN+kOZu3Ftt0pgq3ipC0mJFSeIOrwN2DUO cfi/WiapVeC3s3lbt28rjBzKEsQ2bX6olQrkojNB+hDnRfQjN689zjMHIOw9YhWZRJ/y 2/tYFgxhkPNF0OzGTNh/GLIvfS1pr/19q7XIVJlYTQgKdJxf9bYsz5gdfBgYzAFprhLj jth8SpEUXlp021e3EviJLrzRVulWSkNGmKnYrLSYc/2zVrbowGGRGbaEjktKWQ9hUmvs zmTzgQ143dGDduDu9uOfq1670Z2+NvW46toRYBnOuXw3e1D+i68qqaS3VVixk6VMUz+F ADMw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=amPD2Fv/HjzzurFL/5PbBJlVeFR9uLqmO4pACbtWeSM=; fh=3xQj4p/SnFWGm0aRcb78Uv2ds0InLLR9zHL9zWY9hME=; b=caWpRTdy3t8WGAWr3jLyfHnIXeF0k/koFIdbdTIQFMkZaobBeOR3B9CpFgOo3CxLIv ny4EnRtlWn8gvWLp0OjSzfiFqIq+wOsxb6wWt49UC7VkXUkHV63yqzwMpL75wpl8qwzJ AFRCmCHgk2FPN3oUzBaPRZ6o43FuGRHvlVi5LYWyOHntXXaDgvVuW7f+lgxGAKfDzoAr LvLQI0EgO1DZGaT5+qmFpHpLVBW7sXxA1NTgy0TQVxTtktY5uy1luj3eTpOJhboTAAFN gMmXzdvf/OkajI+qZK40zfbhmrx0qEAsU1n7pqxQk5jhJQrC8/iFGtgpGYpQ1WOVGvhu GzWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="ghZ/6tGX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a1-20020aa794a1000000b006be4e6e2a9bsi2461604pfl.398.2023.10.28.08.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 08:07:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="ghZ/6tGX"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E95168098BA6; Sat, 28 Oct 2023 08:07:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229461AbjJ1PHh (ORCPT + 99 others); Sat, 28 Oct 2023 11:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJ1PHg (ORCPT ); Sat, 28 Oct 2023 11:07:36 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B9AC91; Sat, 28 Oct 2023 08:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=amPD2Fv/HjzzurFL/5PbBJlVeFR9uLqmO4pACbtWeSM=; b=gh Z/6tGXugP/rUAK2/gcHRJsj10N/7Y7i8cEejJllfAcKBCjzDAdvPaG6z1hpubLIdwQVC161N9eff0 pbyTRX8AAQe+6ngnAO0kTpFtj/d0L1+ADFaj9+GA7vZdzuelUfUTVkfuSdCBQWx0830yQjxzc2Swk TPr7a1OI5OFXX+s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qwktF-000PNE-09; Sat, 28 Oct 2023 17:06:17 +0200 Date: Sat, 28 Oct 2023 17:06:16 +0200 From: Andrew Lunn To: Justin Stitt Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shay Agroskin , Arthur Kiyanovski , David Arinzon , Noam Dagan , Saeed Bishara , Rasesh Mody , Sudarsana Kalluru , GR-Linux-NIC-Dev@marvell.com, Dimitris Michailidis , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Louis Peens , Shannon Nelson , Brett Creeley , drivers@pensando.io, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Ronak Doshi , VMware PV-Drivers Reviewers , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Hauke Mehrtens , Florian Fainelli , Vladimir Oltean , =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= , Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Linus Walleij , Alvin =?utf-8?Q?=C5=A0ipraga?= , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , Lars Povlsen , Steen Hegelund , Daniel Machon , UNGLinuxDriver@microchip.com, Jiawen Wu , Mengyuan Lou , Heiner Kallweit , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Kees Cook , intel-wired-lan@lists.osuosl.org, oss-drivers@corigine.com, linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, bpf@vger.kernel.org Subject: Re: [PATCH net-next v3 1/3] ethtool: Implement ethtool_puts() Message-ID: References: <20231027-ethtool_puts_impl-v3-0-3466ac679304@google.com> <20231027-ethtool_puts_impl-v3-1-3466ac679304@google.com> <8ca4ba13-1bcf-4c7b-91b6-8c77fbe55b30@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sat, 28 Oct 2023 08:07:51 -0700 (PDT) On Fri, Oct 27, 2023 at 06:20:08PM -0700, Justin Stitt wrote: > On Fri, Oct 27, 2023 at 4:43 PM Andrew Lunn wrote: > > > > > +/** > > > + * ethtool_puts - Write string to ethtool string data > > > + * @data: Pointer to start of string to update > > > > Isn't it actually a pointer to a pointer to the start of string to > > update? > > I suppose. Its kind of relevant because you increment by the length, which you can only do because it is **. I also find it a pretty strange API, so documenting it correctly is important for me. > > FWIW, I just copy-pasted the sprintf doc and tweaked: > /** > * ethtool_sprintf - Write formatted string to ethtool string data > * @data: Pointer to start of string to update So that need fixing as well. I will cook up a patch for this one. Andrew